TIM2 fires off interrupt at the same interval despite drastically different prescaler and period values
Hi:
My platform: STM32WB55CE.
I'm using internal clock.
I have rigged the TIM2 with an interrupt function. The interrupt could fire, but it will be fired right after all the initialization were done. More over, no matter how I change the prescaler value or the period value for TIM2's init struct, the interrupt seems always fire at the same short, <1second interval.
I don't know where to begin, this is quite strange! Did I configured the wrong clock source? I heard that if you designated the wrong clock source the timer shouldn't work at all.
Please help!