Inconsistent Timer Interrupt
I'm running an STM32F373 with 8Mhz osc and enabled PLL in the clock config to get 24Mhz on the timer buses.
I setup TIM2 to TIM_IT_UPDATE interrupt at 4Hz. I send a one time 10ms pulse to an output pin each time TIM2 interrupts. ( I have a speaker beep to hear the output )
For some reason, the output glitches every now and then, indicating TIM2 is running a bit slow, or is slow getting to the interrupt. ( maybe 2ms-5ms of delay, just enough to be noticeable by ear ) I plan on connecting my oscope to it again but it does not log long enough for me to capture the glitch.
I don't have any other interrupts running and have also tried raising the priority interrupt level for TIM2.
Is it possible PLL is causing a slight glitch when multiplexing the 8Mhz external ocs x6?
I ensured to stop CubeMX's debugging and even disconnected the USB cable to ensure the IDE or debugger was not causing the glitch. ( which it does when I hit 'stop' debugging, but that is not the cause of my issue )
Thank you!
