<?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>Achieving 3.16µA System ON Sleep in Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66062/achieving-3-16-a-system-on-sleep-in-zephyr</link><description>Device 
 nRF52840dk PCA10056 
 nRF6707 power profiler 
 
 What I Want to Do 
 I&amp;#39;m trying to achieve ION_RAMON_RTC current consumption of 3.16&amp;#181;A via Zephyr but I have not been able to get below 3.8&amp;#181;A avg consumption. I&amp;#39;ve followed the Optimizing Power</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Oct 2020 17:57:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66062/achieving-3-16-a-system-on-sleep-in-zephyr" /><item><title>RE: Achieving 3.16µA System ON Sleep in Zephyr</title><link>https://devzone.nordicsemi.com/thread/272793?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2020 17:57:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:962dac80-26d5-454f-bbbf-7470f1cf4917</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Do you also see 3.2uA after letting it run for a while?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Achieving 3.16µA System ON Sleep in Zephyr</title><link>https://devzone.nordicsemi.com/thread/272789?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2020 17:02:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b887da9-ac4e-4110-8170-6cf25309ca6b</guid><dc:creator>Marciano-PL</dc:creator><description>&lt;p&gt;I measured the current from the provided hex file, and I&amp;#39;m seeing ~3.2&amp;micro;A between ads, so it looks like there must be something wrong with my&amp;nbsp;firmware. I&amp;#39;m not exactly sure what though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Achieving 3.16µA System ON Sleep in Zephyr</title><link>https://devzone.nordicsemi.com/thread/272756?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2020 13:40:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2af27209-b4f5-4958-88bf-275eb93a47db</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Okay, then your measurement tools are probably good. I guess the problem is a bad chip.&lt;/p&gt;
&lt;p&gt;Could you do one more test to confirm this, first program the power profiler hex I uploaded here (&lt;em&gt;nrfjprog --program ble_app_pwr_profiling_pca10056_s140.hex --sectorerase&lt;/em&gt;). It will start in System OFF, and you should see a current consumption of around 0.4uA.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Then, to figure out if the high current consumption is due to the FW or a bad chip, press button 2, which will start non-connectable advertising. Measure the current between the advertising event (chip is in System ON idle with LFXO, RTC and full RAM). If you see a current consumption higher than 3.16 then, there is something wrong with your chip. Check out the documentation for the sample if needed:&amp;nbsp;&lt;a title="Power Profiling Application" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/ble_sdk_app_pwr_mgmt.html?cp=7_1_4_2_2_20"&gt;Power Profiling Application&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/7587.ble_5F00_app_5F00_pwr_5F00_profiling_5F00_pca10056_5F00_s140.hex"&gt;devzone.nordicsemi.com/.../7587.ble_5F00_app_5F00_pwr_5F00_profiling_5F00_pca10056_5F00_s140.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I have not been able to test to measure the current with this hex to confirm that everything is all good. I will on Monday.&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: Achieving 3.16µA System ON Sleep in Zephyr</title><link>https://devzone.nordicsemi.com/thread/272393?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 20:26:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90810b8c-d3ab-41b7-a47d-95e3fa8a7dac</guid><dc:creator>Marciano-PL</dc:creator><description>&lt;p&gt;With DCDCEN0, LFCLKSRC XTAL, and all RAM sections off, I observe a current of 0.4&amp;micro;A.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Achieving 3.16µA System ON Sleep in Zephyr</title><link>https://devzone.nordicsemi.com/thread/272102?ContentTypeID=1</link><pubDate>Tue, 29 Sep 2020 14:42:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ee70b7d-0835-43cd-9dd1-b17d3d5c899a</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;There might be an offset on your measurements. Could you test a sample which puts the chip into System OFF (e.g. the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fble_sdk_app_pwr_mgmt.html&amp;amp;cp=7_1_4_2_2_20"&gt;Power Profiling Application&lt;/a&gt;&amp;nbsp;starts in System OFF, but requires you to install the nRF5 SDK) and see what the current consumption is then? If you get more than 300nA, then there is an offset.&lt;/p&gt;
&lt;p&gt;If you see a linear increase in current, you probably have a bad chip. If the there is a constant offset, the cause is probably due to leakage/measurement error or something in FW that causes a higher consumption.&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: Achieving 3.16µA System ON Sleep in Zephyr</title><link>https://devzone.nordicsemi.com/thread/271868?ContentTypeID=1</link><pubDate>Mon, 28 Sep 2020 17:07:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16cf6e23-fd97-41cd-a978-d5268caaaa81</guid><dc:creator>Marciano-PL</dc:creator><description>&lt;p&gt;Those links are exactly how I have been using the PPK. I tried out your hex file and these are my results (~411&amp;micro;A)&amp;nbsp;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screen-Shot-2020_2D00_09_2D00_28-at-11.06.28-AM.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I tried the sample you described in a previous comment and also achieved ~4&amp;micro;A of current consumption.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Achieving 3.16µA System ON Sleep in Zephyr</title><link>https://devzone.nordicsemi.com/thread/271452?ContentTypeID=1</link><pubDate>Fri, 25 Sep 2020 08:07:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1d5d2e2-7f69-46c6-90bb-58489818e28c</guid><dc:creator>Simon</dc:creator><description>&lt;p style="margin-top:0px;"&gt;Just forget what I said about putting SW6 to nRF ONLY, it should not be necessary. I&amp;#39;m using another tool for measuring.&lt;/p&gt;
&lt;p&gt;Follow these three:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Finfocenter.nordicsemi.com%2Findex.jsp%3Ftopic%3D%252Fug_nrf52840_dk%252FUG%252Fnrf52840_DK%252Fprepare_board.html&amp;amp;data=02%7C01%7CSimon.Iversen%40nordicsemi.no%7C51061d7020ac486483f408d8608c6cc7%7C28e5afa2bf6f419a8cf6b31c6e9e5e8d%7C0%7C0%7C637365503517166938&amp;amp;sdata=eg35ZXPj%2BFHZb%2BqoEH07hf1G9oq8E5gEsB%2BviuD8Dik%3D&amp;amp;reserved=0"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf52840_dk%2FUG%2Fnrf52840_DK%2Fprepare_board.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Finfocenter.nordicsemi.com%2Findex.jsp%3Ftopic%3D%252Fug_ppk%252FUG%252Fppk%252FPPK_user_guide_Connecting_PPK_to_nRF5xDK.html&amp;amp;data=02%7C01%7CSimon.Iversen%40nordicsemi.no%7C51061d7020ac486483f408d8608c6cc7%7C28e5afa2bf6f419a8cf6b31c6e9e5e8d%7C0%7C0%7C637365503517166938&amp;amp;sdata=yofqvghXlm8aMO635zG4MYKx3LAjfDQNiO1pKnZL474%3D&amp;amp;reserved=0"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_ppk%2FUG%2Fppk%2FPPK_user_guide_Connecting_PPK_to_nRF5xDK.html&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Finfocenter.nordicsemi.com%2Findex.jsp%3Ftopic%3D%252Fug_ppk%252FUG%252Fppk%252FPPK_user_guide_PPK_on_nRF5xDK.html%26cp%3D9_6_5_2&amp;amp;data=02%7C01%7CSimon.Iversen%40nordicsemi.no%7C51061d7020ac486483f408d8608c6cc7%7C28e5afa2bf6f419a8cf6b31c6e9e5e8d%7C0%7C0%7C637365503517176932&amp;amp;sdata=7StZbc6IupOvpHugNZwtPY0VTrIXTaI5wdX1fRJTQys%3D&amp;amp;reserved=0"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_ppk%2FUG%2Fppk%2FPPK_user_guide_PPK_on_nRF5xDK.html&amp;amp;cp=9_6_5_2&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Test the aplication I described in my last reply, or the hex file provided below.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-b2c3564bc4bf49e484f0c08f9ed2a063/zephyr.hex"&gt;devzone.nordicsemi.com/.../zephyr.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;What current consumption do you see then?&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: Achieving 3.16µA System ON Sleep in Zephyr</title><link>https://devzone.nordicsemi.com/thread/271173?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2020 16:04:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0440998-f7d4-43a2-b00d-e5ac7bae62a7</guid><dc:creator>Marciano-PL</dc:creator><description>&lt;p&gt;Hi Simon, thank you for your reply!&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve gone ahead and tried your solution, but when my DK SW6 switch is in the nRF ONLY position, I cannot talk to the PPK. How did you get around this? I think SW6 might be the missing piece to my puzzle, but I haven&amp;#39;t been able to verify yet.&lt;/p&gt;
&lt;p&gt;Is there anything else I must do to make it work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Achieving 3.16µA System ON Sleep in Zephyr</title><link>https://devzone.nordicsemi.com/thread/270756?ContentTypeID=1</link><pubDate>Tue, 22 Sep 2020 08:54:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:947e77c0-a3d9-4aa0-ab2f-0439c7827672</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I was able to get the current down to 3.18-3.19 uA in NCS v1.3.0. I did the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Set CONFIG_SERIAL=n in&amp;nbsp;&lt;em&gt;zephyr\samples\basic\blinky\prj.conf&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;Built and flashed the blinky example:
&lt;ul&gt;
&lt;li&gt;cd&amp;nbsp;&lt;em&gt;zephyr\samples\basic\blinky&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;west build -b nrf52840dk_nrf52840&lt;/li&gt;
&lt;li&gt;west flash&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Attached the PPK to the nRF52840 DK&lt;/li&gt;
&lt;li&gt;Set SW6 to nRF ONLY&lt;/li&gt;
&lt;li&gt;Opened the Power Profiler app and started sampling&lt;/li&gt;
&lt;/ul&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: Achieving 3.16µA System ON Sleep in Zephyr</title><link>https://devzone.nordicsemi.com/thread/270396?ContentTypeID=1</link><pubDate>Fri, 18 Sep 2020 22:34:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cc492ea-b0b1-490b-a53b-cf02f99c4073</guid><dc:creator>Marciano-PL</dc:creator><description>&lt;p&gt;I&amp;#39;ve tried to match the&amp;nbsp;conditions in&amp;nbsp;&lt;span style="text-decoration:underline;"&gt;&lt;em&gt;Table 13: Current consumption scenarios, common conditions&lt;/em&gt;&lt;/span&gt; as much as possible to make it easier to narrow down the differences.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>