STM32G5 ADC regular simultaneous + Injected simultaneous DMA problem
- 1 reply
- 16 views
Hi,
On the STM32G4 I was able to configure ADC1 and ADC2 in Dual regular simultaneous + injected simultaneous mode using DMA in Circular mode, so that I only needed to configure the DMA for ADC1 (Master) and the data from the regular conversion of ADC1 and ADC2 were placed in a single 32-bit variable, with the most significant part containing the value of ADC2 and the least significant part with the value of ADC1.
When I try to do the same thing for the STM32G5, an error occurs in the configuration of ADC2, requiring me to configure the DMA for ADC2 as well. It doesn't make sense to use the ADC in dual mode if I have to use a DMA channel for each ADC. How can I modify the attached ioc2 file to make it work as I did for the STM32G4? And what code should I include in main.c to start DMA in circular mode using low level library?
