AnsweredAssumed Answered

Get Standby Mode wake up source?

Question asked by Andres Smithuis on Jun 1, 2018

I'm putting my STM32L0 in Standby Mode and it can be woken up either by an RTC timer event or by WKUP Pin. Is there a way to check what the source was of the wakeup event? (So check if wakeup was because of WAKEUP pin or by RTC)?



Found a method which works for my application. I check to see if the WUTF is set from the RTC->ISR register. If it is set, it means the MCU woke up from the RTC timer. Otherwise I assume it was from the WKUP pin.