2020-08-28 5:03 AM
I want to wakeup from standby-mode in less than 20msec.
I want to wake up from standby-mode in less than 20 seconds using Periodic auto-wakeup, but I can't wake up below 22 msec.
Could you tell me if there is any good way?
The following HAL driver is used.
HAL_RTCEx_SetWakeUpTimer( & hrtc,1,RTC_WAKEUPCLOCK_RTCCLK_DIV2 );
And the MCU is STM32L433.
Thanks in advance!
2020-08-29 7:45 PM
Hello YTaka.1
First make sure your LSE/RTC is well calibrated, you can use the 1Hz RTC_output to be sure of that.
In RM0394 section 36.3.6 Periodic auto-wakeup, it say "When the periodic wakeup interrupt is enabled by setting the WUTIE bit in the RTC_CR register, it can exit the device from low-power modes." So I guess give HAL_RTCEx_SetWakeUpTimer_IT a try.
I suggest also to test, without entering the standby mode, the time between two wakeup event by the RTC, just to better understand how your system behave.
Good luck,
Regards,
Hajji.
We’re moving the ST Community to a new platform to give you a better and more reliable community experience.