button press to wake up

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
urchc_1533771
Level 5
Level 5
5 likes given First like received First like given

In sample projects many of it have this text:

   

On an advertisement event timeout, if the device is not connected to any Client, the device goes to the Low Power mode (Hibernate mode) and waits for a SW2 button press to wake up the device again and start advertising.

   

but Sw2 not have interrupt handler and when user push button program make restart. I see for example in BLE_Battery_Level this message :

   

"BLE Battery Level Example Project " that placed in start of code.  

   

How make that device will be real wake up ( advertising without reset) ?

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Do not use the Hibernate mode, use deep sleep instead. Wakeup from Hibernate is only via reset,

   

wakeup from deep sleep uses the PICU (Peripheral interrupt Controller). So when your system generates an interrupt (Attention: only LFCLK is running!!!) the PICU gets you out of bed.

   

 

   

Bob

View solution in original post

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Do not use the Hibernate mode, use deep sleep instead. Wakeup from Hibernate is only via reset,

   

wakeup from deep sleep uses the PICU (Peripheral interrupt Controller). So when your system generates an interrupt (Attention: only LFCLK is running!!!) the PICU gets you out of bed.

   

 

   

Bob

0 Likes