<?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>SEGGER RTT printf not printing all the lines.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19651/segger-rtt-printf-not-printing-all-the-lines</link><description>I want to read whole flash memory using for loop and see how long it takes. What i have noticed is that it does not print all the lines. On the other side i ask myself: Does it read all the lines? 
 I read the memory as suggested in this post devzone</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Feb 2017 18:13:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19651/segger-rtt-printf-not-printing-all-the-lines" /><item><title>RE: SEGGER RTT printf not printing all the lines.</title><link>https://devzone.nordicsemi.com/thread/76468?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2017 18:13:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92de351e-7e24-4d47-b199-b86b9c164c9f</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;The buffer size is quite small by default in the SDK examples, only 64 bytes. Check SEGGER_RTT_CONFIG_BUFFER_SIZE_UP in sdk_config.h (BUFFER_SIZE_UP in SEGGER_RTT_Conf.h is set to this).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SEGGER RTT printf not printing all the lines.</title><link>https://devzone.nordicsemi.com/thread/76467?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2017 14:32:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81309f9f-6f24-45d3-bd3a-522470063c6b</guid><dc:creator>SEGGER - Johannes</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It could be possible that you print the data &amp;quot;too fast&amp;quot;.
This means you write to the RTT buffer faster than the J-Link reads and empties the buffer.
When the buffer is full, the default configuration is to discard new data.&lt;/p&gt;
&lt;p&gt;There are three approaches to avoid this:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Use an external J-Link (PRO/ULTRA+) which might read the buffer faster&lt;/li&gt;
&lt;li&gt;Use a larger RTT buffer (increase BUFFER_SIZE_UP in SEGGER_RTT_Conf.h)&lt;/li&gt;
&lt;li&gt;Use RTT in blocking mode (define SEGGER_RTT_MODE_DEFAULT as SEGGER_RTT_MODE_BLOCK_IF_FIFO_FULL)&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Please note that with the third approach your application will be blocked and does not run if no J-Link/Debugger is attached.&lt;/p&gt;
&lt;p&gt;Regards
Johannes&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>