Maybe it's more of a bug than a trick For a long time, the UIF was set automatically when using NVIC_INIT().Also, there is no other way to clear the UIF than by directly manipulating bits.If you follow HAL's method, Another way is to call __HAL_TIM_C...