Question
Wakeup from Standby doesn't work on toggle
Posted on November 03, 2014 at 10:14
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. #wakeup-pin-standby-stm32f205