STM32H745 - resetting of a variable in ISR does not work occasionally
I have a strange problem. I have a global uint32_t variable that counts up in the main loop and every 100 ms it gets reset in a timer-ISR. This works, but sometimes it does not.
Here is the value of the variable MainCounter read out by the debugger:

The ISR is definitely called every time as the toggling variable test shows. Also inside the ISR MainCounter really is zero, I checked. But sometimes this zero does not "reach" the main loop.
Please help, I have absolutely no idea how this is even possible.
