<?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>Redirect stdout to UART in SDK11</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14196/redirect-stdout-to-uart-in-sdk11</link><description>Hi, in older SDK there seemed to be a simple way to redirect stdout (simple_uart.h), but in SDK 11 I cannot find these functions. What is the recommended/minimal way to redirect stdout in SDK 11?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 31 May 2016 22:38:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14196/redirect-stdout-to-uart-in-sdk11" /><item><title>RE: Redirect stdout to UART in SDK11</title><link>https://devzone.nordicsemi.com/thread/54241?ContentTypeID=1</link><pubDate>Tue, 31 May 2016 22:38:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f02ad91-aaef-41a1-a1a9-231553e096ca</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;You can use the retarget.c from the sdk (stdout only) or you can use the &lt;a href="http://embeddedsoftdev.blogspot.ca/p/ehal-nrf51.html"&gt;library from this blog&lt;/a&gt; which has both direction (stdin &amp;amp; stdout).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Redirect stdout to UART in SDK11</title><link>https://devzone.nordicsemi.com/thread/54242?ContentTypeID=1</link><pubDate>Tue, 31 May 2016 12:13:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28e5b451-f650-49e1-b99b-48883f177e50</guid><dc:creator>Jui-Chou (Rick) Chung</dc:creator><description>&lt;p&gt;Hello Alexander,&lt;/p&gt;
&lt;p&gt;You may use the retarget.c under the path &amp;quot;/components/libraries/uart/&amp;quot;, which can redirect the standard output to the UART.&lt;/p&gt;
&lt;p&gt;But remember to initialize the UART first and using the app_uart_fifo module.&lt;/p&gt;
&lt;p&gt;If you just want to print the log through UART, maybe you can reference &amp;quot;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Flib_nrf_log.html&amp;amp;resultof=%22nrf_log%22%20"&gt;Experimental: UART/RTT logging&lt;/a&gt;&amp;quot; in the infocenter.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>