cancel
Showing results for 
Search instead for 
Did you mean: 

ADC with timers issue on STM32G474

Roquebg9
Associate

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.

1 REPLY 1
TDK
Super User

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.

If you feel a post has answered your question, please click "Accept as Solution".