<?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>Power consumption problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43260/power-consumption-problem</link><description>I have a custom board with nrf52840 with cr2477 battery (1Ah capacity). I was download firmware to board and after a week the battery voltage dropped to critical. In the firmware forcibly turned on dcdc and in power_manage added: sd_power_mode_set(NRF_POWER_MODE_LOWPWR</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Feb 2019 15:03:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43260/power-consumption-problem" /><item><title>RE: Power consumption problem</title><link>https://devzone.nordicsemi.com/thread/169571?ContentTypeID=1</link><pubDate>Tue, 05 Feb 2019 15:03:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d93f8e42-17f6-40d7-a686-384e0fabb96c</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;OK, so you&amp;#39;re only measuring the voltage of the battery, not the current consumption? Could you upload the entire project folder to the case? I would like to run the code on a nRF52840 DK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption problem</title><link>https://devzone.nordicsemi.com/thread/169559?ContentTypeID=1</link><pubDate>Tue, 05 Feb 2019 14:29:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c41f2f0f-010a-4680-9d28-b7b4dfbaa84a</guid><dc:creator>Saram</dc:creator><description>&lt;p&gt;stayed the same. for 1 hour of work (300 ms between transfers, eddystone uid) - 0.2 volt voltage drop (on a fresh battery)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption problem</title><link>https://devzone.nordicsemi.com/thread/169495?ContentTypeID=1</link><pubDate>Tue, 05 Feb 2019 12:23:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e89da8ab-dafd-4402-a5a7-347e8d001a26</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;What current consumption are you seeing after removing the the lines?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption problem</title><link>https://devzone.nordicsemi.com/thread/169446?ContentTypeID=1</link><pubDate>Tue, 05 Feb 2019 09:24:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:964da459-8346-47c4-8be6-8f0ab3311a0e</guid><dc:creator>Saram</dc:creator><description>&lt;p&gt;15,2 SDK and s132 Soft Device. Ok, remove this lines&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption problem</title><link>https://devzone.nordicsemi.com/thread/169445?ContentTypeID=1</link><pubDate>Tue, 05 Feb 2019 09:23:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d90e5730-09bb-48a1-bb06-2327472299ac</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;span&gt;Again, which SDK version and SoftDevice version are you using?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;sd_power_mode_set(NRF_POWER_MODE_LOWPWR);&amp;nbsp; should not be called in power_manage as its called in a loop. As previously stated, this is done by default so you can remove this line. You should also remove the references to&amp;nbsp;__WFE(); and __WFI(); as this is done by&amp;nbsp;sd_app_evt_wait().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption problem</title><link>https://devzone.nordicsemi.com/thread/169410?ContentTypeID=1</link><pubDate>Tue, 05 Feb 2019 07:28:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6f36753-5ecd-4aea-a5ff-5849bd87c107</guid><dc:creator>Saram</dc:creator><description>&lt;p&gt;This is my code that have differences from example.&amp;nbsp;&lt;br /&gt;How I can disable logging?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void power_manage(void)
{
    sd_power_mode_set(NRF_POWER_MODE_LOWPWR);	
		uint32_t err_code = sd_app_evt_wait();
    APP_ERROR_CHECK(err_code);
		__WFE();
		__WFI();;
}

/**
 * @brief Function for application main entry.
 */
int main(void)
{
    uint32_t err_code;
    // Initialize.
    APP_TIMER_INIT(APP_TIMER_PRESCALER, APP_TIMER_OP_QUEUE_SIZE, false);
    ble_stack_init();
    advertising_init();
    //LEDS_ON(LEDS_MASK);
    // Start execution.
    advertising_start();
	sd_power_dcdc_mode_set(NRF_POWER_DCDC_ENABLE);
    // Enter main loop.
    for (;; )
    {
        power_manage();
    }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption problem</title><link>https://devzone.nordicsemi.com/thread/169299?ContentTypeID=1</link><pubDate>Mon, 04 Feb 2019 13:03:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88a0c649-c271-428e-8eef-fef408627e67</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Ivanov,&lt;/p&gt;
&lt;p&gt;which SDK version and SoftDevice version are you using?&lt;/p&gt;
&lt;p&gt;Have you measured the current consumption of your application using the Nordic Power Profiler Kit&amp;nbsp; or a power analyzer? If so what kind of current consumption are you seeing?&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;power mode during CPU sleep is by default set to&amp;nbsp;NRF_POWER_MODE_LOWPWR, so it is not necessary to explicitly set this. The DCDC on the other hand must be enabled explicitly. Can you post the code that enables the DCDC?&lt;/p&gt;
&lt;p&gt;Are you calling the&amp;nbsp;idle_state_handle(), which in turn calls&amp;nbsp;nrf_pwr_mgmt_run, so that the nRF52840 enters the low power idle mode, function in the main for() loop? Have you disabled logging?&lt;/p&gt;
&lt;p&gt;The nRF52840 will wake up on interrupts, so if there is a peripheral/peripherals that generate interrupts, then the device might be waking up very frequently. Hence make sure that you disable all peripherals that does not need to run when the CPU is sleeping.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Bjørn&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>