AnsweredAssumed Answered

Wakeup from Standby doesn't work on toggle

Question asked by strauss.bar on Nov 3, 2014
Latest reply on Nov 4, 2014 by waclawek.jan
I work with the Wakeup pin (PA0) as STandBy wakeup.
When I set PA0="0" change it to WakeUP pin  and then enter StandBy. When I make PA0="1" it get out of the Standby state and work as usuall.
But when I enter to StandBy after confige it and PA0="1" and then try to toggle PA0 ->0->1 it doesn't work.
I do all the glage clear before enter Standby.
Here is the code for entering Standby:
    PWR_WakeUpPinCmd(ENABLE); //Enables the WakeUp Pin functionality 
        /* Clear Wakeup flag  */
    PWR->CR |= PWR_CR_CWUF;
    /* Clear all RTC flages that can mask the WUF function */
    RTC_ClearFlag(RTC_FLAG_ALRBF | RTC_FLAG_ALRAF | RTC_FLAG_TSF | RTC_FLAG_WUTF| RTC_FLAG_TAMP1F  );
    /* Request to enter STANDBY mode  */
    PWR_EnterSTANDBYMode();  // enter to StandBy mode   
As I read it the Wakeup work on rise enge and not level.
DO I miss soemthing?
Bar.

Outcomes