cancel
Showing results for 
Search instead for 
Did you mean: 

WakeUp Event detect from STANDBY mode

Marco1
Associate II
Posted on October 20, 2017 at 16:51

I maked a little project with STM32F415, and i have 4 way to wakeup it from STANDBY mode.

1) PA0 Pin wake up

2) RTC Timer Wake Up

3) Tamper1 Wake up

4) RTC Alarm A and RTC Alarm B

For RTC Alarm i solved comparinging the time...but for others ?

Someone know a easy way to detect the event has 'wakeuped' it ?

Sorry for my english

2 REPLIES 2
Posted on October 20, 2017 at 17:30

Do they trigger different EXTI?

Don't all the RTC sources (Timer, Alarm, Tamper) flag?

Look at the GPIO state

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on October 20, 2017 at 17:36

Hello!

Inside RTC_ISR register you can check the appropriate flags to distinguish the source of RTC wakeup event.

To find if wake up was from WKUP PIN  ,  if RTC wakeup sources are clear (after wakeup from stby mode ) then the wakeup source is from wakeup pin. (read the SBF and WUF flags inside PWR_CSR register).

Regards

vf