<?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>NRF52 High power consumption on in PM_STATE_SUSPEND_TO_IDLE/PM_STATE_SUSPEND_TO_RAM state - Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97597/nrf52-high-power-consumption-on-in-pm_state_suspend_to_idle-pm_state_suspend_to_ram-state---zephyr</link><description>Hi, 
 I am working on the nrf52 pdk using zephyr ncs v2.1.2 on windows 
 I am using the zephyr system off example in which I get the 30-40uA current as shown below. 
 
 But if I replace the PM_STATE_SOFT_OFF (Please refer below line code) to the PM_STATE_SUSPEND_TO_IDLE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Mar 2023 13:08:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97597/nrf52-high-power-consumption-on-in-pm_state_suspend_to_idle-pm_state_suspend_to_ram-state---zephyr" /><item><title>RE: NRF52 High power consumption on in PM_STATE_SUSPEND_TO_IDLE/PM_STATE_SUSPEND_TO_RAM state - Zephyr</title><link>https://devzone.nordicsemi.com/thread/417902?ContentTypeID=1</link><pubDate>Tue, 28 Mar 2023 13:08:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26b4d1e7-4fc3-4b9e-bbfe-36e7bb1a0071</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="SM_"]&lt;p&gt;or System off I used the Zephyr&amp;nbsp;&lt;span style="color:rgba(51, 102, 255, 1);font-size:inherit;"&gt;&lt;strong&gt;nRF5x System Off demo&amp;nbsp;example.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;but from above example I used below lines of code only, and rest of the code is commented.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="color:rgba(51, 102, 255, 1);"&gt;void main(void){&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:rgba(51, 102, 255, 1);"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:rgba(51, 102, 255, 1);"&gt;pm_state_force(0u, &amp;amp;(struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0});&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:rgba(51, 102, 255, 1);"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:rgba(51, 102, 255, 1);"&gt;k_sleep(K_SECONDS(SLEEP_S));&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="color:rgba(51, 102, 255, 1);"&gt;printk(&amp;quot;ERROR: System off failed\n&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:rgba(51, 102, 255, 1);"&gt;while (true) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:rgba(51, 102, 255, 1);"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // spin to avoid fall-off behavior&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;[/quote]
&lt;p&gt;Implementation looks good for me . Is there any peripheral connected to the chip while measuring? Take a look at this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/93621/unable-to-add-system-off-sleep-mode-in-zephyr"&gt;old thread &lt;/a&gt;of my colleague where he shared a sample for testing the same. Please try this and report back.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 High power consumption on in PM_STATE_SUSPEND_TO_IDLE/PM_STATE_SUSPEND_TO_RAM state - Zephyr</title><link>https://devzone.nordicsemi.com/thread/417490?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2023 15:44:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de40d0c1-f064-4c87-b615-2e767c2628d2</guid><dc:creator>SM_</dc:creator><description>&lt;p&gt;Hi Menon,&lt;/p&gt;
&lt;p&gt;1. For System off I used the Zephyr&amp;nbsp;&lt;span style="color:#3366ff;font-size:inherit;"&gt;&lt;strong&gt;nRF5x System Off demo&amp;nbsp;example.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;but from above example I used below lines of code only, and rest of the code is commented.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span style="color:#3366ff;"&gt;void main(void){&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#3366ff;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#3366ff;"&gt;pm_state_force(0u, &amp;amp;(struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0});&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#3366ff;"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#3366ff;"&gt;k_sleep(K_SECONDS(SLEEP_S));&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span style="color:#3366ff;"&gt;printk(&amp;quot;ERROR: System off failed\n&amp;quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#3366ff;"&gt;while (true) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#3366ff;"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // spin to avoid fall-off behavior &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#3366ff;"&gt;&amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style="color:#3366ff;"&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&lt;span style="font-size:inherit;"&gt;2. You are talking about&lt;span style="color:#3366ff;"&gt; &lt;strong&gt;k_sleep();&lt;/strong&gt;&lt;/span&gt; this function right or any other&amp;nbsp;function is used.&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 High power consumption on in PM_STATE_SUSPEND_TO_IDLE/PM_STATE_SUSPEND_TO_RAM state - Zephyr</title><link>https://devzone.nordicsemi.com/thread/417462?ContentTypeID=1</link><pubDate>Fri, 24 Mar 2023 14:38:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83e73186-c379-46f3-907a-deba6ffb5b44</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="SM_"]Now I&amp;#39;m getting the 4uA current in SYSTEM OFF mode after disabling the Serial.[/quote]
&lt;p&gt;That still looks bit high, how you are entering the system OFF Mode?&lt;/p&gt;
[quote user="SM_"]But I want to put the DK into the Suspend mode for my application, so how to put it in suspend mode or which function is used for it.[/quote]
&lt;p&gt;I don&amp;#39;t&amp;nbsp; have any sample which does this. I guess most of sample uses sleep function for doing this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 High power consumption on in PM_STATE_SUSPEND_TO_IDLE/PM_STATE_SUSPEND_TO_RAM state - Zephyr</title><link>https://devzone.nordicsemi.com/thread/417209?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 17:25:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e21b01d-1e12-47da-b58c-c4786a28766a</guid><dc:creator>SM_</dc:creator><description>&lt;p&gt;Hi Menon,&lt;/p&gt;
&lt;p&gt;Thanks for reply,&lt;/p&gt;
&lt;p&gt;All the settings for DK I have already made.&lt;/p&gt;
&lt;p&gt;Now I&amp;#39;m getting the 4uA current in SYSTEM OFF mode after disabling the Serial.&lt;/p&gt;
&lt;p&gt;But I want to put the DK into the Suspend mode for my application, so how to put it in suspend mode or which function is used for it.&lt;/p&gt;
&lt;p&gt;Please help me regarding this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 High power consumption on in PM_STATE_SUSPEND_TO_IDLE/PM_STATE_SUSPEND_TO_RAM state - Zephyr</title><link>https://devzone.nordicsemi.com/thread/416552?ContentTypeID=1</link><pubDate>Tue, 21 Mar 2023 13:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3310f8c-8262-45f1-96eb-77be24dd1ec8</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the time I took here. I was on sick leave last day which is why I haven&amp;#39;t responded so far.&lt;/p&gt;
&lt;p&gt;While looking at your screenshot I guess you are using PPK1, which is kind of old that&amp;#39;s probably the reason for lot of noises in the screenshot. Could you share the details of your setup&amp;nbsp; for measuring the current from nRF52840DK. I suggest you to go through the Preparing DK (section9.1) under the Measuring current section inside the &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF52840_DK_User_Guide_20201203.pdf"&gt;product specification&lt;/a&gt;. I also suggest to go through the power profiler &lt;a href="https://infocenter.nordicsemi.com/pdf/PPK2_User_Guide_v1.0.1.pdf"&gt;user guide&lt;/a&gt;&amp;nbsp;for setting up correctly.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span dir="ltr"&gt;AFAIK, the difference between the new zephyr power management states, that you have pointed, is that &lt;a title="https://github.com/zephyrproject-rtos/zephyr/blob/4ba387829b9febd60dc97d4db39d833b8aa56058/include/power/power_state.h#l94" href="https://github.com/zephyrproject-rtos/zephyr/blob/4ba387829b9febd60dc97d4db39d833b8aa56058/include/power/power_state.h#L94" rel="noopener noreferrer" target="_blank"&gt;PM_STATE_SOFT_OFF&lt;/a&gt; works when the device is in non-runtime sleep mode (system OFF) and on the other hand PM_STATE_SUSPEND_TO_RAM and PM_STATE_SUSPEND_TO_IDLE works in system ON sleep mode. So generally current consumption will be less in system off sleep mode. Please see &lt;a title="https://github.com/zephyrproject-rtos/zephyr/issues/31162" href="https://github.com/zephyrproject-rtos/zephyr/issues/31162" rel="noopener noreferrer" target="_blank"&gt;this thread&lt;/a&gt; which explains some of these things. But what you are seeing is high and I guess it is because of the set-up issue.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 High power consumption on in PM_STATE_SUSPEND_TO_IDLE/PM_STATE_SUSPEND_TO_RAM state - Zephyr</title><link>https://devzone.nordicsemi.com/thread/415913?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 08:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3ea5f4f-9ea2-4273-b060-b37757af44dc</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry I was bit occupied with one of my other case last days. I have started looking into this and I will try to reply it by today.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 High power consumption on in PM_STATE_SUSPEND_TO_IDLE/PM_STATE_SUSPEND_TO_RAM state - Zephyr</title><link>https://devzone.nordicsemi.com/thread/415900?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 08:39:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:371399ce-31a2-4e7b-a5e3-f2cc1982826d</guid><dc:creator>SM_</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is there any update over this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 High power consumption on in PM_STATE_SUSPEND_TO_IDLE/PM_STATE_SUSPEND_TO_RAM state - Zephyr</title><link>https://devzone.nordicsemi.com/thread/415322?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 17:49:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b96277c2-98c8-4b75-933c-9aae2a03b96e</guid><dc:creator>SM_</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;its nRF52840 dk&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 High power consumption on in PM_STATE_SUSPEND_TO_IDLE/PM_STATE_SUSPEND_TO_RAM state - Zephyr</title><link>https://devzone.nordicsemi.com/thread/415214?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2023 12:54:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5cf332f4-f26c-48c5-abdd-1ece19853478</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Bit confusing as you mentioned&amp;nbsp; nRF52PDK but I can see nRF52840 inside the screenshot. Could you confirm this?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>