Skip to main content
Marco1
Associate III
August 18, 2017
Question

Rtc Alarm and PA0-WKUP flag

  • August 18, 2017
  • 2 replies
  • 594 views
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

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    August 19, 2017
    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 VenmoUp vote any posts that you find helpful, it shows what's working..
    Marco1
    Marco1Author
    Associate III
    August 19, 2017
    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 ?