Skip to main content
Jordi Becares
Associate III
December 14, 2018
Question

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

  • December 14, 2018
  • 3 replies
  • 989 views

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
December 14, 2018

> 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
December 14, 2018

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
December 17, 2018

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