2025-03-04 2:51 PM
Hello !
I have a problem : I'm looking for a way to know the origin of a wake-up from standby mode.
I'm using STM32U083C Discovery Kit.
In my application, MCU can wake-up in two different manners : an external wake-up pin and an RTC periodic wake-up.
The question is : how to distinguish the two ?
I tried :
if (__HAL_RTC_WAKEUPTIMER_GET_FLAG(&hrtc, RTC_FLAG_WUTF) == SET)
{...}
But the flag is never SET...
Thank you in advance for your feedback !
Xavier