<?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>printf (App trace) not outputting to uart</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4457/printf-app-trace-not-outputting-to-uart</link><description>Hi all, 
 I am having a bit of a problem with the printf. I could not figure out what could be the problem. From what I search people seem to be getting it working with out any problem. 
 I am using the SDK 6.1 and using it on kepler eclipse. I set</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Nov 2014 21:29:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4457/printf-app-trace-not-outputting-to-uart" /><item><title>RE: printf (App trace) not outputting to uart</title><link>https://devzone.nordicsemi.com/thread/15831?ContentTypeID=1</link><pubDate>Fri, 14 Nov 2014 21:29:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1f5cf5d7-5fd0-4d78-9231-c4980e8c12a7</guid><dc:creator>Chaiwat Sungkhobol</dc:creator><description>&lt;p&gt;I was able to get the printf working on SDK 6.1 by adding the code below in app_trace.c&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;int _write(int fd, char * str, int len)
{
    for (int i = 0; i &amp;lt; len; i++)
    {
        simple_uart_put(str[i]);
    }
    return len;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Found this code in &lt;a href="https://github.com/hlnd/printf-gcc"&gt;https://github.com/hlnd/printf-gcc&lt;/a&gt; and it work&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: printf (App trace) not outputting to uart</title><link>https://devzone.nordicsemi.com/thread/15830?ContentTypeID=1</link><pubDate>Fri, 14 Nov 2014 07:33:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b6b571e-378c-468d-8569-38e32952d5b4</guid><dc:creator>Krzysztof Chruscinski</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;retarget in SDK 6.1 was ARM Keil only so printf&amp;#39;s won&amp;#39;t work in GCC. However it&amp;#39;s fixed in SDK 7.0.1 which you can find at &lt;a href="http://developer.nordicsemi.com"&gt;developer.nordicsemi.com&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>