cancel
Showing results for 
Search instead for 
Did you mean: 

Strange behaviour when trying to use break interrupts

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
1 REPLY 1
Walid FTITI_O
Senior II
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-