<?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>How to enable blocking log output with RTT? - SDK15</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33797/how-to-enable-blocking-log-output-with-rtt---sdk15</link><description>Hello, 
 I want to be able to toggle blocking RTT output when using the log module. 
 Before in SDK13 I could just set SEGGER_RTT_CONFIG_DEFAULT_MODE to 2 in the sdk_config.h file. That doesn&amp;#39;t seem to work anymore with the new logging module. I keep</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 May 2018 12:07:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33797/how-to-enable-blocking-log-output-with-rtt---sdk15" /><item><title>RE: How to enable blocking log output with RTT? - SDK15</title><link>https://devzone.nordicsemi.com/thread/131008?ContentTypeID=1</link><pubDate>Fri, 04 May 2018 12:07:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14aaa7f7-06fe-4eb1-b6d2-eaf0495b1651</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Disabling deferred logging indeed solves the problem :) This wasn&amp;#39;t an issue previously in SDK 13 though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable blocking log output with RTT? - SDK15</title><link>https://devzone.nordicsemi.com/thread/131006?ContentTypeID=1</link><pubDate>Fri, 04 May 2018 11:53:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4812609b-eafe-4e06-8587-b56550b005af</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Andy,&lt;/p&gt;
&lt;p&gt;Are you using deferred logging?&lt;/p&gt;
&lt;p&gt;Blocking at the RTT level seems to work. I have tested with the following simple code. I can see that there is no gap in the printed numbers even if I disconnect the RTT viewer for a period of time before reconnecting.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    while(true)
    {
        i++;
        NRF_LOG_INFO(&amp;quot;%i&amp;quot;, i);
        NRF_LOG_PROCESS();
    }&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;However, the higher lever nrf_log module does not support blocking per se. So if you use deferred logging in a&amp;nbsp;more realistic way, calling NRF_LOG_* multiple times before calling NRF_LOG_PROCESS(), you could fill up the nrf_log buffer. This is not the same as the RTT buffer, and is defined by NRF_LOG_BUFSIZE in sdk_config.h. Not using deferred logging should solve the issue in this case (though I have not tested).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to enable blocking log output with RTT?</title><link>https://devzone.nordicsemi.com/thread/130782?ContentTypeID=1</link><pubDate>Thu, 03 May 2018 10:50:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89e8c448-33ac-410a-b3b9-24c88d256124</guid><dc:creator>Andy</dc:creator><description>&lt;p&gt;Any update on this? I still haven&amp;#39;t figured out how to make the output blocking.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>