AnsweredAssumed Answered

TIMx_SR register not being cleared from interrupt (really strange issue)

Question asked by Laureg on Nov 16, 2015
Latest reply on Nov 16, 2015 by Laureg
Hello all,

I'm having another strange issue, when an update interrupt happens, neither the instruction "__HAL_TIM_CLEAR_IT(htim, TIM_IT_UPDATE)" (line 2869) of the hal_tim.c library or my code in the callback function are being able to clear the UIF flag (Bit 0 from SR register), as stated in the screenshot (attached)

But if I try the same instruction (either the HAL_TIM_CLEAR_IT or the direct register attribution) from outside the interrupt (like before enabling the IRQ again) everything works

What could be the problem? someone else experienced the same problem?