<?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>Enter in SYSTEM ON doest not work</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49913/enter-in-system-on-doest-not-work</link><description>Hello everyone, 
 I&amp;#39;m using the nrf52840 Dev Kit (PCA10056 1.1.0 2019.19 683465548) 
 SDK version: 15.3 
 OS: Fedora 
 I work on a custom board and try to put it in SYSTEM ON mode like so: 
 
 When I measure my consommation with OTII I get 4 mA instead</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Jul 2019 09:36:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49913/enter-in-system-on-doest-not-work" /><item><title>RE: Enter in SYSTEM ON doest not work</title><link>https://devzone.nordicsemi.com/thread/199982?ContentTypeID=1</link><pubDate>Tue, 23 Jul 2019 09:36:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91827edb-3967-4995-ae0a-c5833700fab3</guid><dc:creator>Louis Hatte</dc:creator><description>&lt;p&gt;Hi Simon&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/26030/how-to-reach-nrf52840-uarte-current-supply-specification/190746#190746"&gt;Your post&lt;/a&gt;&amp;nbsp;resolved my issue. I have now 6&amp;micro;A consumption in SYSTEM ON mode on my main project.&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enter in SYSTEM ON doest not work</title><link>https://devzone.nordicsemi.com/thread/199650?ContentTypeID=1</link><pubDate>Mon, 22 Jul 2019 06:24:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04b3b4f7-eef1-40e4-bbfd-fec3f2937f59</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Are you struggling to disable the UART properly, because you won&amp;#39;t be able to transmit over UART and keep a current consumption below 10uA?&lt;/p&gt;
&lt;p&gt;What UART do you have enabled? &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Ferrata_nRF52832_Rev2%2FERR%2FnRF52832%2FRev2%2Flatest%2Fanomaly_832_89.html&amp;amp;anchor=anomaly_832_89"&gt;Erratum 89&lt;/a&gt; describes a problem where you have to power cycle some of the peripherals using EasyDMA in order to disable them properly, please see &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/26030/how-to-reach-nrf52840-uarte-current-supply-specification/190746#190746"&gt;this post&lt;/a&gt; for instructions on that with UARTE or UARTE1. Keep in mind that you have to reinitialize the UARTE peripheral again in order to turn it back on.&lt;/p&gt;
&lt;p&gt;You could also use UART without EasyDMA in order to avoid this altogether.&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: Enter in SYSTEM ON doest not work</title><link>https://devzone.nordicsemi.com/thread/199586?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2019 16:35:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbe235e3-4693-4506-a48d-a5d78b25ce7e</guid><dc:creator>Louis Hatte</dc:creator><description>&lt;p&gt;Hey Simonr,&lt;/p&gt;
&lt;p&gt;Thanks for your help&lt;br /&gt;&lt;br /&gt;We have switched back to the NRF52 DK to reproduce your test and we had 4&amp;micro;A with RTT logging only. It&amp;#39;s still not the 2.3&amp;micro;A you have, but it&amp;#39;s good enough for us.&amp;nbsp;&lt;br /&gt;From this solid base, we have tried to gradually re-implement our project in this template to see what draws current.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When using the UART Driver (APP_UART_FIFO_INIT)&amp;nbsp;followed by&amp;nbsp;app_uart_close to the peripheral, we have about 890&amp;micro;A when we expect to have the 4&amp;micro;A measured just before.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We have found many post on this subject, but none answered....&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;How to correctly use the UART Driver for low power consumption&amp;nbsp;?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enter in SYSTEM ON doest not work</title><link>https://devzone.nordicsemi.com/thread/199411?ContentTypeID=1</link><pubDate>Fri, 19 Jul 2019 06:09:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04fee418-7613-47e6-b33e-ec865e1b057b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Louis&lt;/p&gt;
&lt;p&gt;The culprits of current consumption in the pwr_mgmt example are these functions:&lt;/p&gt;
&lt;p&gt;APP_ERROR_CHECK(NRF_LOG_INIT(NULL));&lt;br /&gt; NRF_LOG_DEFAULT_BACKENDS_INIT();&lt;/p&gt;
&lt;p&gt;NRF_LOG_INFO(&amp;quot;Power Management example&amp;quot;);&lt;/p&gt;
&lt;p&gt;Logging does use power, as it initializes a few peripherals, I.E. UART or RTT depending on which one you use for logging. You can check by &amp;quot;un-commenting&amp;quot; these three lines from your main, and you&amp;#39;ll see the 570uA draw again.&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: Enter in SYSTEM ON doest not work</title><link>https://devzone.nordicsemi.com/thread/199333?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2019 14:39:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a988047a-a713-42ea-861f-85db9e149e95</guid><dc:creator>Louis Hatte</dc:creator><description>&lt;p&gt;Hi Simonr&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I returned into my application project code and:&lt;/p&gt;
&lt;p&gt;1. Set DCDC mode in my main&lt;/p&gt;
&lt;p&gt;2. Enable NRF_PWR_MGMT_CONFIG_USE_SCHEDULER in my SDK config&lt;/p&gt;
&lt;p&gt;3. Fix an external peripheral problem ( which was drawning the 2 mA .... )&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Now I measure ~580&amp;micro;A when I&amp;#39;m in SYSTEM ON just like you in your&amp;nbsp;&lt;span&gt;pwr_mgmt project&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would like to go below 10&amp;micro;A, but i don&amp;#39;t&amp;nbsp;understand&amp;nbsp;how the lines i have commented out in the&amp;nbsp;&lt;span&gt;pwr_mgmt project brought you from 570&amp;micro;A to 2.3&amp;micro;A.&amp;nbsp;&lt;br /&gt;From my understanding, i have only commented Logs and AppScheduler which are not supposed to consume extra power.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Why do you get 2.3&amp;micro;A instead of 570&amp;micro;A when commenting lines I commented in&amp;nbsp;&lt;span&gt;pwr_mgmt example&amp;nbsp;&lt;/span&gt;&lt;span&gt;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enter in SYSTEM ON doest not work</title><link>https://devzone.nordicsemi.com/thread/199112?ContentTypeID=1</link><pubDate>Thu, 18 Jul 2019 06:15:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb08dbd3-c37f-426b-88a2-4f826f201cec</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Louis&lt;/p&gt;
&lt;p&gt;How are you measuring your current consumption? I just tested the pwr_mgmt example myself and were able to measure ~570uA when the application was running, and ~0.3uA when I pressed button 1 to go to sleep mode using the &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Kits/Power-Profiler-Kit"&gt;PPK &lt;/a&gt;and an nRF52840DK. Additionally, when commenting out the same lines as you, I get a constant 2.3uA current using the same measurement setup.&amp;nbsp;&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: Enter in SYSTEM ON doest not work</title><link>https://devzone.nordicsemi.com/thread/199031?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 14:11:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eccb2fde-6c9d-47c3-b6e0-acf1a4ae4c95</guid><dc:creator>Louis Hatte</dc:creator><description>&lt;p&gt;If I unplug my JLink from my custom board I get 2.6 mA on pwr_mgmt example too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enter in SYSTEM ON doest not work</title><link>https://devzone.nordicsemi.com/thread/199016?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 13:41:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a1ae6fe-0c99-426a-bc08-784f8b9310ce</guid><dc:creator>Louis Hatte</dc:creator><description>&lt;p&gt;Hi Simonr&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried with idle_state_handle function and now I have 2.6 mA instead of 1.5 uA.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I compiled and run the pwr_mgmt example with no modification except commenting some lines like so:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main(void)
{
    // APP_ERROR_CHECK(NRF_LOG_INIT(NULL));
    // NRF_LOG_DEFAULT_BACKENDS_INIT();

    // NRF_LOG_INFO(&amp;quot;Power Management example&amp;quot;);

    lfclk_config();

    uint32_t err_code = app_timer_init();
    APP_ERROR_CHECK(err_code);

// #if NRF_PWR_MGMT_CONFIG_USE_SCHEDULER
//     APP_SCHED_INIT(APP_SCHED_MAX_EVENT_SIZE, APP_SCHED_QUEUE_SIZE);
// #endif // NRF_PWR_MGMT_CONFIG_USE_SCHEDULER
    // bsp_configuration();

    ret_code_t ret_code = nrf_pwr_mgmt_init();
    APP_ERROR_CHECK(ret_code);

    while (true)
    {
// #if NRF_PWR_MGMT_CONFIG_USE_SCHEDULER
//         app_sched_execute();
// #endif // NRF_PWR_MGMT_CONFIG_USE_SCHEDULER

        if (NRF_LOG_PROCESS() == false)
        {
            nrf_pwr_mgmt_run();
        }
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and my consommation is 4 mA..&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know how to get 1.5 uA.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any ideas?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Enter in SYSTEM ON doest not work</title><link>https://devzone.nordicsemi.com/thread/198965?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2019 12:15:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eea5a4da-ff15-4b1d-91b1-c5b6e477668e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Louis&lt;/p&gt;
&lt;p&gt;As stated in the link you provided, this means the CPU is still running for some reason. Seeing as you&amp;#39;re using a logger, I assume your application doesn&amp;#39;t handle pending log operations before it goes to sleep, which causes the CPU to keep running.&lt;/p&gt;
&lt;p&gt;Could you try adding the idle_state_handle(); in your for loop instead of the nrf_pwr_mgmt_run(); as idle_state_handle(); handles pending log operations, then sleeps until the next event occurs.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/**@brief Function for handling the idle state (main loop).
 *
 * @details Handle any pending log operation(s), then sleep until the next event occurs.
 */
static void idle_state_handle(void)
{
    if (NRF_LOG_PROCESS() == false)
    {
        nrf_pwr_mgmt_run();
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Due to the summer holidays in Norway, our support team is understaffed this week, and delayed replies must be expected. Sorry for the inconvenience!&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>