2017-10-20 07:51 AM
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 Up3) Tamper1 Wake up4) RTC Alarm A and RTC Alarm BFor 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
2017-10-20 08:30 AM
Do they trigger different EXTI?
Don't all the RTC sources (Timer, Alarm, Tamper) flag?
Look at the GPIO state
2017-10-20 08:36 AM
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