<?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>Regrading Sleep current in nrf52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81722/regrading-sleep-current-in-nrf52840</link><description>Hi Team, 
 
 we have one doubt regarding sleep current when we try to measure with power analyzer(nrf52840 EVM Board) .we got 5.23 micro amps instead of 2.35 micro amps. 
 
 we used this example code D:\santhosh\Penny\nrf52840\nrf-NRF52840\nRF5_SDK_17</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Nov 2021 06:14:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81722/regrading-sleep-current-in-nrf52840" /><item><title>RE: Regrading Sleep current in nrf52840</title><link>https://devzone.nordicsemi.com/thread/340450?ContentTypeID=1</link><pubDate>Wed, 24 Nov 2021 06:14:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf3e1185-d304-4295-ab26-56ab7f13db00</guid><dc:creator>Santhosh_123</dc:creator><description>&lt;p&gt;Hi Kazi,&lt;/p&gt;
&lt;p&gt;Yeah we tried with both source and ampere mode but we are not getting desired value. We also checking with the setup from our side we will update you soon ASAP&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regrading Sleep current in nrf52840</title><link>https://devzone.nordicsemi.com/thread/340320?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 11:49:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f414c98-309e-493f-8d54-9d2e51d7d1a4</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Santhosh,&lt;/p&gt;
&lt;p&gt;Trying source mode with power analyzer provides the desired value ?&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Kazi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regrading Sleep current in nrf52840</title><link>https://devzone.nordicsemi.com/thread/340226?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 06:00:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c623e5e-4c7f-43d7-81a7-ba91e354b04d</guid><dc:creator>Santhosh_123</dc:creator><description>&lt;p&gt;Hi Kazi,&lt;/p&gt;
&lt;p&gt;Sorry for wrong information&amp;nbsp;&lt;/p&gt;
&lt;p&gt;we are not getting for sleep current what is in the datasheet But for CPU running it coming what is in the datasheet&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regrading Sleep current in nrf52840</title><link>https://devzone.nordicsemi.com/thread/340157?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 15:26:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24a6e00b-97da-4291-95a1-ef4af2292867</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Santhosh,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Any current measuring device that can accurately measure down in the uA should be ok with measuring current. Unfortunately we do not have official documentation of measuring current by power analyzer.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, You can try using source mode of your power analyzer which will power the board on the external header and will measure current simultaneously.&amp;nbsp; The DK setup will be same as I mentioned before.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;#39;&amp;#39;You can find a switch (SW10) on the PCA10056 where you can choose to supply nRF52 directly using the supply header. This switch is called VEXT-&amp;gt; nRF.&amp;nbsp; So if you now connect the PPK to the external supply header, flip this switch, and leave the USB connected to power the rest of the board, you should be powering the nRF52 from the PPK. You also have to turn the switch (SW6) to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;strong&gt;nRF Only&lt;/strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;from&lt;strong&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;DEFAULT to&amp;nbsp;&lt;/strong&gt;avoid the leakage current. Also&amp;nbsp;&lt;span&gt;remember to reset the board or power on and off after flashing.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/5140.pastedimage1637059301765v5.png" alt=" " /&gt;&amp;nbsp;&lt;img height="78" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7853.pastedimage1637059444195v6.png" width="171" alt=" " /&gt;&amp;#39;&amp;#39;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Try this and see what would be the outcome.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kazi Afroza Sultana&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&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><item><title>RE: Regrading Sleep current in nrf52840</title><link>https://devzone.nordicsemi.com/thread/339948?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 07:19:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7776f962-1639-464a-8bee-312f606b2e3f</guid><dc:creator>Santhosh_123</dc:creator><description>&lt;p&gt;hi Kazi,&lt;/p&gt;
&lt;p&gt;Our team went into what you said. But we don&amp;#39;t have PPK kit for current measurement then what to do if we want to measure the sleep current?&lt;/p&gt;
&lt;p&gt;Same method we followed for the CPU running&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ICPU0 CPU running CoreMark @64 MHz from flash, Clock = HFXO,Regulator = DC/DC&amp;nbsp; &amp;nbsp;--&amp;gt; 3.3 mA&lt;/p&gt;
&lt;p&gt;we got 3.3mA what is in the datasheet without PPK Kit By using this example code&lt;/p&gt;
&lt;p&gt;nrf-NRF52840\nRF5_SDK_17.1.0_ddde560\nRF5_SDK_17.1.0_ddde560\examples\peripheral\flashwrite&lt;/p&gt;
&lt;p&gt;Now for sleep current we are following this example code&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrf-NRF52840\nRF5_SDK_17.1.0_ddde560\nRF5_SDK_17.1.0_ddde560\examples\peripheral\ram_retention&lt;/p&gt;
&lt;p&gt;IOFF_RAMON_RESET System OFF, full 256 kB RAM retention, wake on reset 1.86 &amp;mu;A&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But we are getting what is given in the datasheet&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regrading Sleep current in nrf52840</title><link>https://devzone.nordicsemi.com/thread/339380?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 10:01:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7174279e-0460-4dc6-9e2f-0c06adbfe462</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Santhosh,&lt;/p&gt;
&lt;p&gt;The example code will be like this -&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;void main(void) {&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;for(;;) {&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;void main(void){ for(;;){ &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; __WFE();&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt; } &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;}&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;When we are talking about RAM retention, we mean that the RAM is retained when the chip is in System OFF mode. But when the system is ON,&lt;span&gt;&amp;nbsp;all RAM is always retained (powered on) unless explicitly power down in code. So basically the above code put the CPU in sleep mode (WFE = Wait For Event).&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regardds,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kazi Afroza Sultana&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regrading Sleep current in nrf52840</title><link>https://devzone.nordicsemi.com/thread/339197?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 10:44:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77af5e08-4558-4368-bd78-a0524e1ccc5b</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Santhosh,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can measure current in two ways, either using source meter mode or ampere meter mode (&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_ppk2%2FUG%2Fppk%2FPPK_user_guide_Intro.html"&gt;Nordic Semiconductor Infocenter&lt;/a&gt;). The problem with the source meter mode is that you have to make sure that you are not powering the rest of the board ( debugger chip etc) with the Power profiler kit (PPK). The problem with ampere mode is that there is noise on the current measuring header which leads to 5-10 uA current leakage.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637054980260v1.png" alt=" " /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637056086251v4.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;You can find a switch (SW10) on the PCA10056 where you can choose to supply nRF52 directly using the supply header. This switch is called VEXT-&amp;gt; nRF.&amp;nbsp; So if you now connect the PPK to the external supply header, flip this switch, and leave the USB connected to power the rest of the board, you should be powering the nRF52 from the PPK. You also have to turn the switch (SW6) to &lt;strong&gt;nRF Only&lt;/strong&gt; from&lt;strong&gt; DEFAULT to&amp;nbsp;&lt;/strong&gt;avoid the leakage current. Also&amp;nbsp;&lt;span&gt;remember to reset the board or power on and off after flashing.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637059301765v5.png" alt=" " /&gt;&amp;nbsp;&lt;img height="78" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1637059444195v6.png" width="171" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Could you please try this first and see what will be the current afterwards?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&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><item><title>RE: Regrading Sleep current in nrf52840</title><link>https://devzone.nordicsemi.com/thread/339179?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 10:05:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4eb1b2c-6fde-4223-a34f-efe831d8503e</guid><dc:creator>Santhosh_123</dc:creator><description>&lt;p&gt;Hi kazi,&lt;/p&gt;
&lt;p&gt;Thank you for your reply,Yeah for this&amp;nbsp;&amp;nbsp;&lt;span&gt;&amp;nbsp;\nRF5SDK\17_0_2\d674dde\examples\ble_peripheral\ble_app_pwr_profiling&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;we are getting 0.3 uA then i think setup is of But&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;we want to measure the sleep current&amp;nbsp; for this specification&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ION_RAMON_EVENT System ON, full 256 kB RAM retention, wake on any event 2.35 &amp;mu;A&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;any example code is there for this?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regrading Sleep current in nrf52840</title><link>https://devzone.nordicsemi.com/thread/339117?ContentTypeID=1</link><pubDate>Tue, 16 Nov 2021 04:54:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ee875ba-0729-464c-a05b-535673550373</guid><dc:creator>Santhosh_123</dc:creator><description>&lt;p&gt;Hi Kazi,&lt;/p&gt;
&lt;p&gt;Thank you for your reply&lt;/p&gt;
&lt;p&gt;Board Model - NRF52840(PCA10056)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regrading Sleep current in nrf52840</title><link>https://devzone.nordicsemi.com/thread/339065?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2021 15:07:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4cb44a8-4cb1-489f-9e3b-5ce556e38c08</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I need the picture of your set up, board details.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can build the example app_ble_pwr_profiling from&amp;nbsp;\nRF5SDK\17_0_2\d674dde\examples\ble_peripheral\ble_app_pwr_profiling&amp;nbsp;in SDK 17. It should measure&amp;nbsp;0.3-0.4 uA. If it does so then we know&amp;nbsp; that the setup is ok.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;BR&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kazi&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regrading Sleep current in nrf52840</title><link>https://devzone.nordicsemi.com/thread/339010?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2021 12:25:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8abd8df7-0f44-40df-8aac-f04f106252ad</guid><dc:creator>Santhosh_123</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As part of debugging we tried to measure if any leakage current in the DK. We measured the DK current by providing external supply on P21 and switching OFF the power switch(SW8). To our surprise even when the power switch is in OFF mode we are measuring 4.6uA of leakage current.&lt;/p&gt;
&lt;p&gt;When we subtract the 4.6uA leakage current with 5.23uA measured current, we get 0.6uA, which is also not as expected.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please add your insights on how to avoid the leakage during switch OFF and help us resolve the same.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Santhosh&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regrading Sleep current in nrf52840</title><link>https://devzone.nordicsemi.com/thread/339008?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2021 12:22:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:067e88fa-1ca9-4595-b1dc-563a96dac323</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Santhosh,&lt;/p&gt;
&lt;p&gt;Could you please tell us what board exactly you are using?&lt;/p&gt;
&lt;p&gt;BR&lt;br /&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regrading Sleep current in nrf52840</title><link>https://devzone.nordicsemi.com/thread/338983?ContentTypeID=1</link><pubDate>Mon, 15 Nov 2021 10:43:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc89ca6c-3dde-4509-a88e-b95c4da06b81</guid><dc:creator>Santhosh_123</dc:creator><description>&lt;p&gt;can any one please reply for ths&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>