<?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>Device Power Consumption and Peripheral Usage</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104834/device-power-consumption-and-peripheral-usage</link><description>Hi, 
 We&amp;#39;re currently facing a power consumption issue in the NRF Connect SDK and need your guidance on how to reduce the device&amp;#39;s power consumption. Specifically, we&amp;#39;ve noticed a significant difference between power consumption levels in the NRF 17 SDK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Nov 2023 10:32:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104834/device-power-consumption-and-peripheral-usage" /><item><title>RE: Device Power Consumption and Peripheral Usage</title><link>https://devzone.nordicsemi.com/thread/454638?ContentTypeID=1</link><pubDate>Wed, 08 Nov 2023 10:32:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a6cf0bf-8c3c-4873-bd46-163ccbaa8c7f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Mayank,&amp;nbsp;&lt;br /&gt;It seems that the UART peripheral was not turned off correctly. HFCLK might be kept running by the UART peripheral.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried to test with our system_off sample (zephyr\&lt;span&gt;samples/boards/nrf/system_off)&lt;/span&gt;?&amp;nbsp;&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/boards/nrf/system_off/README.html"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/boards/nrf/system_off/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/boards/nrf/system_off/README.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please try measuring the current consumption with this sample. In one of the step it will turn UART off and go to sleep mode.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Power Consumption and Peripheral Usage</title><link>https://devzone.nordicsemi.com/thread/454553?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 21:11:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f368f03-1975-4ca2-b9e1-ff6056229141</guid><dc:creator>mayanktiwari</dc:creator><description>&lt;p&gt;For QSPI issue cheking this :&lt;br /&gt;&lt;br /&gt;&lt;a id="" href="https://github.com/zephyrproject-rtos/zephyr/pull/64782/commits/4c41e6c6dac0213eb58abafbfb4bf12a26c20595"&gt;https://github.com/zephyrproject-rtos/zephyr/pull/64782/commits/4c41e6c6dac0213eb58abafbfb4bf12a26c20595&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Power Consumption and Peripheral Usage</title><link>https://devzone.nordicsemi.com/thread/454551?ContentTypeID=1</link><pubDate>Tue, 07 Nov 2023 20:52:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec504831-0519-46fb-8a1d-095c418b5772</guid><dc:creator>mayanktiwari</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;I have the same device running in the field with NRF 17.1 SDK, and with this setup, I&amp;#39;m getting a current draw of 32 to 36 uA. I performed the same test with NCS idle mode, and the current draw is 56uA to 58 uA.&lt;/p&gt;
&lt;p&gt;After performing UART operations: In NRF 17 SDK, after uninitiating UART, the current draw is 32 to 36 uA.&lt;/p&gt;
&lt;p&gt;In NRF NCS, it&amp;#39;s showing 320 to 280 uA, and it&amp;#39;s not going down to 56uA to 58 uA.&lt;/p&gt;
&lt;p&gt;When I check the UART, after disabling RX, it is disabled, but TX is still active and not disabled.&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Another 10 uA is consumed by the QSPI Flash, out of the total 56uA.&lt;/span&gt;Additionally, after putting the QSPI Flash into deep sleep, the current draw is reduced to 46uA. However, there&amp;#39;s an issue where the flash is not waking up from deep sleep.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Power Consumption and Peripheral Usage</title><link>https://devzone.nordicsemi.com/thread/451482?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2023 11:25:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf0cb01a-a1fa-4041-aa85-53865d32286c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Mayank,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please clarify this:&amp;nbsp;&lt;/p&gt;
[quote user="mayanktiwari"]I&amp;#39;m still experiencing high current consumption of around 50uA on the UART side.[/quote]
&lt;p&gt;Are you measuring 50uA current consumption on the NRF52840 after you disable UART ? I am not sure I understand what you meant by &amp;quot;on the UART side&amp;quot; .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;20mA and 18mA is still way too high power consumption. I think there must be something else going wrong or you are measuring something else not just the nRF52840.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you please try testing with the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/samples/boards/nrf/system_off/README.html"&gt;system_off&lt;/a&gt; sample (\zephyr\samples\boards\nrf\system_off) ? In the sample there are several stages of low power and one will be with and without UART turn off.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please try to compare the current consumption with what you have in your application. Also you should use a nRF52840 Dev Kit as a reference as well.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Power Consumption and Peripheral Usage</title><link>https://devzone.nordicsemi.com/thread/451412?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2023 04:14:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ede4603-4c3e-4280-aff3-51ce3b4ac58c</guid><dc:creator>mayanktiwari</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thank you for your valuable suggestions. I&amp;#39;ve been working on reducing the current consumption, and I&amp;#39;ve made some progress, but I&amp;#39;m still facing high current consumption on the UART side.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ve already used the following code to suspend QSPI:`&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;pm_device_action_run(uart, PM_DEVICE_ACTION_SUSPEND);&lt;/p&gt;
&lt;p&gt;While this has reduced the current consumption from 20mA to 18mA, I&amp;#39;m still looking to further optimize the UART section. Here&amp;#39;s how I&amp;#39;m uninitializing the UART:&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;void&lt;/span&gt;&lt;span&gt; &lt;/span&gt;&lt;span&gt;uart_uninit&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; &lt;/span&gt;&lt;span&gt;pm_device_action_run(uart,PM_DEVICE_ACTION_SUSPEND);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;if&lt;/span&gt;&lt;span&gt; (&lt;/span&gt;&lt;span&gt;uartInit&lt;/span&gt;&lt;span&gt;) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;// Disable UART reception&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;uart_rx_disable&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;uart&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;// Disable UART transmission (TX side)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;uart_tx_abort&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;uart&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;// Unregister the UART callback&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;uart_callback_set&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;uart&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;NULL&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;NULL&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;// Reset the initialization flag&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;uartInit&lt;/span&gt;&lt;span&gt; = &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;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &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;}&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;However, even after running this code, I&amp;#39;m still experiencing high current consumption of around 50uA on the UART side. I&amp;#39;m also looking for a similar solution to uninitialize the I2C section.&lt;br /&gt;&lt;br /&gt;If you have any further suggestions or insights on how to effectively uninitialize the UART and reduce the current consumption, please let me know. Your assistance is greatly appreciated.&lt;br /&gt;&lt;br /&gt;Thank you.&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Power Consumption and Peripheral Usage</title><link>https://devzone.nordicsemi.com/thread/451344?ContentTypeID=1</link><pubDate>Thu, 19 Oct 2023 14:10:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50842e55-1628-4e94-9545-c9579fe91276</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Mayank,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;20mA is pretty high current consumption. In fact you only get there if you continuously transmitting data on the radio without using DCDC. And I guess it&amp;#39;s not the case with your application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you use the Power Profiler to measure the current consumption ?&amp;nbsp;&lt;br /&gt;The current consumption of 20mA was only the nRF52840 or it&amp;#39;s also other components on the board ?&amp;nbsp;&lt;br /&gt;My suggestion is to try testing with some simple BLE application for example \nrf\samples\bluetooth\peripheral_lbs (use the prj_minimal.conf to config)&amp;nbsp; should show the idle current of a few uA and the average current of a dozen uA.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;You can also try to reduce the current consumption by turn off logging, turn off some of the peripheral. You should see a idle current of a few uA when the CPU is not running and no other peripheral is working.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>