Question
How can you know that an update event on TIM5 (for example) is actually an overflow?
I set up tim5 in compare mode to get an interrupt at a specific tick, but I am also interested in the overflows. I get an update interrupt very early after starting the timer, so it is definitely not an overflow. Is there some register I should read after an update-event interrupt where I can disambiguate the type of update?