Question
TIM2 interrupt fires twice when optimize speed is set
Hello,
I just test some interrupt stuff with Nucleo F439ZI and found that simply setting optimize to -Ofast leads to a timer 2 interrupt (compare event when generating a PWM) firing two times, while -O0 shows the expected behaviour. I test this with an isr that just sets and resets a GPIO pin and clears the timers flag. Also SWV shows this double execution.
Whats wrong with optimize speed?
Any help is welcome - thanks
Martin
