<?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>Cant print data on terminal using uart</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22458/cant-print-data-on-terminal-using-uart</link><description>Hello,
I am using nrf51 and sdk12.2. I want to print data to terminal using printf function. So I added app_uart_fifo.c also I included paths. I did not get any errors from the compiler but I cant see anything output on my uart terminal. My code is:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 May 2017 10:20:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22458/cant-print-data-on-terminal-using-uart" /><item><title>RE: Cant print data on terminal using uart</title><link>https://devzone.nordicsemi.com/thread/88296?ContentTypeID=1</link><pubDate>Wed, 31 May 2017 10:20:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b6d3916-2f9a-49ee-8240-2cdca777a468</guid><dc:creator>Newbie</dc:creator><description>&lt;p&gt;Thanks Jørgen. It worked.
Shailav&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cant print data on terminal using uart</title><link>https://devzone.nordicsemi.com/thread/88295?ContentTypeID=1</link><pubDate>Wed, 31 May 2017 09:28:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:163009e4-2e0f-4853-b3fd-990e934f8db0</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you want to use &lt;code&gt;printf()&lt;/code&gt; to print to UART, you need to retarget the stdio functions. This can be done by including the file &lt;em&gt;retarget.c&lt;/em&gt;, found in *[SDK_ROOT]\components\libraries\uart*. You also need to enable this module in &lt;em&gt;sdk_config.h&lt;/em&gt;, by setting &lt;code&gt;#define RETARGET_ENABLED 1&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>