<?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 current peak of 334uA during system on Low power mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66993/the-current-peak-of-334ua-during-system-on-low-power-mode</link><description>I observed a peak of 334 ua during system-on low-power mode during idle time which is periodic around 4 sec. I am using ble with RC clock option. 
 1.is it waking for calibration of the clock source? 
 2.how much current will be drawn for calibration</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Oct 2020 10:57:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66993/the-current-peak-of-334ua-during-system-on-low-power-mode" /><item><title>RE: The current peak of 334uA during system on Low power mode</title><link>https://devzone.nordicsemi.com/thread/275320?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2020 10:57:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b96d5d3-b487-4910-82eb-eca78557ac54</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What does the APP_ERROR_CHECK return when you call ble_stack_stop()? Are you able to confirm that the SoftDevice is disabled as intended by this call? It might be that the SoftDevice&amp;nbsp;isn&amp;#39;t disabled successfully, and in order to see how, we need to see what values the ble_stack_stop() and&amp;nbsp;nrf_sdh_disable_request() functions return.&lt;/p&gt;
&lt;p&gt;Seeing as you seemingly have made some changes to your example, can you confirm that the nrf_sdh_disable_request() is identical to the default function found in &lt;strong&gt;nrf_sdh.c&lt;/strong&gt; (see below), and that you haven&amp;#39;t made any changes to the disable request?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ret_code_t nrf_sdh_disable_request(void)
{
    ret_code_t ret_code;

    if (!m_nrf_sdh_enabled)
    {
        return NRF_ERROR_INVALID_STATE;
    }

    m_nrf_sdh_continue = true;

    // Notify observers about SoftDevice disable request.
    if (sdh_request_observer_notify(NRF_SDH_EVT_DISABLE_REQUEST) == NRF_ERROR_BUSY)
    {
        // Disable process was stopped.
        return NRF_SUCCESS;
    }

    // Notify observers about starting SoftDevice disable process.
    sdh_state_observer_notify(NRF_SDH_EVT_STATE_DISABLE_PREPARE);

    CRITICAL_REGION_ENTER();
    ret_code          = sd_softdevice_disable();
    m_nrf_sdh_enabled = false;
    CRITICAL_REGION_EXIT();

    if (ret_code != NRF_SUCCESS)
    {
        return ret_code;
    }

    m_nrf_sdh_continue = false;

    softdevice_evt_irq_disable();

    // Notify observers about a finished SoftDevice enable process.
    sdh_state_observer_notify(NRF_SDH_EVT_STATE_DISABLED);

    return NRF_SUCCESS;
}&lt;/pre&gt;&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: The current peak of 334uA during system on Low power mode</title><link>https://devzone.nordicsemi.com/thread/275244?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2020 05:29:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5aae7c46-9c88-4c46-a2ab-f3329ad1a867</guid><dc:creator>Surya</dc:creator><description>&lt;p&gt;maybe I added that function in the example. I am using SDK 17 (17.0.0_9d13099). anyway, I already mention I am calling &amp;quot;nrf_sdh_disable_request()&amp;quot; in that function.&lt;/p&gt;
&lt;p&gt;the function goes as,&lt;/p&gt;
&lt;p&gt;void ble_stack_stop(void)&lt;br /&gt;{&lt;br /&gt; uint32_t err_code;&lt;/p&gt;
&lt;p&gt;err_code = nrf_sdh_disable_request();&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;ASSERT(!nrf_sdh_is_enabled());&lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The current peak of 334uA during system on Low power mode</title><link>https://devzone.nordicsemi.com/thread/275101?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 13:00:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5f0ea2c-bdbe-49e1-b173-485844eeefeb</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;l&amp;#39;m sorry, but what SDK version are you using? I&amp;#39;m not able to find any ble_app_pwr_profiling examples using the ble_stack_stop() function, please be more specific.&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: The current peak of 334uA during system on Low power mode</title><link>https://devzone.nordicsemi.com/thread/274977?ContentTypeID=1</link><pubDate>Thu, 15 Oct 2020 06:38:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c93870e2-3649-49be-a72f-9855739b37e8</guid><dc:creator>Surya</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I called the function &amp;quot;ble_stack_stop()&amp;quot; provided in the power profiling example which calls &amp;quot;&lt;span&gt;nrf_sdh_disable_request()&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;but still, I am seeing spikes. if I do system-off the peaks will go but I want to do this in system_on mode(as per my requirement).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The current peak of 334uA during system on Low power mode</title><link>https://devzone.nordicsemi.com/thread/274780?ContentTypeID=1</link><pubDate>Wed, 14 Oct 2020 06:40:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48a3ec61-d29f-4fe8-99f2-00e2491cbb99</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;This peak is due to the SoftDevice waking up to calibrate the RC oscillator as I mentioned in my last reply. Stopping the BLE stack won&amp;#39;t stop the SoftDevice from calibrating the RC oscillator. You can try disabling the SoftDevice altogether by calling the&amp;nbsp;&lt;span&gt;nrf_sdh_disable_request() to stop these spikes. You can also go to System OFF mode when putting the device to sleep, to achieve the lowest current consumption possible, but this will require an external trigger to wake the device up.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Alternatively you can edit the calibration parameters I mentioned to make these spikes occur less frequently.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The current peak of 334uA during system on Low power mode</title><link>https://devzone.nordicsemi.com/thread/274603?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 11:49:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14f5a3ff-9d34-4b97-ba08-2cf96cddf643</guid><dc:creator>Surya</dc:creator><description>&lt;p&gt;I am getting a current of an average of 1.9 uA to 2.1 uA with a peak of 334uA (a periodical of 4 sec).&lt;/p&gt;
&lt;p&gt;before going to idle state by calling Pwr_mgmt_run() function, I am stopping the BLE stack, but still, the peak is coming.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The current peak of 334uA during system on Low power mode</title><link>https://devzone.nordicsemi.com/thread/274593?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 11:40:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ecedde8-1664-43db-b2e8-465edf26a480</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The RC oscillator calibration can be adjusted by tweaking the calibration timer interval and calibration timer interval under constant temperature (&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fgroup__nrf__sdh__config.html&amp;amp;anchor=ga7992d0564d149ff30a4d36fc81a6f127"&gt;NRF_SDH_CLOCK_LF_RC_CTIV &lt;/a&gt;&lt;span&gt;&lt;span&gt;and &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fgroup__nrf__sdh__config.html&amp;amp;anchor=ga83081258fb562e6f06bf9ff66851797c"&gt;NRF_SDH_CLOCK_LF_RC_TEMP_CTIV &lt;/a&gt;&lt;/span&gt;&lt;/span&gt;in sdk_config.h).&amp;nbsp;The SoftDevice should only wake up when it needs to calibrate the LFRC clock, but keep in mind that setting higher values than the recommended 16 and 2 (at least every 8 seconds within temperatures of 0.5°C and every 4 seconds if the temperature is changing) will most likely cause the oscillator to drift. Not calibrating the LFRC will likely lead to inaccurate timers in the low power mode for instance.&lt;/p&gt;
&lt;p&gt;When the SoftDevice wakes up, the current&amp;nbsp;&lt;strong&gt;peak&amp;nbsp;&lt;/strong&gt;will increase quite a bit, but the average current consumption during sleep when using the LFRC should not be much more than ~0.4µA according to the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52810%2F_tmp%2Fgluon%2Fautodita%2FCURRENT%2Fparameters.id_current_sleep.html"&gt;Electrical specification in the PS&lt;/a&gt;&amp;nbsp;(see &lt;strong&gt;ION_RAMOFF_RTC&lt;/strong&gt; versus &lt;strong&gt;ION_RAMOFF_RTC_LFXO&lt;/strong&gt; for instance).&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: The current peak of 334uA during system on Low power mode</title><link>https://devzone.nordicsemi.com/thread/274460?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 06:35:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6386af3-9673-43a6-b537-6f15b1018318</guid><dc:creator>Surya</dc:creator><description>&lt;p&gt;hi Simonr, thanks for your reply.&lt;/p&gt;
&lt;p&gt;as you can see my question is about if RC calibration is causing the current how to stop calibration. I don&amp;#39;t want to change the clock option as I can&amp;#39;t change the hardware now.&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;I want to know&amp;nbsp; &amp;quot;&lt;span&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;how much current will be drawn for calibration of the clock?&lt;/strong&gt;&lt;/span&gt;&amp;quot;&amp;nbsp; if this is a known number.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;I am seeing these peeks when I initialized and stopped the BLE which should not happen. is it like if once i configure i can&amp;#39;t stop calibration?&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The current peak of 334uA during system on Low power mode</title><link>https://devzone.nordicsemi.com/thread/274338?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 13:18:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3eb3ee1-ff67-48ea-b096-4b8e5f10fb62</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;As&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/turboj"&gt;Turbo J&lt;/a&gt;&amp;nbsp;says, the LF XTAL will reduce the overall current consumption significantly to any of the other LF clock options. You can check out the &lt;a href="https://devzone.nordicsemi.com/nordic/power/w/opp/2/online-power-profiler-for-ble"&gt;Online Power Profiler for BLE&lt;/a&gt; to see the differences between idle currents in a variety of configurations.&lt;/p&gt;
&lt;p&gt;If you set the device to &amp;quot;system OFF&amp;quot; mode, the LF clock won&amp;#39;t have to run, and the current consumption will be more similar for both instances, but in system ON mode an LF clock will be running, and if using the RC oscillator, it will have to wake up from time to time to recalibrate.&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: The current peak of 334uA during system on Low power mode</title><link>https://devzone.nordicsemi.com/thread/274285?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 11:33:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3bda515-4175-4c9c-b297-8eff92198d6a</guid><dc:creator>Surya</dc:creator><description>&lt;p&gt;hi, thanks for your reply.&lt;/p&gt;
&lt;p&gt;can I know how much current is drawn during calibration?&lt;/p&gt;
&lt;p&gt;do you mean to say it is not possible to stop calibration even when I am not using ble?&lt;/p&gt;
&lt;p&gt;to do so there is no other way than going for a xtal crystal?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The current peak of 334uA during system on Low power mode</title><link>https://devzone.nordicsemi.com/thread/274276?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 11:18:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30934820-01fb-449a-9d8d-c17bcfddfebc</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;RC calibration wakes just the HF crystal clock for a while in order to sync the clocks.&lt;/p&gt;
&lt;p&gt;If you really care about idle power consumtion, just populate the LF XAL and use the crystal LF clock.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>