<?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>How to knew, what cause event after sd_app_evt_wait()?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38967/how-to-knew-what-cause-event-after-sd_app_evt_wait</link><description>Hi, 
 I want to put my nrf52832 into the low-power mode. I select SYSTEM ON with low-power (instead of SYSTEM OFF) in order to overcome reset. In order to do it I call sd_app_evt_wait(), but after that device immediately wakeup. Before calling this function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 Oct 2018 08:42:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38967/how-to-knew-what-cause-event-after-sd_app_evt_wait" /><item><title>RE: How to knew, what cause event after sd_app_evt_wait()?</title><link>https://devzone.nordicsemi.com/thread/153402?ContentTypeID=1</link><pubDate>Thu, 18 Oct 2018 08:42:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89bd051c-226e-42e3-a1e9-48aeccff625e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;When you&amp;nbsp;put the CPU to sleep do you have any radio activity ? Like advertising, in a connection ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you call&amp;nbsp;sd_evt_get(&amp;amp;evt_id) please make sure that it&amp;#39;s return NRF_SUCCESS. You can be waken up not because of softdevice&amp;#39;s event. Please make sure it&amp;#39;s not from one of your peripheral, like SPI, RTC, TIMER.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;My suggestion for you is to&amp;nbsp;disable the functionality of the code, like disable SPI, RTC, softdevice (don&amp;#39;t initialize them) until you can enter sleep mode. Note that if you run the chip in debug mode it won&amp;#39;t be able to enter sleep mode.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to knew, what cause event after sd_app_evt_wait()?</title><link>https://devzone.nordicsemi.com/thread/153221?ContentTypeID=1</link><pubDate>Wed, 17 Oct 2018 12:02:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e8f0d63-a9a9-450a-858b-ef8ba5da9def</guid><dc:creator>Ars Morozov</dc:creator><description>&lt;p&gt;Sorry for so long delay, I skipped notification about update in this thread. You can see in the first post that I use SDK 15.2 , softdevice s132 6.1.0.&lt;/p&gt;
&lt;p&gt;My application is based on ble_app_template. I try to go to sleep in advertising event handler in case of BLE_ADV_EVT_IDLE event. In my application I use 1 TIMER, SPI0, SPI1 through PPI from timer event, RTC and SPI2 for sd card and also GPIOTE. Before going to sleep I disable RTC, PPI and TIMER.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to knew, what cause event after sd_app_evt_wait()?</title><link>https://devzone.nordicsemi.com/thread/150696?ContentTypeID=1</link><pubDate>Thu, 27 Sep 2018 12:12:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a9ada0f-f7e8-4670-8741-f96f511b281d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Arsenii,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Could you tell more about your application ? Which softdevice do you use ? which SDK ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;When testing that were you in any connection ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you have any other peripheral running ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried to test with a dummy program (ble_app_template for example) to see if&amp;nbsp;CPU can enter sleep mode ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>