line 678: [11:07:54.477] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=2200 line 710: [11:07:55.679] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=2438 line 742: [11:07:56.807] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=2676 line 774: [11:07:58.010] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=2914 line 806: [11:07:59.211] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=3152 line 838: [11:08:00.412] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=3390 line 870: [11:08:01.615] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=3628 .... .... line 4995: [11:10:36.659] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=34345 line 5027: [11:10:37.861] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=34584 line 5059: [11:10:39.063] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=34822 line 5091: [11:10:40.264] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=35061 line 5123: [11:10:41.466] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=35299 line 5158: [11:10:42.751] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=35546 line 5190: [11:10:43.879] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=35784 line 5222: [11:10:45.081] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=36022 line 5254: [11:10:46.283] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=36260 line 5286: [11:10:47.485] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=36498 line 5318: [11:10:48.686] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=36736 line 5350: [11:10:49.962] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=36974 It's a log of the last three minutes,it can wake up normally [11:10:50.671] START: PWRM_CALLBACK(PreSleep), OSA_TimeGetMsec()=37286 [11:10:50.671] BUTTON: Save u32PreviousDioState = 0x2 [11:10:50.671] [11:10:50.671] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=37286 [11:10:50.671] lee InterruptStatus = 0 [11:10:50.671] lee PMC->RESETCAUSE = 0x40, PMC_RESETCAUSE_WAKEUPIORESET_MASK |PMC_RESETCAUSE_WAKEUPPWDNRESET_MASK =60 [11:10:50.671] [11:10:50.671] lee 11111 [11:10:50.671] START: PWRM_CALLBACK(Wakeup) -> vMAC_RestoreSettings() [11:10:50.671] BUTTON: APP_bButtonInitialise() [11:10:50.671] BUTTON: Load u32PreviousDioState = 0x2 [11:10:50.671] BUTTON: APP_cbTimerButtonScan(), Debounce Complete, Read=0x2, Pol=0x0, Ena=0x2 [11:10:50.671] lee end [11:10:50.671] SLEEP: Activity Count = 0 [11:10:50.671] SLEEP: Task Timers = 0 [11:10:50.671] lee 4444 [11:10:50.671] lee vScheduleSleep(FALSE)22 [11:10:50.671] SLEEP time 928 [11:10:50.671] lee status=3 [11:10:50.671] SLEEP: Osc on, u32PwrmTicks=928 [11:10:50.671] START: PWRM_CALLBACK(PreSleep), OSA_TimeGetMsec()=37302 [11:10:50.671] BUTTON: Save u32PreviousDioState = 0x2 [11:10:50.671] [11:10:50.671] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=37302 /// [11:10:50.671] lee InterruptStatus = 0 [11:10:50.671] lee PMC->RESETCAUSE = 0x40, PMC_RESETCAUSE_WAKEUPIORESET_MASK |PMC_RESETCAUSE_WAKEUPPWDNRESET_MASK =60 [11:10:50.671] [11:10:50.671] lee 11111 [11:10:50.671] START: PWRM_CALLBACK(Wakeup) -> vMAC_RestoreSettings() [11:10:50.671] BUTTON: APP_bButtonInitialise() [11:10:50.671] BUTTON: Load u32PreviousDioState = 0x2 [11:10:50.671] BUTTON: APP_cbTimerButtonScan(), Debounce Complete, Read=0x2, Pol=0x0, Ena=0x2 [11:10:50.671] lee end [11:10:50.671] SLEEP: Activity Count = 0 [11:10:50.671] SLEEP: Task Timers = 0 [11:10:50.671] lee 4444 [11:10:50.671] lee vScheduleSleep(FALSE)22 [11:10:50.671] SLEEP time 928 [11:10:50.671] lee status=3 [11:10:50.671] SLEEP: Osc on, u32PwrmTicks=928 [11:10:50.671] START: PWRM_CALLBACK(PreSleep), OSA_TimeGetMsec()=37318 [11:10:50.671] BUTTON: Save u32PreviousDioState = 0x2 [11:10:50.671] [11:10:50.671] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=37318 [11:10:50.671] lee InterruptStatus = 0 [11:10:50.671] lee PMC->RESETCAUSE = 0x40, PMC_RESETCAUSE_WAKEUPIORESET_MASK |PMC_RESETCAUSE_WAKEUPPWDNRESET_MASK =60 [11:10:50.671] [11:10:50.671] lee 11111 [11:10:50.671] START: PWRM_CALLBACK(Wakeup) -> vMAC_RestoreSettings() [11:10:50.671] BUTTON: APP_bButtonInitialise() [11:10:50.671] BUTTON: Load u32PreviousDioState = 0x2 [11:10:50.671] BUTTON: APP_cbTimerButtonScan(), Debounce Complete, Read=0x2, Pol=0x0, Ena=0x2 [11:10:50.671] lee end [11:10:50.671] SLEEP: Activity Count = 0 [11:10:50.671] SLEEP: Task Timers = 0 [11:10:50.671] lee 4444 [11:10:50.671] lee vScheduleSleep(FALSE)22 [11:10:50.671] SLEEP time 928 [11:10:50.671] lee status=3 [11:10:50.671] SLEEP: Osc on, u32PwrmTicks=928 line 5472: [11:10:50.671] START: PWRM_CALLBACK(PreSleep), OSA_TimeGetMsec()=37334 //////////////////// This time to sleep line 5473: [11:10:50.671] BUTTON: Save u32PreviousDioState = 0x2 line 5474: [11:10:50.671] line 5475: [11:10:50.671] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=37334 ///////////////////////// Wake up at this time [11:10:50.671] lee InterruptStatus = 0 [11:10:50.671] lee PMC->RESETCAUSE = 0x40, PMC_RESETCAUSE_WAKEUPIORESET_MASK |PMC_RESETCAUSE_WAKEUPPWDNRESET_MASK =60 [11:10:50.671] [11:10:50.671] lee 11111 [11:10:50.671] START: PWRM_CALLBACK(Wakeup) -> vMAC_RestoreSettings() [11:10:50.671] BUTTON: APP_bButtonInitialise() [11:10:50.671] BUTTON: Load u32PreviousDioState = 0x2 [11:10:50.671] BUTTON: APP_cbTimerButtonScan(), Debounce Complete, Read=0x2, Pol=0x0, Ena=0x2 [11:10:50.671] lee end [11:10:50.671] SLEEP: Activity Count = 0 [11:10:50.671] SLEEP: Task Timers = 0 [11:10:50.671] lee 4444 [11:10:50.671] lee vScheduleSleep(FALSE)22 [11:10:50.671] SLEEP time 928 [11:10:50.671] lee status=3 [11:10:50.671] SLEEP: Osc on, u32PwrmTicks=928 [11:10:51.057] START: PWRM_CALLBACK(PreSleep), OSA_TimeGetMsec()=37350 [11:10:51.057] BUTTON: Save u32PreviousDioState = 0x2 [11:10:51.057] [11:10:51.057] START: PWRM_CALLBACK(Wakeup), powerStatus = 0x0040, OSA_TimeGetMsec()=37350 [11:10:51.057] lee InterruptStatus = 0 [11:10:51.057] lee PMC->RESETCAUSE = 0x40, PMC_RESETCAUSE_WAKEUPIORESET_MASK |PMC_RESETCAUSE_WAKEUPPWDNRESET_MASK =60 [11:10:51.057] [11:10:51.057] lee 11111 [11:10:51.057] START: PWRM_CALLBACK(Wakeup) -> vMAC_RestoreSettings() The above log wakes up less than 1s after sleep