Skip to main content
mat-ush
Associate
February 27, 2019
Solved

STM32L0 stop mode - RTC wakeup not working after RESET

  • February 27, 2019
  • 1 reply
  • 1153 views

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

This topic has been closed for replies.
Best answer by mat-ush

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

1 reply

mat-ush
mat-ushAuthorBest answer
Associate
March 5, 2019

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