<?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>NRF52840 too high power consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45912/nrf52840-too-high-power-consumption</link><description>Hi, 
 I know that this issue is well documented in the forum, but I have read everything and tried all of the suggested fixes, but nothing worked. 
 I am trying to Enter systemOFF mode and wake up from an external signal later. 
 when I enter systemOFF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Apr 2019 13:27:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45912/nrf52840-too-high-power-consumption" /><item><title>RE: NRF52840 too high power consumption</title><link>https://devzone.nordicsemi.com/thread/181343?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 13:27:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65493693-c1dd-4ae6-8027-1344e2067d18</guid><dc:creator>jonas.woerner</dc:creator><description>&lt;p&gt;I will mark this thread as answered and submit a sperate question for the cryptocell problem, as I think, others might be interested too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 too high power consumption</title><link>https://devzone.nordicsemi.com/thread/181275?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 09:53:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea059a72-3021-4603-9306-46325f917e8f</guid><dc:creator>jonas.woerner</dc:creator><description>[quote userid="14926" url="~/f/nordic-q-a/45912/nrf52840-too-high-power-consumption/181072"]I would expect mbed to use software cryptography for MBEDTLS by default[/quote]
&lt;p&gt;I verified it, mbedTLS definitly uses the Cryptocell hardware, you even have to initialize it, but you can turn it off and use software only if you wanted to.So I guess I will have to somehow disable the cryptocell310 before entering systemOFF.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 too high power consumption</title><link>https://devzone.nordicsemi.com/thread/181072?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 13:08:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7b719a9-df76-484b-a1af-2a42d6ed4757</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I would expect mbed to use software cryptography for MBEDTLS by default, are you sure it is using the cryptocell?&amp;nbsp;There is an &lt;a href="https://www.nordicsemi.com/DocLib/Content/Errata/nRF52840_Rev1/latest/ERR/nRF52840/Rev1/latest/anomaly_840_87"&gt;errata related to FPU usage&lt;/a&gt;, but this should give you considerably higher current draw.&lt;/p&gt;
&lt;p&gt;1.9 uA sounds a bit high for System OFF, but it could be possible with the right configuration. See the &lt;a href="https://www.nordicsemi.com/DocLib/Content/Product_Spec/nRF52840/latest/_tmp/graviton/autodita/CURRENT/parameters-i_sleep"&gt;sleep current consumption&lt;/a&gt; in the electrical specifications. The PPK might also have difficulties measuring lower currents.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 too high power consumption</title><link>https://devzone.nordicsemi.com/thread/181059?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 12:54:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1ea96e3-bbd1-49eb-ab99-c41f3d034bc1</guid><dc:creator>jonas.woerner</dc:creator><description>&lt;p&gt;OK. I just verified it, its indeed the pullups and the LED, if I use P012, I get a poweroff current of 1.9uA.&lt;/p&gt;
&lt;p&gt;however, I just noticed another problem, in my main program, I still see a constant current of about 38uA, but only if I used cryptographic functions prior.. Do I have to manually turn off the cryptocell hardware?&lt;/p&gt;
&lt;p&gt;anyways, I will also ask this in the mbed forums, as its related to MBEDTLS.&lt;/p&gt;
&lt;p&gt;one question for you though, Is 1.9uA an acceptable systemOFF current? I feel like it should drop even lower.&lt;/p&gt;
&lt;p&gt;thanks for pointing me in the right direction!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 too high power consumption</title><link>https://devzone.nordicsemi.com/thread/181021?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 11:40:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a187b87-97e1-4aa7-acb5-dfae853cb76b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;In general, we do not provide much support on mbed, as it is being developed by 3rd party. I do not know how&amp;nbsp;InterruptIn is implemented in mbed. Have you tested with other pins? P0.13 is connected to VDD through LED and pull-up by default on the nRF52840 (P)DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 too high power consumption</title><link>https://devzone.nordicsemi.com/thread/181016?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 11:35:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b099d9ab-8c3b-4644-b7d7-2ef8f3dac457</guid><dc:creator>jonas.woerner</dc:creator><description>&lt;p&gt;I did not configure any wakeup source for testing to eliminate that issue.&lt;/p&gt;
&lt;p&gt;I can give you a minimal project, BUT it uses MBED to configure a Interrupt pin, as I will use mbed for my main project, the functions to power off the chip is pure nordic SDK though.. is this ok for you, or is mbed a no-go?&lt;/p&gt;
&lt;p&gt;also, I just found out that if I just make an instance of the InterruptIn the current will drop to 1.8uA, but if I configure its mode (pullUp/down/none) the current will stay at about 40uA.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#include &amp;quot;mbed.h&amp;quot;
#include &amp;quot;PinNames.h&amp;quot;
#include &amp;quot;nrf_soc.h&amp;quot;


InterruptIn irt(P0_13);
void take_nap(){
    NRF_POWER-&amp;gt;SYSTEMOFF=1;
    sd_power_system_off();      //consumes slightly less power
    while(1);
}

int main(void)
{ 
    NRF_POWER-&amp;gt;DCDCEN = 0x00000001;
    NRF_UART0-&amp;gt;TASKS_STOPTX = 1;
    NRF_UART0-&amp;gt;TASKS_STOPRX = 1;
    NRF_UART0-&amp;gt;ENABLE = 0;
    
    irt.mode(PullNone); //when using this, it will consume more power.

    while (true) 
    {
       take_nap();
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;thank you for your help,&lt;/p&gt;
&lt;p&gt;Jonas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 too high power consumption</title><link>https://devzone.nordicsemi.com/thread/181012?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 11:23:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aae12f69-ffe2-48c2-9ee1-8c1f94b21e6a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;How did you configure the wakeup pins? You should make sure that the pins are not configured in a way that will draw current through pull-ups, etc.&lt;/p&gt;
&lt;p&gt;Can you provide a minimal project that can be used to reproduce this issue on the DK?&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>