<?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>Power consumption increased after DFU implementation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85798/power-consumption-increased-after-dfu-implementation</link><description>Hello, 
 we have a zephyr application on nRF52832 DK with nRF Connect for vscode 
 Before we added DFU support, we had a power consumption of 28 uA 
 After adding DFU support, power consumption increased to 8.9 mA 
 We want to reduce power consumption</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Mar 2022 10:24:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85798/power-consumption-increased-after-dfu-implementation" /><item><title>RE: Power consumption increased after DFU implementation</title><link>https://devzone.nordicsemi.com/thread/359070?ContentTypeID=1</link><pubDate>Mon, 21 Mar 2022 10:24:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4858074-385b-450e-b4b3-b16d742a5182</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I suspect that the issue may be that the pins on the UART is not disconnected properly. Can you try to put the GPIOs in a disconnected input state (the default power on reset state) after you disable the UART?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To test it (quick and dirty), try to just write directly to the register:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpio.html?cp=4_2_0_19_2#topic"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpio.html?cp=4_2_0_19_2#topic&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Assuming you used pins P0.05-P0.08, you can try to add the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;NRF_GPIO-&amp;gt;PIN_CNF[5] = 0x00000002;
NRF_GPIO-&amp;gt;PIN_CNF[6] = 0x00000002;
NRF_GPIO-&amp;gt;PIN_CNF[7] = 0x00000002;
NRF_GPIO-&amp;gt;PIN_CNF[8] = 0x00000002;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;See if it affects the current consumption.&lt;/p&gt;
&lt;p&gt;If that doesn&amp;#39;t work, you can try to add the lines from the initial post in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/51042/nrf52840-uart0-sleep-current-behavior"&gt;this ticket&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Just the line turning it off:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;*(volatile uint32_t *)0x40002FFC = 0;&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;Edvin&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption increased after DFU implementation</title><link>https://devzone.nordicsemi.com/thread/358442?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2022 13:25:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f987de2-27eb-4efa-802f-801303075c6c</guid><dc:creator>oguzhan</dc:creator><description>&lt;p&gt;I was measuring 28 uA on the custom board before adding dfu support. I turned on the UART peripheral for DFU support to work. After doing these, the current value I measured on the custom board came out as 3.2 mA. When I&amp;#39;m not going to use the dfu support, I also disable the UART peripheral at runtime, so I&amp;#39;m measuring 1.7 mA. I need less power consumption in my application. Can I stop dfu support at runtime when I don&amp;#39;t need it for that? Or do you have a suggestion for less power consumption?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption increased after DFU implementation</title><link>https://devzone.nordicsemi.com/thread/358424?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2022 12:38:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5907efe-46a1-41a6-a143-38586ba8cc04</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;So it doesn&amp;#39;t relate to DFU really? Is it only the UART that is enabled that causes the higher current consumption?&lt;/p&gt;
&lt;p&gt;And are you saying that you first see a current consumption of 28µA, then you enable the UART, and the current consumption rises to 3mA, and when you disable it it lowers to 1.7mA, but not back to 28µA? Or did I misunderstand something here?&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption increased after DFU implementation</title><link>https://devzone.nordicsemi.com/thread/358395?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2022 11:41:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06376303-8b84-4d58-9f2c-5fab130370fc</guid><dc:creator>oguzhan</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I measure on multimeter. I enable UART peripheral to use DFU support in my app. I&amp;#39;m measuring 3.2 mA when the uart peripheral is active&lt;/p&gt;
&lt;p&gt;&lt;span&gt;When I will not use the DFU support in the application, I turn off the UART peripheral in runtime with the following code and thus reduce the power consumption to 1.7 mA.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;enable_uart&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;NRF_UARTE0&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;ENABLE&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;8&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;NRF_UARTE0&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;TASKS_STARTRX&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;NRF_UARTE0&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;TASKS_STARTTX&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;disable_uart&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;NRF_UARTE0&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;TASKS_STOPTX&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;NRF_UARTE0&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;TASKS_STOPRX&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;1&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span&gt;NRF_UARTE0&lt;/span&gt;&lt;span&gt;-&amp;gt;&lt;/span&gt;&lt;span&gt;ENABLE&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span&gt;0&lt;/span&gt;&lt;span&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;my app will run on custom board and should work for many years on coin cell battery. For this, I am trying to reduce the power consumption to the lowest possible level. What would you recommend to reduce power consumption?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption increased after DFU implementation</title><link>https://devzone.nordicsemi.com/thread/358380?ContentTypeID=1</link><pubDate>Wed, 16 Mar 2022 11:13:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2e8cc02-b879-4426-9f5f-9303e21b033a</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;That is not what I see. I&amp;#39;ll admit that the power consumption is not great, but I see an average current consumption of ~1.8mA when adding those configs. How do you measure it, and do you have any screenshots that you can share? Perhaps a project that replicates the 8mA that you are seeing.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption increased after DFU implementation</title><link>https://devzone.nordicsemi.com/thread/358119?ContentTypeID=1</link><pubDate>Tue, 15 Mar 2022 08:15:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ec60988-e323-4e3a-92d4-5b54300bbe33</guid><dc:creator>oguzhan</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I enable UART peripheral for DFU support and add below code in prj.conf file. Similar power consumption happens when I add dfu to one of the default instances.&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MCUMGR&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MCUMGR_CMD_IMG_MGMT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MCUMGR_CMD_OS_MGMT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BOOTLOADER_MCUBOOT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_L2CAP_TX_MTU&lt;/span&gt;&lt;span&gt;=252&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_BT_BUF_ACL_RX_SIZE&lt;/span&gt;&lt;span&gt;=256&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MCUMGR_SMP_BT&lt;/span&gt;&lt;span&gt;=y&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_MCUMGR_SMP_BT_AUTHEN&lt;/span&gt;&lt;span&gt;=n&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Best regards&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Power consumption increased after DFU implementation</title><link>https://devzone.nordicsemi.com/thread/358023?ContentTypeID=1</link><pubDate>Mon, 14 Mar 2022 15:20:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04c2131c-fbb4-4ecb-9776-32efe3b64025</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you elaborate a bit more on how you added DFU support? What did you add to your project so that the so that the current consumption increased to 8.9mA? Is that something that I could reproduce on an nRF52832 DK? Does it happen if you add DFU support on one of the default samples in NCS\nrf\samples\&amp;lt;subfolder&amp;gt; as well? If so, can you please give some instructions on how to reproduce it?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>