<?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>No RTT Viewer output if no call to nrf_pwr_mgmt_run()</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26784/no-rtt-viewer-output-if-no-call-to-nrf_pwr_mgmt_run</link><description>Hi! 
 I&amp;#39;ve based a new project for the nRF52840/S140/Preview-DK on ble_central/ble_app_uart_c . 
 I use the NRF_LOG_XXXX macros for debug and they print fine in RTT Viewer. 
 However, I do not need any powersave in my app but when I remove the call</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Nov 2017 09:21:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26784/no-rtt-viewer-output-if-no-call-to-nrf_pwr_mgmt_run" /><item><title>RE: No RTT Viewer output if no call to nrf_pwr_mgmt_run()</title><link>https://devzone.nordicsemi.com/thread/105286?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2017 09:21:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9eebf54-2995-42e3-a165-75be62a9fd07</guid><dc:creator>Lars</dc:creator><description>&lt;p&gt;Thanks! That seem to do the trick and I could keep NRF_LOG_DEFERRED enabled :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No RTT Viewer output if no call to nrf_pwr_mgmt_run()</title><link>https://devzone.nordicsemi.com/thread/105285?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2017 08:48:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b909cdf-4488-4f34-b2b6-91ded95532c7</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Glad to hear that you got it working. You can also use &lt;code&gt;NRF_LOG_PROCESS()&lt;/code&gt;/&lt;code&gt;NRF_LOG_FLUSH()&lt;/code&gt; to process the log queue when the CPU have nothing else to do. Heavy logging inside functions can slow down the application. Please refer the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.1.0/nrf_log.html?cp=4_0_0_3_25_3#nrf_log_performance"&gt;&lt;em&gt;&amp;quot;Preformance&amp;quot;-section&lt;/em&gt;&lt;/a&gt; in the library documentation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No RTT Viewer output if no call to nrf_pwr_mgmt_run()</title><link>https://devzone.nordicsemi.com/thread/105287?ContentTypeID=1</link><pubDate>Fri, 10 Nov 2017 08:41:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abd3527b-ced3-4f9c-af86-37bf5ccf38c1</guid><dc:creator>Lars</dc:creator><description>&lt;p&gt;I can answer this myself after checking the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.1.0/nrf_log.html?cp=4_0_0_3_25"&gt;InfoCenter&lt;/a&gt; a little better.&lt;/p&gt;
&lt;p&gt;NRF_LOG_DEFERRED was enabled. Quote: &lt;em&gt;&amp;quot;NRF_LOG_DEFERRED - If enabled, then the logs are not processed directly where they are called but deferred to idle state. &amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;If I disable this in &lt;em&gt;sdk_config.h&lt;/em&gt;, everything seems to work fine!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>