STM32F3: Example to use internal timer interrupt (TIM6/7)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-12-14 2:03 AM
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
- Labels:
-
Interrupt
-
STM32F3 Series
-
TIM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-12-14 3:48 AM
> 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-12-14 6:08 AM
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
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2018-12-17 1:23 AM
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
