<?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>Sleep current with NRF_LOG_ENABLED or without NRF_LOG_ENABLED</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22103/sleep-current-with-nrf_log_enabled-or-without-nrf_log_enabled</link><description>Hi, 
 I am measuring the current during sleep, after the sequence, __WFE();__SEV();__WFE();. 
 With NRF_LOG_ENABLED set to 1, the current is about 486 uA. With NRF_LOG_ENABLED set to 0, the current is about 14 uA. What is consuming the current during</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 May 2017 20:11:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22103/sleep-current-with-nrf_log_enabled-or-without-nrf_log_enabled" /><item><title>RE: Sleep current with NRF_LOG_ENABLED or without NRF_LOG_ENABLED</title><link>https://devzone.nordicsemi.com/thread/86850?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 20:11:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7918490f-b035-4225-9156-29fd289e17af</guid><dc:creator>WestCoastDaz</dc:creator><description>&lt;p&gt;Joe,&lt;/p&gt;
&lt;p&gt;The current is 3mA now because the debugger is connected and the debug engine is running.  I forgot about that when I suggested using RTT.  There really isn&amp;#39;t a low current way to log data without modifying the logging library to disable the UART after all data is flushed or toggle unused GPIOs.&lt;/p&gt;
&lt;p&gt;Sorry for the confusion.&lt;/p&gt;
&lt;p&gt;The check is to the left of my initial answer, please check it only if you felt I answered your question:)&lt;/p&gt;
&lt;p&gt;Cheers,
Darren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep current with NRF_LOG_ENABLED or without NRF_LOG_ENABLED</title><link>https://devzone.nordicsemi.com/thread/86853?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 20:02:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:713eb850-a3fd-46b7-bdf3-ea5ec9db891a</guid><dc:creator>Joe</dc:creator><description>&lt;p&gt;Actually, a folowup question :)&lt;/p&gt;
&lt;p&gt;I now switch to using RTT like you suggested. In sdk_config.h, I set NRF_LOG_BACKEND_SERIAL_USES_UART to 0, and NRF_LOG_BACKEND_SERIAL_USES_RTT to 1. When I run JLinkRTTViewer, the output is nice and quick. However, now my idle/sleep current is ~3mA. Have you had similar experience? Do I need to turn off the RTT before going to sleep?&lt;/p&gt;
&lt;p&gt;I am new to the forum, where is the check you want me to click?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep current with NRF_LOG_ENABLED or without NRF_LOG_ENABLED</title><link>https://devzone.nordicsemi.com/thread/86854?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 19:39:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a840a210-d9b8-4e5a-979c-474ee0f32c06</guid><dc:creator>WestCoastDaz</dc:creator><description>&lt;p&gt;Joe,&lt;/p&gt;
&lt;p&gt;My pleasure!  If I answered your question would you mind clicking the check.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep current with NRF_LOG_ENABLED or without NRF_LOG_ENABLED</title><link>https://devzone.nordicsemi.com/thread/86852?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 19:24:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c336b72d-6c11-449d-a788-60ada4c86a7d</guid><dc:creator>Joe</dc:creator><description>&lt;p&gt;Thanks, Darren!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep current with NRF_LOG_ENABLED or without NRF_LOG_ENABLED</title><link>https://devzone.nordicsemi.com/thread/86849?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 18:18:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:916cd7ee-ce1c-4ad4-bba2-4e6f7a24b57e</guid><dc:creator>WestCoastDaz</dc:creator><description>&lt;p&gt;Joe, the UART it&amp;#39;s self takes 55uA but it turns on the peripheral clock which is where the majority of the current is coming from.  You should be able to un-init the UART using the SDK.  You will likely have to dig through the logging library to find out which UART calls a being made and then use them.  If you want to quickly check then you may want to try RTT based logging as I highlighted above.  We switched to it and haven&amp;#39;t looked back.&lt;/p&gt;
&lt;p&gt;Darren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep current with NRF_LOG_ENABLED or without NRF_LOG_ENABLED</title><link>https://devzone.nordicsemi.com/thread/86851?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 18:10:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e76f8d6d-c6cc-4d3c-8b8b-b7c61ba5fb70</guid><dc:creator>Joe</dc:creator><description>&lt;p&gt;Hi Darren,&lt;/p&gt;
&lt;p&gt;I am suspecting the UART is drawing the current, but the data sheet says 55 uA, not 400 uA. Do you know of a way in runtime to disable the UART to reduce the sleep current?&lt;/p&gt;
&lt;p&gt;BTW, I am using SDK 12.2.0 and PCA10040.&lt;/p&gt;
&lt;p&gt;Joseph&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep current with NRF_LOG_ENABLED or without NRF_LOG_ENABLED</title><link>https://devzone.nordicsemi.com/thread/86848?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 17:59:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6797ef30-10ef-4771-a128-aed203a8a8b0</guid><dc:creator>WestCoastDaz</dc:creator><description>&lt;p&gt;Joe,&lt;/p&gt;
&lt;p&gt;Without knowing exactly how you have sdk_config.h setup my guess is the additional sleep current is due to the UART quiescent current.  In our tests it adds ~400uA static quiescent current.  If you have a Segger debugger you can switch to RTT logging which is a lot faster than using the UART and it frees up your UART for other tasks.&lt;/p&gt;
&lt;p&gt;Darren&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>