cancel
Showing results for 
Search instead for 
Did you mean: 

Rtc Alarm and PA0-WKUP flag

Marco1
Associate II
Posted on August 18, 2017 at 21:48

Hi,

i'm working with STM32F415RG and i want only ask a easy question.

I'ts possible to detect if the chip (during StandBy mode) is wakeup from RTC ALARM or from PA0-WKUP pin ? some flag will be setted ?

Regard

2 REPLIES 2
Posted on August 19, 2017 at 03:27

Doesn't the RTC flag this? RTC_ISR

Plus you know the time currently and of the alarms.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Marco1
Associate II
Posted on August 19, 2017 at 17:00

When you restart from Standby, both flags are '0', so you can't know if wakeup are from pa0-wkup pin or from RTC alarm.

Any way to detect it ?