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.pdf
The basic setup was created with CubeMX. You can find the whole project at github.
https://github.com/stancecoke/LishuiFOC/tree/d7229be95dbf8b61ccf80fbb40bbf10ebefe837f
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/LishuiFOC
Any ideas?
regards
stancecoke