<?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>sleep mode of nRF52840 in NCS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80967/sleep-mode-of-nrf52840-in-ncs</link><description>I&amp;#39;m working on NCS 1.6.1 for both nRF52840 and nRF9160. 
 I&amp;#39;m trying to put my devices into sleep mode so i reviewed some related tickets and found following ways. 
 NRF_REGULATORS-&amp;gt;SYSTEMOFF=1 //this seems only to be supported in nrf9160 
 and 
 pm_power_state_force</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Oct 2021 02:34:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80967/sleep-mode-of-nrf52840-in-ncs" /><item><title>RE: sleep mode of nRF52840 in NCS</title><link>https://devzone.nordicsemi.com/thread/335838?ContentTypeID=1</link><pubDate>Tue, 26 Oct 2021 02:34:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51860990-e4f3-48a4-94c0-493b283ac8a2</guid><dc:creator>peter_liu</dc:creator><description>&lt;p&gt;thanks, it&amp;#39;s very helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sleep mode of nRF52840 in NCS</title><link>https://devzone.nordicsemi.com/thread/335759?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 13:13:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bedd877-4ecc-43ff-a9a0-932170eb1ac1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please check out the nRF5x system OFF sample project in Zephyr which uses &lt;strong&gt;pm_power_state_force&lt;/strong&gt; correctly to force an nRF5x device to system OFF. It can be found in&amp;nbsp;&lt;strong&gt;...\&amp;lt;NCS_FOLDER&amp;gt;\v1.7.0\zephyr\samples\boards\nrf\system_off\src\main.c&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sleep mode of nRF52840 in NCS</title><link>https://devzone.nordicsemi.com/thread/335696?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 11:09:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff134bb9-d532-49ce-8ed5-a6eb3bcefe5a</guid><dc:creator>peter_liu</dc:creator><description>&lt;p&gt;actually, I just wanted to force it to sleep mode for some HW test for now.&lt;/p&gt;
&lt;p&gt;so, is the following correct way ?&lt;/p&gt;
&lt;p&gt;info.state=PM_STATE_RUNTIME_IDLE;&lt;br /&gt; pm_power_state_force( info);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sleep mode of nRF52840 in NCS</title><link>https://devzone.nordicsemi.com/thread/335631?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 06:59:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a4582b8-48b5-4c37-b077-aa9f4a1a0871</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please check out the&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/power_management/index.html"&gt; Power Management subsystem in the Zephyr RTOS&lt;/a&gt; which is what the nRFConnect SDK (NCS) applications use for power management. The list of available power states is defined by &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/power_management/index.html#power-states"&gt;pm_state&lt;/a&gt;. The recommended way to go to sleep is neither of these, as the PM_STATE_STANDBY or PM_STATE_RUNTIME_IDLE are better suited to put devices into sleep modes, instead of &amp;quot;forcing&amp;quot; them to sleep modes.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>