<?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>Current consumptio measurement while device is in System Off mode gives very unusual results</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67021/current-consumptio-measurement-while-device-is-in-system-off-mode-gives-very-unusual-results</link><description>Dear All, I am trying to measure the current consumption for an application I am developing on the nRF52833 DK. The code that I am running is the following: Based on the product specification, I should be measuring something like 0.6uA ( link ). Instead</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Oct 2020 15:19:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67021/current-consumptio-measurement-while-device-is-in-system-off-mode-gives-very-unusual-results" /><item><title>RE: Current consumptio measurement while device is in System Off mode gives very unusual results</title><link>https://devzone.nordicsemi.com/thread/274722?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 15:19:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b31e4e47-3ab7-4004-a9b5-7d509fd1b935</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;This hex-file will enter SYSTEM OFF sleep mode after a delay of 10 seconds. I did not measure the current, only verified that System OFF mode is entered after 10 seconds.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1122.systemoff_5F00_enter_5F00_pca10100.hex"&gt;devzone.nordicsemi.com/.../1122.systemoff_5F00_enter_5F00_pca10100.hex&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumptio measurement while device is in System Off mode gives very unusual results</title><link>https://devzone.nordicsemi.com/thread/274626?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 12:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81645e0a-7bbc-48a2-a7c1-9d0217720d7e</guid><dc:creator>Giannis Anastasopoulos</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/joh2"&gt;Jørgen Holmefjord&lt;/a&gt;,&lt;br /&gt;&lt;br /&gt;I believe that I had some issues with my code previously (mostly pin assignments that were reserved by the DK for NFC and such). At the moment I am running this code:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void sleep_mode_enter(void)
{
    ret_code_t err_code;

    sd_ble_gap_adv_stop(NULL);
    // Go to system-off mode (this function will not return; wakeup will cause a reset).
    err_code = sd_power_system_off();
    APP_ERROR_CHECK(err_code);
}


int main(void)
{
    // Configure UICR_REGOUT0 register only if it is set to default value.
    if ((NRF_UICR-&amp;gt;REGOUT0 &amp;amp; UICR_REGOUT0_VOUT_Msk) != (UICR_REGOUT0_VOUT_3V3 &amp;lt;&amp;lt; UICR_REGOUT0_VOUT_Pos)) {
        NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Wen;
        while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy) {}

        NRF_UICR-&amp;gt;REGOUT0 = (NRF_UICR-&amp;gt;REGOUT0 &amp;amp; ~((uint32_t)UICR_REGOUT0_VOUT_Msk)) | (UICR_REGOUT0_VOUT_3V3 &amp;lt;&amp;lt; UICR_REGOUT0_VOUT_Pos);

        NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Ren;
        while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy) {}

        // System reset is needed to update UICR registers.
        NVIC_SystemReset();
    }

#if defined(CONFIG_NFCT_PINS_AS_GPIOS)
    if ((NRF_UICR-&amp;gt;NFCPINS &amp;amp; UICR_NFCPINS_PROTECT_Msk) == (UICR_NFCPINS_PROTECT_NFC &amp;lt;&amp;lt; UICR_NFCPINS_PROTECT_Pos)) {
        NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Wen &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos; // Write Enable
        while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy) {}
        NRF_UICR-&amp;gt;NFCPINS &amp;amp;= ~UICR_NFCPINS_PROTECT_Msk;
        while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy) {}
        NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Ren &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos; // Read-only Enable
        while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy) {}
        // UICR changes require a reset to be effective
        NVIC_SystemReset();
    }
#endif
    bool erase_bonds;
    sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);
    // Initialize.
    lfclk_config();
    rtc_config();
    log_init();
    timers_init();
    power_management_init();
    ble_stack_init();
    gap_params_init();
    gatt_init();
    services_init();
    advertising_init();
    conn_params_init();
    peer_manager_init();
    flash_init();
    gpio_init();
    initialize_leds();
    wdt_init(WATCHDOG_TIMEOUT);
    set_color(ORANGE);
    nrf_gpio_pin_clear(NTC_FEED_PIN);

    uint32_t reset_reason = get_reset_reason();

    advertising_start(erase_bonds);
    app_timer_start(sleep_id, SYSTEM_OFF_TIMEOUT, NULL);

    // Enter main loop.
    for (;;) {
        idle_state_handle();
    }
}&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;And what I am measuring after the time-out is about 2uA on PPK.&lt;br /&gt;&lt;br /&gt;I have also a custom board that I can feed power to via an OTII and do my measurements there, but my issue is that I am not sure if the custom board works well, so I wonder if it is possible to have a baseline sample code that has a known low current consumption that I can put on the DK, measure it and then put it on the custom board and compare the results.&lt;br /&gt;&lt;br /&gt;On the custom board the same code consumes, according to the OTII 49.8uA. VDD and VDDH of the schematic are connected externaly.&lt;br /&gt;&lt;br /&gt;This is the compiled hex:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/sample.hex"&gt;devzone.nordicsemi.com/.../sample.hex&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I am using softdevice s113_nrf52_7.0.1_softdevice.hex&lt;br /&gt;&lt;br /&gt;Could you perhaps provide me with a sample code that has a known current consumption in order to use on the DK and my custom board to compare the 2?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Current consumptio measurement while device is in System Off mode gives very unusual results</title><link>https://devzone.nordicsemi.com/thread/274584?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 11:26:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:627f2775-81b6-4c46-9ace-5809cc79cd06</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The PPK is only &lt;a href="https://infocenter.nordicsemi.com/topic/ug_ppk/UG/ppk/ppk_measure_accuracy.html"&gt;specified&lt;/a&gt; between 1 uA and 70 mA. Measurement of currents below 1 uA may give incorrect readings. Note that the accuracy is also +/- 20% in this range. There may also be small leakage currents to the Segger debugger power domain on the DK, which will impact the measurements of such low currents.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>