cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F3: Example to use internal timer interrupt (TIM6/7)?

Jordi Becares
Associate II

I'm working over STM32f334, i config cubeMx to use TIM6 o TIM7 to generate interrupt every 20ms, but interrupt is not fired.

I'm finding a official examples to use HAL to config TIM as internal interupt.

Any idea? any ink?

Thanks

Jordi

3 REPLIES 3

> interrupt is not fired.

Read out and check the content of relevant TIM and NVIC registers. Check in disasm that the ISR's address is correctly in the vector table.

JW

The TIM are all much the same, TIM1/TIM8 are typically more complex (advanced), but the others should be readily portable, basically cut-and-paste search-and-replace.

Be attentive to IRQ Handlers in the stm32f3xx_it.c file, the exact naming, callback, and NVIC, etc

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
Jordi Becares
Associate II

Dear all,

thanks for you feedback.

But my problem is using HAL.

At end I got to work well, but not with all timers.

Do you know where I can found examples over HAL and CubeMX?

Thanks

Jordi