Strange behaviour when trying to use break interrupts
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-02-29 5:49 AM
Posted on February 29, 2016 at 14:49
Hello there,
I develop an application on an STM32F2 using the break functionality of timers 1 and 8. I configured TIM1 and TIM8 using drivers provided by STM32Cube. When starting both timers using ''HAL_TIM_OC_Start_IT'' everything works fine. My outputs are disabled when the break condition appears and are reenabled when the break condition has gone. But when activating timers using ''HAL_TIMEx_OCN_Start_IT'', I get a completely different behavior. My outputs are always disabled for both timers. On TIM1 I initially hit ''HAL_TIMEx_BreakCallback'' (via ''TIM1_BRK_TIM9_IRQHandler''), but never on TIM8 (via ''TIM8_BRK_TIM12_IRQHandler''). Interrupt on TIM8 is not even hit, when only running TIM8 with break interrupt. Can you give me any hint, what might happen, or how I might figure out my problem? Best regards Andreas Walter
This discussion is locked. Please start a new topic to ask your question.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2016-03-23 3:49 AM
Posted on March 23, 2016 at 11:49
Hi walter.andreas,
''But when activating timers using ''HAL_TIMEx_OCN_Start_IT'', I get a completely different behavior. My outputs are always disabled for both timers. On TIM1 I initially hit ''HAL_TIMEx_BreakCallback'' (via ''TIM1_BRK_TIM9_IRQHandler''), but never on TIM8 (via ''TIM8_BRK_TIM12_IRQHandler''). Interrupt on TIM8 is not even hit, when only running TIM8 with break interrupt.'' -> Your description of the problem is not clear enough. Try to go step by step and share your description by case. -Hannibal-