Skip to main content
Visitor II
June 11, 2025
Question

ADC with timers issue on STM32G474

  • June 11, 2025
  • 1 reply
  • 296 views

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.

    This topic has been closed for replies.

    1 reply

    Super User
    June 11, 2025

    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.