<?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>Why is it wake-up from sleep mode?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67768/why-is-it-wake-up-from-sleep-mode</link><description>Hi. 
 I am testing sleep mode using nrf_pwr_mgmt_run(). 
 When nrf_pwr_mgmt_run() is called, it is changed to sleep mode, but it wake-up up immediately and it is changed to sleep mode only when nrf_pwr_mgmt_run() is called again. 
 Why wake-up from the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 29 Oct 2020 12:27:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67768/why-is-it-wake-up-from-sleep-mode" /><item><title>RE: Why is it wake-up from sleep mode?</title><link>https://devzone.nordicsemi.com/thread/277593?ContentTypeID=1</link><pubDate>Thu, 29 Oct 2020 12:27:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ae15bae-ef12-4d8c-a654-ad2fdf5c3cf6</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;There is no short description to the why, but it is this way by design. For instance the call to&amp;nbsp;sd_app_evt_wait() will by itself generate an event due to the SVC call (sd_app_evt_wait()) generated an event when called and must be cleared, however it could be in parallel that an application also have generated an event at the same time and should be processed, so &lt;span&gt;sd_app_evt_wait()&amp;nbsp;&lt;/span&gt;might be called twice to avoid missing events before going to sleep. It is more important that all events are handled, than the potential risk of an event is missed. Thereby you can see that&amp;nbsp;&lt;span&gt;sd_app_evt_wait() sometimes must be called twice&amp;nbsp;before going to sleep.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>