L431 debug stops after enabling timer update interrupt
Hi all,
I have encountered a problem where the debug would stop working as soon as the program hits the line where TIM15's update interrupt is enabled. From there the program appears to be still running but would not stop at any breakpoints and live expressions would show zeros and blanks as well.
The line(s) after which debug would stop working:
LL_TIM_EnableIT_UPDATE(TIM15); //Debug stops working after this line
LL_TIM_EnableCounter(TIM15);
TIM15 is set to have a period of around 7.2kHz, with initialization code as below:
LL_TIM_Init(TIM15, &PHtimer);
//LL_TIM_DisableARRPreload(TIM15);
LL_TIM_SetOnePulseMode(TIM15, LL_TIM_ONEPULSEMODE_REPETITIVE);
LL_TIM_SetUpdateSource(TIM15, LL_TIM_UPDATESOURCE_COUNTER);
NVIC_EnableIRQ(TIM1_BRK_TIM15_IRQn);
Please let me know of your insights on why this problem would occur, thank you!
Zhi
