2022-03-21 03:44 PM
Hi,
Using an STM32G4, I want to start an ADC conversion periodically using an event from a timer.
To do so I choose the TIMER6 (basic timer) and ADC2 peripherals.
Sadly, it didn't work.
The reference manual, seems to imply that you can't use a basic timer to start an ADC conversion.
That said, CubeMX clearly allows us to configure TIMER 6 as a trigger source.
Is this a CubeMX bug or I'm missing something?
Thanks
2022-03-21 04:40 PM
> The reference manual, seems to imply that you can't use a basic timer to start an ADC conversion.
Why do you say that? TIM6/7_TRGO are listed as triggers for the ADC regular conversions.
Note that the part you highlighted pertains to the DAC, not the ADC, but I don't see how it's relevant.
The timer section explicitly says that it can be used as an ADC trigger.
> Sadly, it didn't work.
This isn't enough information to diagnose the issue. Show the code you've used along with how you've determined that it isn't working.