Git Product home page Git Product logo

scopemcu's Issues

STM32F4 CDC 不能发送到ScopeGUI,与编译器有关?

楼主您好,
我尝试移植F4的代码到我的F407板子上面,结果遇到了问题。

  1. 编译通过,ADC工作正常,VCP(CDC)串口也有了,可是ScopeGUI打不开VCP,当然也收不到数据。
  2. 检查发现,用其他终端软件也打不开这个VCP,当然也收不到数据。
  3. 进一步检查后发现,可能与编译器有关。 为了找问题,我单独开了一个CDC工程,同一套代码在MDK和CLion(Win10)下面都能正常编译,但是CLion出来的代码就发生CDC不正常,与上面说的一样,PC终端软件收不到CDC_TransmitFS发送的打印内容。 而MDK编译出来的就正常。
    同时,我Win10电脑的CLion系统,编译F103的那一套ScopeMCU(master)代码就全部工作正常。 我的CubeMX也是最新版本。

您遇到过这种问题吗?谢谢。

Cannot build in STM32CubeIDE

When I import as an existing project and click Build:

**** Build of configuration Debug for project ScopeMCU ****

Nothing to build for project ScopeMCU

I tried re-generating the project with CubeMX. No luck.

Ubuntu 22.04 LTS
STM32CubeIDE version: 1.10.1

最高采样率能达到1M吗

我看说明里面特别指出

为了采样精度和校准,当前最高采样率: 70ksps

这个限制是在那实现的,如果不考虑精度,只是要看个大概,能否达到1M?
如何修改?

Clion 2021.2.3

Scanning dependencies of target ScopeMCU.elf
[ 23%] Building C object CMakeFiles/ScopeMCU.elf.dir/App/retarget.c.obj
[ 25%] Building C object CMakeFiles/ScopeMCU.elf.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal.c.obj
[ 26%] Building C object CMakeFiles/ScopeMCU.elf.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc.c.obj
[ 28%] Building C object CMakeFiles/ScopeMCU.elf.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_adc_ex.c.obj
[ 30%] Building C object CMakeFiles/ScopeMCU.elf.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_cortex.c.obj
[ 32%] Building C object CMakeFiles/ScopeMCU.elf.dir/Drivers/STM32F1xx_HAL_Driver/Src/stm32f1xx_hal_dma.c.obj
: error: expected identifier or '(' before string constant
I:\STM32H7\clion\stm32\ScopeMCU\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal.c:200:1: note: in expansion of macro '__weak'
200 | __weak void HAL_MspInit(void)
| ^~~~~~
: error: expected identifier or '(' before string constant
I:\STM32H7\clion\stm32\ScopeMCU\Drivers\STM32F1xx_HAL_Driver\Src\stm32f1xx_hal.c:211:1: note: in expansion of macro '__weak'
211 | __weak void HAL_MspDeInit(void)
| ^~~~~~
: error: expected identifier or '(' before string constant

1MSa possible?

The GUI does not allow setting the sampling frequency larger than 70kHz. And I see that the picture is breaking already at 70kHz.

But I did see others are using an STM32F103-based oscilloscope to get 1MSa sampling rate. Is it possible to achieve this with built-in ADC only? Or USB communication limits the speed to be lower than 70kHz? Will the situation improve if I switch to STM32F429 Discovery board with a (presumably) better ADC?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.