Question
Why does starting a timer stop other timers interrupts?
void TIM5_IRQHandler(void)
{
/* USER CODE BEGIN TIM5_IRQn 0 */
printTIM5 = 1; //checks in main loop if set, then resets to zero and prints
if(__HAL_TIM_GET_ITSTATUS(&htim5, TIM_IT_UPDATE))
{
__HAL_TIM_CLEAR_IT(&htim5, TIM_IT_UPDATE);
if(counter == 22)
{
HAL_TIM_PWM_Start(&htim4, TIM_CHANNEL_4);
}
counter++;
}
}When I start Timer 4 after reaching counter equal to 22 (counter = 22), the interrupt of Timer 5 is no longer executed because I do no longer get the printf("TIM5") message. Why is that? What could be the reason? I am just confused right now...
IT Flags are cleared using the MXCube generated funtions (HAL_TIM_IRQHandler(&htim4);)
Thanks in advance