2025-06-11 1:16 PM - last edited on 2025-06-11 1:35 PM by mƎALLEm
Hi,
I have set two ADCs on CubeIDE, for STM32G474CEU6 microcontroller, with DMA transfer. I am using ADC1 with timer 6 trigger out event and ADC3 with timer 7 trigger out event. The thing is, when I use timer 6 for both ADCs, just for ADC1 or just for ADC3, they work just fine, but it seems that it is not capable of converting data using timer 7, as it never enters the dma conversion complete neither half conversion interrupt. I have also tried using different timers, but as long as they are not the same one the ADC is not working. Both the reference manual and CubeIDE state that this timers are usable for these ADCs. Is this behaviour common? Should it be like that? As far as I understand, I should be able to use different sample frequency in different ADCs. In any case, why might this be happening?
Thanks in advance.
2025-06-11 2:21 PM
Should work, the hardware functionality is there.
It could be a bug in your own code or in the autogenerated CubeMX code. Perhaps show main.c.