<?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>System not going to sleep and/or taking too much current</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50306/system-not-going-to-sleep-and-or-taking-too-much-current</link><description>Folks, 
 I have read through a lot of threads on here trying to solve this and believe I have tried everything to no avail. 
 I am finding that I cannot get the nrf52832 to go to deep sleep properly. 
 I am calling this: 
 sleep_mode_enter(); 
 I have</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Jul 2019 13:49:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50306/system-not-going-to-sleep-and-or-taking-too-much-current" /><item><title>RE: System not going to sleep and/or taking too much current</title><link>https://devzone.nordicsemi.com/thread/200995?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 13:49:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4b74e35-2dc8-4161-b116-74d99ca195ad</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is the Softdevice enabled when you call&amp;nbsp;&lt;span&gt;sleep_mode_enter() (i.e., called after ble_stack_init())? This is a requirement for most of&amp;nbsp; the sd_* API.&amp;nbsp;It&amp;#39;s also important that you exit debug mode to get correct results when you do current measurements. To make sure the chip is not in debug interface mode you can power cycle the board once&amp;nbsp;you have programmed the FW.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The chip will enter &lt;span style="text-decoration:underline;"&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=3_1_0_17_1_0#unique_1199040052"&gt;emulated system OFF&lt;/a&gt;&lt;/span&gt; if it is in debug interface mode. This may also explain the high current consumption as it will make&amp;nbsp;sd_power_system_off() return with an error (should never return during normal program execution when no debugger is attached).&amp;nbsp;&lt;/span&gt;&amp;nbsp;&lt;span&gt;7mA matches the CPU run current&amp;nbsp;when the LDO&amp;nbsp; regulator is used.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user=""]I would be happy even just to have some code that had nothing in it but put it to sleep if such a thing exists anywhere.[/quote]
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;You can paste the code below into the&amp;nbsp;\examples\peripheral\blinky example to verify the deep sleep current with your setup.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;
/**
 * @brief Function for application main entry.
 */
int main(void)
{
    /* Configure board. */


    /* Toggle LEDs. */
    while (true)
    {
        NRF_POWER-&amp;gt;SYSTEMOFF = 1;
        while(1);
    }
}

/**
 *@}
 **/&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>