<?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>Rigado BMD-340 - NRF52840 sleep current</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51316/rigado-bmd-340---nrf52840-sleep-current</link><description>Hi, 
 
 I&amp;#39;m trying to get my NRF52840 to minimum current in sleep, but got stuck around 440 uA. Reading through the various posts about sleep current for this type of device, the sleep current should be around 120 uA, which is 4x lower than what I obtain</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Sep 2019 09:20:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51316/rigado-bmd-340---nrf52840-sleep-current" /><item><title>RE: Rigado BMD-340 - NRF52840 sleep current</title><link>https://devzone.nordicsemi.com/thread/210657?ContentTypeID=1</link><pubDate>Thu, 19 Sep 2019 09:20:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1293027-81f5-4fc9-a275-36e5957dc810</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Ok, 950uA in sleep mode is way too high. Do you disable all the peripherals before going to sleep? It might seem like the UART is still running from looking at your main loop, please make sure you uninitialize this and any other peripherals you&amp;#39;re not going to use while in sleep mode. Also, I suggest you test the application on the DK to confirm/dismiss any suspicion of current leakages as soon as possible.&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: Rigado BMD-340 - NRF52840 sleep current</title><link>https://devzone.nordicsemi.com/thread/210440?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 13:42:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f7bb985-f781-4b7d-ba80-b1ffcc907c28</guid><dc:creator>VECA_LV</dc:creator><description>&lt;p&gt;Hi Simon, yes we have a DK and plan to run the application on it to compare power consumption&lt;/p&gt;
&lt;p&gt;The current is measured with a true RMS amperemeter, in series with the batteries. We have clear steady-state situations, where the device is awake (drawing 7.5 mA) and in sleep mode (950 uA)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rigado BMD-340 - NRF52840 sleep current</title><link>https://devzone.nordicsemi.com/thread/210309?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 08:25:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f072997-fdc5-49a3-81f2-77d25e678e6b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Do you have a DK available? You could flash the application to the DK and measure the current to see if it yields a similar result to what your custom chip is, to see if this is hardware or software-related. You can see how to measure current consumption on a DK in the &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF52840_DK_User_Guide_v1.3.pdf"&gt;DK user guide&lt;/a&gt; (chapter 9).&lt;/p&gt;
&lt;p&gt;Also, how are you measuring the current on your device? Are you using the PPK, a power analyzer, or something else?&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: Rigado BMD-340 - NRF52840 sleep current</title><link>https://devzone.nordicsemi.com/thread/210223?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 18:36:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9eb18da-6fc1-4c81-a670-0eb36871fd15</guid><dc:creator>VECA_LV</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;I checked the guide already, without major improvements&lt;/p&gt;
&lt;p&gt;In the mainloop, we have:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;// Enter main loop.
    while (true)
    {
      thread_instance_init();

      initUdpListenSocket();
      open_udp_socket();
      
      while(1)
      {
        nrf_drv_wdt_channel_feed(wdt_chan);
  
        if ( nus_sent == 1 )
        {
          NRF_LOG_INFO(&amp;quot;Sending nus data&amp;quot; );
          nus_data_send(msgbuff+8, (uint16_t )datalength);
          nus_sent = 0;
        }
  
        if (NRF_LOG_PROCESS() == false  &amp;amp;&amp;amp; !otTaskletsArePending(thread_ot_instance_get()))
        {
          thread_sleep();
        }

        thread_process();
        
        app_sched_execute();
        power_manage(); 
        
      }

      thread_instance_finalize();
    
  }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;To disable thread, I comment out call to thread init and process.&lt;/p&gt;
&lt;p&gt;Is there anything else that we can do?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rigado BMD-340 - NRF52840 sleep current</title><link>https://devzone.nordicsemi.com/thread/210222?ContentTypeID=1</link><pubDate>Tue, 17 Sep 2019 18:27:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ded8f044-29f8-4fc5-85d5-6a59cf9cc1b4</guid><dc:creator>VECA_LV</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I ran our board with an empty firmware running for(;;){__WFE();}&lt;/p&gt;
&lt;p&gt;The power consumption shows 450mA, which should be a hardware leak. The plan is to further reduce the number of components and check if there is some further drop possible&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rigado BMD-340 - NRF52840 sleep current</title><link>https://devzone.nordicsemi.com/thread/207246?ContentTypeID=1</link><pubDate>Sun, 01 Sep 2019 04:00:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e64512ee-ee3f-4fbb-b3b1-22139b60b65d</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;The first thing you need to do before trying to optimize your firmware for power is to actually validate your hardware leakage. &amp;nbsp;This is done with an empty firmware running a __WFE() in a while loop. &amp;nbsp;It must run without a debugger connect to it. &amp;nbsp;If this is more than 5uA, you have hardware leaking some where. &amp;nbsp;Next step after is to find out which by turn off io devices one by one. &amp;nbsp;There is no point trying to optimize the firmware code if you don&amp;#39;t know your hardware power profile.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rigado BMD-340 - NRF52840 sleep current</title><link>https://devzone.nordicsemi.com/thread/207053?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 08:34:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:450790a4-bd77-4671-adec-5fa07bce99a7</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I asked one of our Thread experts if there were any issues like this, and he says that in sleep with no TX/RX peaks, the current will stay below 5uA, so there should not be any issues with OpenThread in the 3.0.0 version of the Zigbee and Thread SDK.&lt;/p&gt;
&lt;p&gt;How are you measuring the current of your device? You can check out &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/hardware-and-layout/posts/nrf51-current-consumption-guide"&gt;this guide&lt;/a&gt; for just about any way to reduce current consumption as well. Could you also show me what you do to disable/enable OpenThread?&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: Rigado BMD-340 - NRF52840 sleep current</title><link>https://devzone.nordicsemi.com/thread/206821?ContentTypeID=1</link><pubDate>Thu, 29 Aug 2019 10:15:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13c46501-d344-4732-93dd-0b9203b04a0d</guid><dc:creator>VECA_LV</dc:creator><description>&lt;p&gt;In our application, we are running Openthread. Disabling the Openthread messaging, the current consumption drops from 1mA to a value around 500uA. Reading through &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/24958/openthread-problem-with-low-power-consumption"&gt;this link&lt;/a&gt;, there have been issues on low power consumption with Openthread in the past, but should be solved with the newer openthread libraries. What we see is 1 mA of current consumption when openthread is enabled. Disabling drops this to 500uA. The libraries we are using is one of the latest (3.0.0). Unless there have been more issues related to Openthread and low power sleep current? Any input welcome&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rigado BMD-340 - NRF52840 sleep current</title><link>https://devzone.nordicsemi.com/thread/206621?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2019 12:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:585ee3e5-6f9b-448f-885a-b60868734b34</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please add a loop after calling SYSTEM OFF. Something like this should do the trick.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int main(void)
{
NRF_POWER-&amp;gt;SYSTEMOFF = 1;

for(;;){__WFE();}
}&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: Rigado BMD-340 - NRF52840 sleep current</title><link>https://devzone.nordicsemi.com/thread/206619?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2019 12:22:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36f28e29-6548-4d0a-a26d-bda79409f8bb</guid><dc:creator>VECA_LV</dc:creator><description>&lt;p&gt;Second question: when the NRF52 is running in sleep, I get around 1.3mA of current drawn. Disabling SAADC lowers this value to 1.1 mA. Disbaling all UARTS, you would expect the device to drop the power consumption significantly. We only get it down to 950uA. We disbaled in the above sdk_config all NRF_LOG entries and disabled al UART channels. Any idea how to debug this further? Any inputs welcome...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rigado BMD-340 - NRF52840 sleep current</title><link>https://devzone.nordicsemi.com/thread/206615?ContentTypeID=1</link><pubDate>Wed, 28 Aug 2019 12:06:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5220154b-e46f-4d1e-86ae-1d7748a33cb4</guid><dc:creator>VECA_LV</dc:creator><description>&lt;p&gt;I turned off logging, without effects on the current drawn.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Rigado BMD-340 - NRF52840 sleep current</title><link>https://devzone.nordicsemi.com/thread/205674?ContentTypeID=1</link><pubDate>Thu, 22 Aug 2019 15:12:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f283cbc0-f547-4b39-92f8-acefdb982b6b</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;The UART is enabled as NRF_LOG backand, and this triggers the HF clock being permanently turned ON. If you don&amp;#39;t need UART logging, you can safely turn the UART support off.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>