STM32F0 one timer gets affected by another timer interrupt.
Hi,
I am using STM32F051R8T6 (of Discovery board). In my application I am using two timers: TIMER3 and TIMER15.
TIMER3 is used to count number of pulses. Hence, I have used it as an external clock source based timer.
TIMER15( based on internal clock source) is used to interrupt at certains ms(say 10ms) of time. I am toggling a GPIO pin inside the Timer15 interrupt, so that I can verify if the timer is right (by verifying the ON & OFF time of the GPIO pin with the configured TIMER15 time of 10ms).
The problem is, when there is no external clock source for TIMER3, the TIMER15 interrupt works fine and the GPIO pin inside the interrupt is toggled at regular timer interval. But, whenever there is an external clock source for TIMER3 , the TIMER15 is affected(i.e the GPIO toggling inside the interrupt becomes irregular).
Interrupt priority of TIMER3 is set to 1 and that of TIMER15 is 2.
Why is this happening? Where I should I check for error?
