<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>RTT Logging in NCS: messages lost</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88339/rtt-logging-in-ncs-messages-lost</link><description>Hello, 
 I am trying to get reliable log output using the Nordic Connect SDK (NCS) over RTT. When I use Minimal mode, the following config: 
 CONFIG_LOG_MODE_MINIMAL=y CONFIG_SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL=y 
 I get the following output at startup</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Mon, 30 May 2022 13:23:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88339/rtt-logging-in-ncs-messages-lost" /><item><title>RE: RTT Logging in NCS: messages lost</title><link>https://test-devzone.nordicsemi.com/thread/370007?ContentTypeID=1</link><pubDate>Mon, 30 May 2022 13:23:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54238d02-38a9-4beb-9948-9e4f7b049eba</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Even if you use&amp;nbsp;CONFIG_LOG_BLOCK_IN_THREAD=y there is a timeout which is 1000 (ms) by default, specified by CONFIG_LOG_BLOCK_IN_THREAD_TIMEOUT_MS. If you set this to -1, the logger will block forever if needed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT Logging in NCS: messages lost</title><link>https://test-devzone.nordicsemi.com/thread/369737?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 08:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6079244-839e-4634-b605-2bae86bcb7ac</guid><dc:creator>user15175</dc:creator><description>&lt;p&gt;Yes, okay, that works. Interestingly then the following config is not needed, maybe because the initial output all fits into the RTT buffer? I would conclude then that there must be a bug with blocking when the RTT buffer is full.&lt;/p&gt;
&lt;p&gt;#CONFIG_LOG_BLOCK_IN_THREAD=y&lt;br /&gt;#CONFIG_LOG_BUFFER_SIZE=4096&lt;br /&gt;#CONFIG_SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL=y&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTT Logging in NCS: messages lost</title><link>https://test-devzone.nordicsemi.com/thread/369718?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 07:15:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2afa6128-44f2-418d-99de-af941c7de3b4</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you try to increase the RTT buffer size as well, using (say)&amp;nbsp;&lt;code&gt;CONFIG_SEGGER_RTT_BUFFER_SIZE_UP=4096&lt;/code&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>