Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


STM32F1xx: Injected simultanous ADC doesn't work

I want to read in two phase currents of a BLDC motor, simultanous with injected ADC1 and ADC2 triggered by Timer1 Capture Compare Channel 4. See chapter 5.1 of the STM manual UM1052:
https://www.st.com/content/ccc/resource/technical/document/user_manual/5e/5e/d2/cb/07/35/45/a6/CD00298474.pdf/files/CD00298474.pdf/jcr:content/translations/en.CD00298474.pdfQuestion

The basic setup was created with CubeMX. You can find the whole project at github.
https://github.com/stancecoke/LishuiFOC/tree/d7229be95dbf8b61ccf80fbb40bbf10ebefe837fQuestion

The interrupt of Timer1 Capture Compare Channel 4 works properly, but no injected ADC conversion is started :-(

If I start the conversion by software in the Timer1 Capture Compare Channel 4 callback, it works.
https://github.com/stancecoke/LishuiFOCQuestion

Any ideas?

regards
stancecoke