Question
STM32L052 random register reset
Hi there,
I’m using STM32L052 for PWM generation with TIM2.
TIM2->CR1 is initialized once at start of the program and never touched again during runtime:
TIM2->CR1 = 0x00000081;
Even though, in some random cases TIM2->CR1 switches back to 0. How can that happen? How can TIM2->CR1 accidentally switch back to 0? Is there a known issue? I really don’t know how to debug such an error. TIM2->CR1 is the only register that changes randomly.
Thanks in advance for your help!
