<?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>Prevent sd_app_evt_wait from wakeup</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34426/prevent-sd_app_evt_wait-from-wakeup</link><description>hello, 
 I&amp;#39;m currently stuck with sd_app_evt_wait() function leaving for an unknown reason. This function is called in the main loop. 
 The only reasons that shall exit the low power mode are: 
 - RTC1 (app_timer) callback trigger, it is triggered every</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 14 May 2018 15:19:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34426/prevent-sd_app_evt_wait-from-wakeup" /><item><title>RE: Prevent sd_app_evt_wait from wakeup</title><link>https://devzone.nordicsemi.com/thread/132213?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 15:19:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4ac18a3-cd34-41af-9bd0-3222b3d088b9</guid><dc:creator>bloobird0</dc:creator><description>&lt;p&gt;hello,&lt;/p&gt;
&lt;p&gt;I added the code from the errata that you sent me and it looks to solve my issue, I have to test further but from what I see now it looks very good, thank you very much!&lt;/p&gt;
&lt;p&gt;Yes some operation on float values are executed in the code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Prevent sd_app_evt_wait from wakeup</title><link>https://devzone.nordicsemi.com/thread/132212?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 08:38:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04da1382-de39-4810-b511-994fbe9cc44d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for confirming, so it sounds like there is a pending interrupt that prevents the CPU from entering sleep, but not sure why it only happens when the softdevice is enabled&amp;nbsp;.&amp;nbsp;Do you have any floating point instructions in your code? In that case you should implement the workaround for errata 87:&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev2.errata/dita/errata/nRF52832/Rev2/latest/anomaly_832_87.html?cp=2_1_1_0_1_24"&gt;http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.Rev2.errata/dita/errata/nRF52832/Rev2/latest/anomaly_832_87.html?cp=2_1_1_0_1_24&lt;/a&gt;.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Prevent sd_app_evt_wait from wakeup</title><link>https://devzone.nordicsemi.com/thread/132211?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 08:19:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23692fc2-6bf8-4de8-a229-6eaaccf6085e</guid><dc:creator>bloobird0</dc:creator><description>&lt;p&gt;yes, the program passes the ble_stack_init() and yes sd_app_evt_wait() is called in the main loop.&lt;/p&gt;
&lt;p&gt;I can advertise, connect, read/write characteristics.... it&amp;#39;s just that the µC does not stay in low power mode and leaves sd_app_evt_wait(), I don&amp;#39;t know how to find the wakeup reason.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The clock assignment is the following:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define NRF_CLOCK_LFCLKSRC {.source = NRF_CLOCK_LF_SRC_RC , \
.rc_ctiv = 16, \
.rc_temp_ctiv = 2, \
.xtal_accuracy = 0} ///ignored when using LF RC

nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;

// Initialize SoftDevice.
SOFTDEVICE_HANDLER_INIT(&amp;amp;clock_lf_cfg, NULL);

&amp;#160;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Prevent sd_app_evt_wait from wakeup</title><link>https://devzone.nordicsemi.com/thread/132210?ContentTypeID=1</link><pubDate>Mon, 14 May 2018 08:11:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae202d15-99d9-4220-80fc-26f4797b3005</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Does the program get past&amp;nbsp;ble_stack_init() and are you calling&amp;nbsp;sd_app_evt_wait() from the main loop? Remember that&amp;nbsp;you must specify what LF source to use when you call&amp;nbsp;sd_softdevice_enable().&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>