RTC in Standby on STM32WL
Dear community
I'm working on a project using STM32WLE5J microcontroller. I would like to collect time from some external source and then keep it on the device. My problem is that the device loses its internal time after waking up from standby (e.g in the first cycle it counts from 0 to 30 seconds, then the device goes to sleep, it wakes up and again it begins to count from 0). I noticed that when reading from SSR register (by LL_RTC_TIME_GetSubSecond()) it gets cleared indeed.
Is there anything to set that I forget about? I wonder if the fact that device wakes up after Standby and makes all the initializations over and over again clears some data, and also RTC values.
Regards
