<?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>the nrf51822 chip is not going to sleep properly.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11158/the-nrf51822-chip-is-not-going-to-sleep-properly</link><description>nrf51822_sleep.txt 
 Currently i running nordic code in Arduino IDE through the library from RedbearLab : github.com/.../nRF51822-Arduino and I facing a problem in sleeping the nrf51822 properly. When i used __WFE() or __WFI the system will woke up roughly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Jan 2016 07:10:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11158/the-nrf51822-chip-is-not-going-to-sleep-properly" /><item><title>RE: the nrf51822 chip is not going to sleep properly.</title><link>https://devzone.nordicsemi.com/thread/41812?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2016 07:10:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6b30ad10-2df9-4d28-a585-1494d29298cc</guid><dc:creator>adrianwong</dc:creator><description>&lt;p&gt;I have try ble.waitForEvent() and is not working. I think ble.waitForEvent() is just to sleep the BLE communication part rather than the chip&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the nrf51822 chip is not going to sleep properly.</title><link>https://devzone.nordicsemi.com/thread/41811?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2016 04:49:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9f70a03-301f-4c98-bfad-5bbd1ffe9ff5</guid><dc:creator>adrianwong</dc:creator><description>&lt;p&gt;What you trying to say is ble.waitForEvent()  is sleep mode? How to set if i wanted to go into deep sleep mode like &amp;quot;sd_power_system_off();&amp;quot;?? kindly assist.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the nrf51822 chip is not going to sleep properly.</title><link>https://devzone.nordicsemi.com/thread/41810?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2016 15:46:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9d90c6f-d418-4ed5-bf68-18943f7f2093</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Perhaps you can try to call ble.waitForEvent() function as the heart rate example (HRM) does, in order to get the nRF51 to sleep, instead of calling sd_app_evt_wait(). Im not sure the sd_app_evt_wait() is supported in the Arduino IDE. I found documentation for the ble.waitForEvent() function in&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;\nRF51822-Arduino-S130\nRF51822-Arduino-S130\arduino-1.6.x\hardware\RBL\RBL_nRF51822\cores\RBL_nRF51822\BLE_API-master\ble
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the nrf51822 chip is not going to sleep properly.</title><link>https://devzone.nordicsemi.com/thread/41809?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2016 11:17:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:582a3a2d-596c-439e-92b0-8340fe7e89fd</guid><dc:creator>adrianwong</dc:creator><description>&lt;p&gt;Hi i think you can have a look of my code first. &amp;quot;nrf51822_sleep.txt&amp;quot; . I have been following the example that you shown me but as i mentioned the system will go to sleep but it will wake up itself without any interrupt. How i know sd_app_evt_wait() is not working, is by putting serial print after the line sd_app_evt_wait(). If the serial print is still working then i know the system is not sleep.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the nrf51822 chip is not going to sleep properly.</title><link>https://devzone.nordicsemi.com/thread/41808?ContentTypeID=1</link><pubDate>Thu, 07 Jan 2016 11:09:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7967499-d86a-4687-834f-6309b0b3b44a</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Try to put the device to sleep in the same way as shown in &lt;a href="https://github.com/NordicSemiconductor/nrf51-powerdown-examples/blob/master/system-on-wakeup-on-gpio/main.c"&gt;this example&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;How can you tell that the nRF51 is not sleeping when calling sd_app_evt_wait()? When calling sd_app_evt_wait(), the chip should sleep, but it will wake up again as soon as interrupt is triggered. If you run BLE application, the stack generates an interrupt on every BLE radio event which will wake up the nRF51. More information on this is in the &lt;a href="https://devzone.nordicsemi.com/tutorials/11/"&gt;nRF51 current consumption guide&lt;/a&gt;, section about &amp;quot;Low power mode with BLE softdevice&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>