<?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>case about How many bytes can output at a time in RTT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80970/case-about-how-many-bytes-can-output-at-a-time-in-rtt</link><description>Hi， 
 sdk：ncs v1.6.1 
 board:9160dk_nrf9160 
 I use RTT to output log data, but I found that it can only output about 1k characters each time. Where can I modify it? 
 this my config about log 
 
 CONFIG_LOG =y 
 CONFIG_USE_SEGGER_RTT =y 
 CONFIG_LOG_BACKEND_RTT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Oct 2021 12:08:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80970/case-about-how-many-bytes-can-output-at-a-time-in-rtt" /><item><title>RE: case about How many bytes can output at a time in RTT</title><link>https://devzone.nordicsemi.com/thread/335729?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 12:08:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42e1b293-961a-4ce1-a900-2f1434c90769</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which settings did you enable?&lt;/p&gt;
&lt;p&gt;If you are using a dedicated logger thread, you have to adjust the sizes there (see CONFIG_LOG_BUFFER_SIZE , CONFIG_LOG_BACKEND_RTT_OUTPUT_BUFFER_SIZE).&lt;/p&gt;
&lt;p&gt;Did you set CONFIG_LOG_MINIMAL? If so, the SEGGER_RTT buffers need to be adjusted (ie. CONFIG_SEGGER_RTT_BUFFER_SIZE_UP and CONFIG_SEGGER_RTT_MAX_NUM_UP_BUFFERS) and you should look into setting CONFIG_SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL, as previously mentioned.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: case about How many bytes can output at a time in RTT</title><link>https://devzone.nordicsemi.com/thread/335637?ContentTypeID=1</link><pubDate>Mon, 25 Oct 2021 07:17:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:010e6851-f281-4339-b01a-84b9c176ede3</guid><dc:creator>yuanyongsong</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon,&lt;/span&gt;Thank you very much for your reply&lt;/p&gt;
&lt;p&gt;I modified them separately according to your suggestions, but it didn&amp;rsquo;t seem to work&lt;/p&gt;
&lt;p&gt;I did a more detailed test and found that only the first packet of data when the 9160 is turned on will be like this，all subsequent data are complete.&lt;/p&gt;
&lt;p&gt;And I use the serial port to output log data, and there is no such problem at all.&lt;/p&gt;
&lt;p&gt;It feels like a problem with RTT.&lt;/p&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;yuanyongsong&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: case about How many bytes can output at a time in RTT</title><link>https://devzone.nordicsemi.com/thread/335473?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 11:46:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c682a4cb-bbe8-423e-afb6-92e0e07444fc</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I use RTT to output log data, but I found that it can only output about 1k characters each time. Where can I modify it?[/quote]
&lt;p&gt;Try setting &amp;quot;CONFIG_LOG_MINIMAL=y&amp;quot; (CONFIG_LOG_MODE_MINIMAL in ncs v1.7.0 and newer), which disables the logging thread.&lt;/p&gt;
&lt;p&gt;You can also try to adjust &amp;quot;CONFIG_SEGGER_RTT_MAX_NUM_UP_BUFFERS&amp;quot;.&lt;/p&gt;
&lt;p&gt;If you do not want it to drop packets when the buffer is filled up, you can add this configuration:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL=y&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that this will block if the FIFO is filled up, meaning that you need to open the RTT viewer to allow the program to run.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>