<?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>Realy strange printf over UART loggin behaviour</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31950/realy-strange-printf-over-uart-loggin-behaviour</link><description>I&amp;#39;m trying to setup logging with printf() over UART and I got totaly blocked by following realy strange situation. 
 Let&amp;#39;s have following very simple log_test.c: 
 
 Then I have a putty configured as a hyper terminal and can watch the COM port traffic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Mar 2018 07:30:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31950/realy-strange-printf-over-uart-loggin-behaviour" /><item><title>RE: Realy strange printf over UART loggin behaviour</title><link>https://devzone.nordicsemi.com/thread/123827?ContentTypeID=1</link><pubDate>Mon, 12 Mar 2018 07:30:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d8bfa00-6bd2-468e-9b85-b4e93c7cd83b</guid><dc:creator>Dusan Daniska</dc:creator><description>&lt;p&gt;Thank you, you are right. Adding &amp;quot;\r\n&amp;quot; into the printf() in the loop solved the problem.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;  while (true) {
    nrf_delay_ms(1000);
    printf(&amp;quot;.\r\n&amp;quot;);
  }
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Now I got a pretty log and with a delay:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1520839649712v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Realy strange printf over UART loggin behaviour</title><link>https://devzone.nordicsemi.com/thread/123812?ContentTypeID=1</link><pubDate>Sun, 11 Mar 2018 21:30:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a3cd707d-9daf-434e-8033-3f378bfae45f</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Newlib is buffering printf() and puts() calls. The buffers are flushed when either full or a newline (\n) is printed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>