Senior
November 16, 2015
Question
TIMx_SR register not being cleared from interrupt (really strange issue)
- November 16, 2015
- 2 replies
- 860 views
Posted on November 16, 2015 at 03:24
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 worksWhat could be the problem? someone else experienced the same problem?