2015-10-01 12:30 AM
2015-10-01 12:49 AM
Hi hosoi.chitoshi,
What are CASE1 and CASE2?It should be better to provide a clear description of your issue based on code differences in the 2 cases.-Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2015-10-01 01:23 AM
hi Mayla
sorry.CASE1 is the CPU goes into standby in wkup1 is Low, it will wake up at the rising edge of then wkup1.CASE2 is the CPU goes into standby in wkup1 is High, then the wkup1 to Low, and does not wake up the next rising edge.Thanky2015-10-07 03:20 AM
Hi hosoi.chitoshi,
Sorry for this delayed reply.It seems that CPU doesn't re-enter standby mode after 1st wakeup in second case. Do you confirm this?-Mayla-To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2015-10-07 08:57 PM
hi Mayla
I made sure to be in Standby Mode using the following code in the state of WKUP1 is High.But, CPU can not return from Standby Mode, even if the WKUP1 signal is changed to High from Low. /* Enable WKUP pin 1 */ PWR_WakeUpPinCmd( PWR_WakeUpPin_1, ENABLE ); /* Clear WUF bit */ PWR->CR |= PWR_CR_CWUF; /* Enter STANDBY Mode */ PWR_EnterSTANDBYMode();image Enter STANDBY Mode | + ------------------------+ +------------WKUP1 | | +------+ ----------------+-----------------------------CPU Mode Active | Standby ----------------+----------------------------- + | not return from Standby Mode Thanky