<?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>ble_app_uart consuming high power even at IDLE mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65204/ble_app_uart-consuming-high-power-even-at-idle-mode</link><description>Hi, 
 I&amp;#39;m testing the ble_app_uart example on the nRF52840 DK and it seems to be consuming a lot of current similar to the case in https://devzone.nordicsemi.com/f/nordic-q-a/52627/ble_app_uart-low-power?ReplySortBy=CreatedDate&amp;amp;ReplySortOrder=Ascending</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Aug 2020 12:34:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65204/ble_app_uart-consuming-high-power-even-at-idle-mode" /><item><title>RE: ble_app_uart consuming high power even at IDLE mode</title><link>https://devzone.nordicsemi.com/thread/267007?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 12:34:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24bc236e-c354-4c9a-a696-934cd742b9e0</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Great samya, good to know that you solved it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart consuming high power even at IDLE mode</title><link>https://devzone.nordicsemi.com/thread/266986?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 11:42:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0d5e826-63e9-4a41-b1ad-c522f4208d21</guid><dc:creator>samyg</dc:creator><description>&lt;p&gt;I managed to solve it. The problem isn&amp;#39;t the code but it&amp;#39;s how I power the DK. I shouldn&amp;#39;t switch SW10 to ON, If I set to OFF, the voltage across the 10Ohm resistor when UART is enabled is about 700uA which is correct.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart consuming high power even at IDLE mode</title><link>https://devzone.nordicsemi.com/thread/266972?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 11:17:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:057cc452-9b56-4cd0-8835-0795aed4fa58</guid><dc:creator>Susheel Nuguru</dc:creator><description>[quote user="samyg"]Also, if you uncomment uart_init() do you get an average current consumption of about 400uA?[/quote]
&lt;p&gt;&amp;nbsp;Yes, but the workaround makes the power go down.&lt;/p&gt;
&lt;p&gt;Attaching my whole project folder as zip as you requested.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-1170c8d195a94e66962bb5fd2cfd1f8a/ble_5F00_app_5F00_uart.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_uart.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart consuming high power even at IDLE mode</title><link>https://devzone.nordicsemi.com/thread/266951?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 10:16:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c67c4ce-a28c-43c8-9235-1054ad2150f0</guid><dc:creator>samyg</dc:creator><description>&lt;p&gt;Yes I also disabled NRG_LOG_ENABLED in the sdk_config.h but I&amp;#39;m sitll getting 150mA when uart_init() is commented or 4mA when uart_init() is not commented. I&amp;#39;ve testing using both the oscilloscope and multimeter and both results are the same. Is it okay if I can have your code project where you copied my code and let me compared? I&amp;#39;m wondering if I accidentally enabled any other drivers/libraries that might cause additional current spikes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also, if you uncomment uart_init() do you get an average current consumption of about 400uA?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart consuming high power even at IDLE mode</title><link>https://devzone.nordicsemi.com/thread/266861?ContentTypeID=1</link><pubDate>Fri, 28 Aug 2020 06:39:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc268bd8-f4af-4c37-af71-81391d43f919</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Samya,&lt;/p&gt;
&lt;p&gt;I used PCA100040&amp;nbsp; DK and I just disabled NRF_LOG_ENABLED in the sdk_config.h and commented out uart_init() in the file you provided and i get the current consumption like below&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/564x192/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-1170c8d195a94e66962bb5fd2cfd1f8a/pastedimage1598596494941v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;This confirms that the spike you are seeing is from the UART or maybe logs.&lt;/p&gt;
&lt;p&gt;I even tried the code snipped you tried&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;    // Initialize.
    uart_init();
    app_uart_close();
    *(volatile uint32_t *)0x40002FFC = 0;
    *(volatile uint32_t *)0x40002FFC;
    *(volatile uint32_t *)0x40002FFC = 1;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and i get even lower&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/577x195/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-1170c8d195a94e66962bb5fd2cfd1f8a/pastedimage1598596773415v2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart consuming high power even at IDLE mode</title><link>https://devzone.nordicsemi.com/thread/266815?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 16:52:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d34afab-6ba0-44a1-9976-6c4b2d8778e9</guid><dc:creator>samyg</dc:creator><description>&lt;p&gt;I tried the app_uart_close() as mentioned in the other thread but I still couldn&amp;#39;t get the current consumption down. I called uart_init() then I close it before it starts advertising. I even tried commenting the whole thing out which means that uart is not initialised in the first place but current consumption is still about 150uA.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;    uart_init();
    app_uart_close();
    *(volatile uint32_t *)0x40002FFC = 0;
    *(volatile uint32_t *)0x40002FFC;
    *(volatile uint32_t *)0x40002FFC = 1;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Did you manage to try out the code I shared on your DK and did you get the same current consumption?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart consuming high power even at IDLE mode</title><link>https://devzone.nordicsemi.com/thread/266637?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 08:09:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7d17362-5021-4124-a4d7-ea98573dae42</guid><dc:creator>samyg</dc:creator><description>&lt;p&gt;The full version on the chip is NS2640 QIAAD0 1911AD. I will try the workaround later today.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart consuming high power even at IDLE mode</title><link>https://devzone.nordicsemi.com/thread/266631?ContentTypeID=1</link><pubDate>Thu, 27 Aug 2020 07:49:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8866f115-1913-40ad-a59b-8bde7f783e0e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Samya,&lt;/p&gt;
&lt;p&gt;It is possible that you are affected by the uart not releasing the hfclk. Can you please mention the lazer marking of the nRF chip to see the full version of the chip and the build code.&lt;/p&gt;
&lt;p&gt;Can you please try the suggested workaround given by Jorgen in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/63057/periodic-advertisement-when-app_adv_duration-expires/258176#258176"&gt;this &lt;/a&gt;thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>