<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>BLE Wakeup Event failed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16409/ble-wakeup-event-failed</link><description>Hi, 
 We have created a new button events for our application in which it will record total time/ticks that the button is presses. 
 When you press button for 3-4 sec BLE will start advertising after 10sec(in my case) time out period it will go to sleep</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Sep 2016 10:42:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16409/ble-wakeup-event-failed" /><item><title>RE: BLE Wakeup Event failed</title><link>https://devzone.nordicsemi.com/thread/62813?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2016 10:42:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e4fa2ac-4e62-47b7-a174-91c219eb390d</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;The problem is that you are calling &lt;code&gt;bsp_btn_ble_sleep_mode_prepare()&lt;/code&gt; before you enter system off (&lt;code&gt;sd_power_system_off()&lt;/code&gt;). This will configure pin 13 and 14 as wake-up pins. For some reason it is setting pin 14 (button 2) to SENSE_LOW with input buffer disconnected and no pull-up. This means that the pin is floating. Because of this, the chip is waking up immediately.&lt;/p&gt;
&lt;p&gt;When waking up from system off the gpio registers will be retained, see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=2_2_0_17_6#unique_53991153"&gt;here&lt;/a&gt;. And for some reason the configuration of pin 14 is causing problems (resetting the config on pin 14 at the start of main removed the problem)&lt;/p&gt;
&lt;p&gt;The solution is simply to remove &lt;code&gt;bsp_btn_ble_sleep_mode_prepare()&lt;/code&gt; in &lt;code&gt;sleep_mode_enter()&lt;/code&gt;. You can also remove the call to &lt;code&gt;bsp_indication_set(BSP_INDICATE_IDLE)&lt;/code&gt; as you don&amp;#39;t use the bsp module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Wakeup Event failed</title><link>https://devzone.nordicsemi.com/thread/62812?ContentTypeID=1</link><pubDate>Thu, 15 Sep 2016 11:24:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d48ad94-8c67-4146-8407-53f1a73b7db6</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;I am using the following hex file for soft devices &amp;quot;/../..\nRF5_SDK_11.0.0_89a8197\components\softdevice\s132\hex&amp;quot;&lt;/p&gt;
&lt;p&gt;If you use serial monitor you should be able to see &amp;quot;MASK Active&amp;quot; test when you PUSH it for 1sec. If you push it for ~3-4 sec then it will display &amp;quot;BLE Active&amp;quot;. When you see &amp;quot;BLE Active&amp;quot; then it will start advertising for 10sec during this period you button is still active but after 10sec it go to sleep mode and  problem starts now. If you push the button again then it won&amp;#39;t show anything on Serial monitor, this is my problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE Wakeup Event failed</title><link>https://devzone.nordicsemi.com/thread/62811?ContentTypeID=1</link><pubDate>Thu, 15 Sep 2016 10:55:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee0ed908-27cc-4932-a76a-70961def92da</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Can you explain in more detail what the problem is? I tested your code and saw no problem with wakeup event when pressing button. You are sure you have flashed the correct SoftDevice. Check if the code is running at all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>