cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L0 stop mode - RTC wakeup not working after RESET

mat-ush
Associate

STM32L041F6 - I configured RTC for wakeup every second from Stop mode. It works ok, but after external reset (NRST pin) it not working. Program run in main while() only once, to line:

HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);

After switch power supply OFF / ON it is working again correctly with 1Hz wake up and stop mode. I am affraid, if cpu will be reset from some reason, application will be "freezed".

I readed similar bugs about external wakeup, I tried more solutions, but it is still same.

What is needed for fix "RTC wakeup bug"? What I forgot to do? Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
mat-ush
Associate

I updated CubeMX and HAL library to latest version, now it works correctly also after reset.

View solution in original post

1 REPLY 1
mat-ush
Associate

I updated CubeMX and HAL library to latest version, now it works correctly also after reset.