<?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 enter sleep mode in nRF9160?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44326/how-to-enter-sleep-mode-in-nrf9160</link><description>I&amp;#39;m implementing a function which enters sleep mode and wakes up by interrupt like below.. 
 
 
 Is this correct way to enter sleep mode? Do you know any other better ways to do it? 
 In the nRF52 series case, it seems that you can use nrf_pwr_mgmt_run</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 07 Mar 2020 14:49:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44326/how-to-enter-sleep-mode-in-nrf9160" /><item><title>RE: How to enter sleep mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/238643?ContentTypeID=1</link><pubDate>Sat, 07 Mar 2020 14:49:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:882e8859-9d3b-4670-b7a1-4def4bdb7be0</guid><dc:creator>Steven</dc:creator><description>&lt;p&gt;Updated link:&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/1.11.0/kernel/threads/system_threads.html"&gt;https://docs.zephyrproject.org/1.11.0/kernel/threads/system_threads.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enter sleep mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/186540?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 02:22:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd011e5b-fa96-425e-9256-a25845b1a59f</guid><dc:creator>rkguy</dc:creator><description>&lt;p&gt;Just for clarity, are you saying that the examinex enter idle thread when we are not doing anything, e.g. eDRX mode in the asset tracker example is using idle thread? Also your first link is broken in your original reply and in can not find the documentation for idle thread in your last link&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enter sleep mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/177811?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 11:55:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9055fe8c-1f84-499a-875d-c83063e39a2b</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;The idle thread is already implemented in the zephyr code. The example code is in the nRF connect SDK: &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/index.html"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/index.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enter sleep mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/175745?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 16:16:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc8a598f-f397-43b1-b684-d9634213d23d</guid><dc:creator>Yusuke</dc:creator><description>&lt;p&gt;Thank you for your reply. I&amp;#39;m new to zenphyr. Could you tell me how to use the&amp;nbsp;&lt;span&gt;idle thread or give me any example code?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enter sleep mode in nRF9160?</title><link>https://devzone.nordicsemi.com/thread/175729?ContentTypeID=1</link><pubDate>Tue, 12 Mar 2019 15:16:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ebe2f35-b2b9-4253-838e-3a6432d88051</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;In Zephyr, there is an idle thread that starts to execute when there are no other tasks. Please read more here: &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/kernel/threads/system_threads.html"&gt;http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/kernel/threads/system_threads.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There&amp;#39;s no need to enter sleep mode from the main thread. In fact you can return from the main thread if you don&amp;#39;t do anything in the main thread.&lt;/p&gt;
&lt;p&gt;If you specifically want to enter sleep mode from the main thread, please have a look here: &lt;a href="https://docs.zephyrproject.org/latest/reference/kernel/other/cpu_idle.html?highlight=idle%20thread"&gt;https://docs.zephyrproject.org/latest/reference/kernel/other/cpu_idle.html?highlight=idle%20thread#&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>