AnsweredAssumed Answered

Strange behaviour when trying to use break interrupts

Question asked by Walter.Andreas on Feb 29, 2016
Latest reply on Mar 23, 2016 by FTITI.Walid
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

Outcomes