2016-02-29 05:49 AM
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 Walter2016-03-23 03:49 AM
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-