<?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>The current is about 500uA when nrf52840 in idle mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92748/the-current-is-about-500ua-when-nrf52840-in-idle-mode</link><description>Hi, 
 SDK version : NCS 2.1.0 
 Hardware : nRF52840 DK (External supply) 
 I am trying to put the nrf52840 to idle mode based on the system_off example. 
 D:\NCS_2.1.0\v2.1.0\zephyr\samples\boards\nrf\system_off 
 prj,config setting 
 
 I use pm_state_force</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Oct 2022 11:08:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92748/the-current-is-about-500ua-when-nrf52840-in-idle-mode" /><item><title>RE: The current is about 500uA when nrf52840 in idle mode</title><link>https://devzone.nordicsemi.com/thread/390795?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2022 11:08:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b612ad1b-621c-471b-b32c-1088013d9a7d</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, I was wrong with SB22, it is for another DK version. You need to cut &lt;strong&gt;SB40&lt;/strong&gt;. I&amp;#39;m very sorry. This is where it is located:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1665745284399v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This must be cut in order to disconnect VDD_nRF (which you are powering with the yellow cable), from VDD (which is powered from USB).&lt;/p&gt;
&lt;p&gt;I also see that the &amp;quot;nRF power switch&amp;quot; on your board is put to the Lo-Po position. This must be set to the default VDD position.&lt;/p&gt;
&lt;p&gt;About the CONFIG_SERIAL=y, and 600 uA, in order to both use the UART and get low power consumption, you either need to implement the&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/drivers/uart_nrf_sw_lpuart.html"&gt; &amp;quot;low power UART&amp;quot; driver&lt;/a&gt;, or you need to dynamically turn on and off the UART in the application using the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/services/pm/api/index.html#device-pm-apis"&gt;device power management API.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;There is a blog post about power management in Zephyr here: &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf53-designs"&gt;Optimizing Power on nRF5340 SoC Designs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Stian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The current is about 500uA when nrf52840 in idle mode</title><link>https://devzone.nordicsemi.com/thread/390758?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2022 08:05:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e892ab9-087e-4e87-825d-e7cd8993676f</guid><dc:creator>Anroll</dc:creator><description>&lt;p&gt;Update&lt;/p&gt;
&lt;p&gt;This issue can be solved by take-off DMA from uart.&lt;/p&gt;
&lt;p&gt;I can get 5uA on my EVK.&lt;/p&gt;
&lt;p&gt;I think the root cause is the DMA influence the ZEPHYR_CONSOLE uart letting the uart module can&amp;#39;t be suspended.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The current is about 500uA when nrf52840 in idle mode</title><link>https://devzone.nordicsemi.com/thread/390739?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2022 06:12:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edfd1707-59fc-4052-b14b-add0bcf34aed</guid><dc:creator>Anroll</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;My condition seem be same with this Easy DMA issue. Didn&amp;#39;t this issue be fixed on NCS 2.1.0 ?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/57027/uninitialising-libuarte-does-not-turn-off-easydma-causing-high-current-draw-in-sleep"&gt;devzone.nordicsemi.com/.../uninitialising-libuarte-does-not-turn-off-easydma-causing-high-current-draw-in-sleep&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The current is about 500uA when nrf52840 in idle mode</title><link>https://devzone.nordicsemi.com/thread/390686?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2022 14:17:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8826357-7485-4b2c-b308-ed8a6c2fb4d0</guid><dc:creator>Anroll</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Update:&lt;/p&gt;
&lt;p&gt;After I add the CONFIG_SERIAL = n to&amp;nbsp;my prj.conf file, the current can drop to 5 uA.&lt;/p&gt;
&lt;p&gt;But, if I set the&amp;nbsp;&lt;span&gt;CONFIG_SERIAL=n, all uart will be disabled. (uart0/uart1)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is there any way to let the current drop under 10uA and keep CONFIG_SERIAL=y simultaneously?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Because uart is a mandatory interface on our device.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#Note : I also try the pm_device_action_run(cons, PM_DEVICE_ACTION_SUSPEND) and it didn&amp;#39;t improve the power consumption.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The current is about 500uA when nrf52840 in idle mode</title><link>https://devzone.nordicsemi.com/thread/390347?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 02:50:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a81adbd9-dedc-4193-8127-0add20f9cb9b</guid><dc:creator>Anroll</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Thank you for your reply. I tried the SMU setup on nrf52840dk based on the blog step.&lt;/p&gt;
&lt;p&gt;But the current seems still as high as I used external power measuring. (about 500uA)&lt;/p&gt;
&lt;p&gt;Below was my setup.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1665542507696v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I also cut off the SB22 but it didn&amp;#39;t improve the power consumption&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1665542556089v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Do I need to do anything on SW when the system enters idle mode?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The current is about 500uA when nrf52840 in idle mode</title><link>https://devzone.nordicsemi.com/thread/390255?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2022 12:03:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aa31a96-ef64-4be0-a8e0-b6993e8cb95e</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, if you attach the Otii to the external supply header you will measure the current to the whole DK, including the debugger chip. Please have a look at this blog post on how to measure current on the DK (the blog is for nRF91 DK but it should be similar for the nRF52840 DK):&lt;br /&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/guides/hardware-design-test-and-measuring/b/nrf9x/posts/getting-started-with-current-measurements-on-the-nrf9160"&gt;Getting started with current measurements on the nRF9160&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Since the Otii is an source measurement unit (SMU), you will have to use the SMU setup described in the blog. You also need to cut the SB22 solder bridge on the nRF52840 DK. And set the output voltage on the Otii to match the VDD voltage on the DK (3V), in order to avoid leakage current through the SWD lines.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The current is about 500uA when nrf52840 in idle mode</title><link>https://devzone.nordicsemi.com/thread/390141?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2022 05:49:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:811bb891-9aef-4963-b37f-45435b0ed4fe</guid><dc:creator>Anroll</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;1. I&amp;#39;m sure there are no other&amp;nbsp;&lt;span&gt;peripherals attached to the board. Below is the board I used.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1665466646712v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. I use OTII to power the dk board and measure the current. Do I need to do other settings on dk board?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3.&amp;nbsp;Yes, I used the config file from the example and didn&amp;#39;t do any changes to them. I only modify the main.c at 2 places.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(1) change&amp;nbsp;&amp;nbsp;pm_state_force(0u, &amp;amp;(struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0}) to&amp;nbsp;pm_state_force(0u, &amp;amp;(struct pm_state_info){PM_STATE_STANDBY, 0, 0})&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(2) Add a return in main function to let main thread be suspended. (Make sure system enters idle thread)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;#Note : I also try the&amp;nbsp;&lt;span&gt;pm_state_force(0u, &amp;amp;(struct pm_state_info){PM_STATE_SOFT_OFF, 0, 0}) on dk board and the current can successfully drop to 5uA as picture shown. But the system_off state didn&amp;#39;t meet our need. We just need the system enter idle mode. (system sleep ON mode)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1665467262558v2.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: The current is about 500uA when nrf52840 in idle mode</title><link>https://devzone.nordicsemi.com/thread/390136?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2022 05:11:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a7538da-b6e9-46eb-9754-064d331421b6</guid><dc:creator>usmanmehmood55</dc:creator><description>&lt;p&gt;1- Are you sure you don&amp;#39;t have any other peripherals attached to the board?&lt;/p&gt;
&lt;p&gt;2- Did you follow the guide provided by Nordic about making modifications to the board to measure the current using PPK&lt;/p&gt;
&lt;p&gt;3- Are you using the config file from the example? Or have you changed it in any way?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>