Skip to main content
Jordi Becares
Associate III
Dec 14, 2018 10:03 AM UTC
Question

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

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

This topic has been closed for replies.

3 replies

waclawek.jan
Super User
Dec 14, 2018 11:48 AM UTC

> 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

Tesla DeLorean
Guru
Dec 14, 2018 2:08 PM UTC

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
Jordi Becares
Associate III
Dec 17, 2018 9:23 AM UTC

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