2026-01-29 10:51 AM
Hi,
I want to kick ADC1 IN5 with the Timer TIM2.
I'm working with CubeIDE.
I select:
ADC1 -> ADC_Regular_Conversion_Mode -> External Trigger Conversion Source -> Timer 2 Trigger Out event
TIM2 -> Trigger Output (TRGO) Parameters -> Update Event
But ADC1 does not run, Data Register is constant.
If I kick ADC1 by software everything is fine, I get some noisy numbers.
TIM2 is running, the count register is counting.
Why does TIM2 not kick ADC1 by the TRGO event?
This setup used to work fine on STM32F303.
What do I miss on the STM32F429?
THX Cheers
Detlef
2026-01-29 3:14 PM
You haven't mentioned that you've called HAL_TIM_Base_Start_IT
2026-01-29 3:56 PM
I started both TIM and ADC. I printed out the timer count values, they change. So the counter is up and running. I kicked the ADC with software and got noisy numbers in the data register. So the ADC is up as well. Update should result in trigger out event for the timer. Trigger out event for the timer should fire up ADC. That does not happen.
It works for STM32F303.
What do I miss for STM32F429 ?
THX
Cheers
Detlef
2026-01-29 4:07 PM
@DetlefS wrote:I started both TIM and ADC.
This could mean anything. Show your code.
2026-01-29 4:09 PM
Can you share your IOC file and user code? Otherwise this is a guessing game. This works in theory.