<?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>Problems with NRF_LOG or not full output in RTT Viewer.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26289/problems-with-nrf_log-or-not-full-output-in-rtt-viewer</link><description>Hi to everyone! 
 I have a problem with the NRF_LOG or with RTT Viewer.
I wrote this simple code, just to test an output console. 
 int i = 0;
	
while (i&amp;lt; 100)
{
	NRF_LOG_INFO(&amp;quot;%i&amp;quot;, i);
	NRF_LOG_FLUSH();
	i++;
}
 
 But, when I execute it,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Nov 2017 19:41:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26289/problems-with-nrf_log-or-not-full-output-in-rtt-viewer" /><item><title>RE: Problems with NRF_LOG or not full output in RTT Viewer.</title><link>https://devzone.nordicsemi.com/thread/103480?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2017 19:41:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cedf930-795c-421d-9c44-7e88fca22726</guid><dc:creator>nemunoz</dc:creator><description>&lt;p&gt;Yeah! It works!&lt;/p&gt;
&lt;p&gt;I just added nrf_delay_ms(100); before i++; (as you said) and now everything is showing up.&lt;/p&gt;
&lt;p&gt;Thank you so much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with NRF_LOG or not full output in RTT Viewer.</title><link>https://devzone.nordicsemi.com/thread/103477?ContentTypeID=1</link><pubDate>Thu, 09 Nov 2017 19:38:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32d29f41-7250-4c8f-aa7d-adac7f44640c</guid><dc:creator>nemunoz</dc:creator><description>&lt;p&gt;I changed the SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN from 16 to 64 (and 256 at the end).&lt;/p&gt;
&lt;p&gt;Nothing changes. It still hangs on 20.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with NRF_LOG or not full output in RTT Viewer.</title><link>https://devzone.nordicsemi.com/thread/103478?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2017 13:08:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1da97d4e-17c3-4320-bd63-2b6e79c81483</guid><dc:creator>Jakub Rzeszutko</dc:creator><description>&lt;p&gt;What will happen if you will increase RTT upstream buffer in SDK config (SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN) ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with NRF_LOG or not full output in RTT Viewer.</title><link>https://devzone.nordicsemi.com/thread/103479?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2017 12:18:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88bc3c85-b7db-461a-a36d-6d5fbf1cb486</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Hello nemunoz&lt;/p&gt;
&lt;p&gt;I apologize for the late answer.
I did some testing and from what I can tell the MCU is moving too fast for the RTT to keep up. I had sporadic jumps in counter value. When I introduced a delay between printing and restarting the counter loop everything worked as intended.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jørn Frøysa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>