cancel
Showing results for 
Search instead for 
Did you mean: 

Timer and ADC on STM32F429

DetlefS
Associate III

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 

4 REPLIES 4
Karl Yamashita
Principal

You haven't mentioned that you've called HAL_TIM_Base_Start_IT

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.
CAN Jammer an open source CAN bus hacking tool
CANableV3 Open Source

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


@DetlefS wrote:

I started both TIM and ADC.


This could mean anything. Show your code. 

If a reply has proven helpful, click on Accept as Solution so that it'll show at top of the post.
CAN Jammer an open source CAN bus hacking tool
CANableV3 Open Source

Can you share your IOC file and user code? Otherwise this is a guessing game. This works in theory.

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