<?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>The right way to enter to the system off mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33004/the-right-way-to-enter-to-the-system-off-mode</link><description>Hello, 
 In my application I&amp;#39;m putting the NRF52832 device to the system off by calling the sd_power_system_off() function. 
 When it occurs at the start of the program - the device enters to the system off (about 4mA man!!!), but when I try to put the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Apr 2019 11:31:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33004/the-right-way-to-enter-to-the-system-off-mode" /><item><title>RE: The right way to enter to the system off mode</title><link>https://devzone.nordicsemi.com/thread/182346?ContentTypeID=1</link><pubDate>Tue, 16 Apr 2019 11:31:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:952ada83-5c77-474c-bd13-654654ab6c6b</guid><dc:creator>GK</dc:creator><description>&lt;p&gt;Try after disabling the log NRF_LOG_ENABLED to 0 in sdk_config.h file&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right way to enter to the system off mode</title><link>https://devzone.nordicsemi.com/thread/126846?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 12:41:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0fb23e6-80cd-4404-87d2-1c42afd53e5d</guid><dc:creator>rraa</dc:creator><description>&lt;p&gt;When connect 5mA or idle mode? I think problem is your PCB design. You created PCB LDO or DC/DC mode?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right way to enter to the system off mode</title><link>https://devzone.nordicsemi.com/thread/126835?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 12:10:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dff04b57-1f48-4868-b69e-e72b34d18b30</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;Sorry, schematic I cannot give :( For now, my electrical engineer is measuring 5mA at the System Off.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right way to enter to the system off mode</title><link>https://devzone.nordicsemi.com/thread/126821?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 11:23:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:192c632b-947b-405d-8e50-ff98095b189b</guid><dc:creator>rraa</dc:creator><description>&lt;p&gt;Can you give me PCB shematic? I think your problem about hardware. And also can you measur current with blink led after measur current led off. Is there any different measurment?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right way to enter to the system off mode</title><link>https://devzone.nordicsemi.com/thread/126820?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 11:19:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b819f6a-82ab-4de7-9f1f-4d972ec36efc</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;I don&amp;#39;t see any changes in current consumption with or without those lines :(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right way to enter to the system off mode</title><link>https://devzone.nordicsemi.com/thread/126805?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 10:41:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a59c5857-c607-4344-b569-ab7d6ec0aaf3</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;Thanks, I&amp;#39;ll try it :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right way to enter to the system off mode</title><link>https://devzone.nordicsemi.com/thread/126802?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 10:37:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1847ab2-081a-4d88-9437-dd3cb207760c</guid><dc:creator>rraa</dc:creator><description>&lt;p&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;int main(void)
{
    // Initialize.
    leds_init();
    timers_init();
    log_init();
    buttons_init();
    ble_stack_init();
    gap_params_init();
    gatt_init();
    services_init();
    advertising_init();
    conn_params_init();
    sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);
    sd_ble_gap_tx_power_set(0);
    // Start execution.
    NRF_LOG_INFO(&amp;quot;Program başladı.&amp;quot;);
    advertising_start();

    // Enter main loop.
    for (;;)
    {
        if (NRF_LOG_PROCESS() == false)
        {
            power_manage();
        }
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;you must placed in main.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right way to enter to the system off mode</title><link>https://devzone.nordicsemi.com/thread/126794?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 10:02:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be315741-2e25-4eab-aa16-f75cf7177a09</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;Sorry @omeracar, where is it should be placed? Before or after the ble initialization?&lt;/p&gt;
&lt;p&gt;Is not dc/dc set automatically? What does enabling of the dc/dc converter?&lt;/p&gt;
&lt;p&gt;Is setting of the tx power to the 0 will not affect to the ble transmit?&lt;/p&gt;
&lt;p&gt;Thanks! &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right way to enter to the system off mode</title><link>https://devzone.nordicsemi.com/thread/126618?ContentTypeID=1</link><pubDate>Tue, 03 Apr 2018 09:25:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5bd0f0c-3f24-4cf2-9dc2-948072999004</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;Thanks, I&amp;#39;ll try it &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right way to enter to the system off mode</title><link>https://devzone.nordicsemi.com/thread/126605?ContentTypeID=1</link><pubDate>Tue, 03 Apr 2018 08:38:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93f8e638-071f-4cad-ad84-92e3d45743f2</guid><dc:creator>rraa</dc:creator><description>&lt;p&gt;By the way put this code in main. For more effective current.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);
sd_ble_gap_tx_power_set(0);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right way to enter to the system off mode</title><link>https://devzone.nordicsemi.com/thread/126600?ContentTypeID=1</link><pubDate>Tue, 03 Apr 2018 08:30:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:393ff9f3-e48e-4ea0-bf86-f2dbc1c8db55</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;Yes :(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right way to enter to the system off mode</title><link>https://devzone.nordicsemi.com/thread/126599?ContentTypeID=1</link><pubDate>Tue, 03 Apr 2018 08:30:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56bc2419-a839-4257-aa53-10c4db3e0687</guid><dc:creator>rraa</dc:creator><description>&lt;p&gt;Did you&amp;nbsp;see NRF_LOG_INFO(&amp;quot;I&amp;#39;m not sleeping?&amp;quot;)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right way to enter to the system off mode</title><link>https://devzone.nordicsemi.com/thread/126598?ContentTypeID=1</link><pubDate>Tue, 03 Apr 2018 08:21:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0106b3d1-4990-493c-891e-ee97251e729a</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;It&amp;#39;s peace of the code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;while(nrf_gpio_pin_read(ON_SWITCH_N_PIN_INPUT) != switchOnDefaultState)
{
    //be in while until button is not released
    nrf_delay_ms(50);
}

//Wait while the main system will shutdown
nrf_delay_ms(6000);

//Power off the main system
SecureOnPinOff();
NRF_LOG_INFO(&amp;quot;got close app from the main system, I&amp;#39;m going to sleep&amp;quot;);
NRF_LOG_PROCESS();

NRF_LOG_INFO(&amp;quot;-- Going to the DeepSleep&amp;quot;);
NRF_LOG_PROCESS();

nrf_delay_ms(1000);

uint32_t res = sd_power_system_off();
NRF_LOG_INFO(&amp;quot;I&amp;#39;m not sleeping!1&amp;quot;);
NRF_LOG_PROCESS();
res = sd_power_system_off();
NRF_LOG_INFO(&amp;quot;I&amp;#39;m not sleeping!2&amp;quot;);
NRF_LOG_PROCESS();
res = sd_power_system_off();
NRF_LOG_INFO(&amp;quot;I&amp;#39;m not sleeping!3&amp;quot;);
NRF_LOG_PROCESS();&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right way to enter to the system off mode</title><link>https://devzone.nordicsemi.com/thread/126597?ContentTypeID=1</link><pubDate>Tue, 03 Apr 2018 08:08:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ddb118d-57fe-4290-805f-714f4ee37df5</guid><dc:creator>rraa</dc:creator><description>&lt;p&gt;I need only main.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right way to enter to the system off mode</title><link>https://devzone.nordicsemi.com/thread/126593?ContentTypeID=1</link><pubDate>Tue, 03 Apr 2018 08:03:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38da3bf8-5d74-4e53-8409-d0f040575497</guid><dc:creator>Michael</dc:creator><description>&lt;p&gt;Hello! I have more than 5000 rows of the code. When the main system is not working I&amp;#39;m putting the board to the system off. I think that I need to close another processes before the deep sleep, but not sure. What flags can be checked? What should be done? It&amp;#39;s so not clear in the documentation... :(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The right way to enter to the system off mode</title><link>https://devzone.nordicsemi.com/thread/126588?ContentTypeID=1</link><pubDate>Tue, 03 Apr 2018 07:43:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee4d5f2c-7e51-4c86-9df0-b0ce1717baa8</guid><dc:creator>rraa</dc:creator><description>&lt;p&gt;When sd_power_system_off() your board monitoring app? Where adding sd_power_system_off() function in your code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>