<?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>Where does printf print to?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10405/where-does-printf-print-to</link><description>I have a PCA10001 setup and I am using SDK v9. I have opened the UART example in CrossStudio. 
 It compiles/builds and I am debugging with breakpoints. 
 My question is where does printf &amp;#39;s get displayed? I am not seeing it on the UART but I know UART</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Nov 2015 06:48:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10405/where-does-printf-print-to" /><item><title>RE: Where does printf print to?</title><link>https://devzone.nordicsemi.com/thread/38627?ContentTypeID=1</link><pubDate>Tue, 24 Nov 2015 06:48:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7369edbe-014b-4b6a-a671-f8f1634b241d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;You have to retarget &lt;code&gt;printf()&lt;/code&gt; by using a custom &lt;code&gt;_write()&lt;/code&gt; (If you were using Keil you would have to use a custom &lt;code&gt;fputc()&lt;/code&gt; instead). This is implemented in the SDK, but you have to including components/libraries/uart/retarget.c in your Makefile. There are more details in &lt;a href="https://devzone.nordicsemi.com/question/24499/how-do-i-configure-newlib-printf/"&gt;this thread&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where does printf print to?</title><link>https://devzone.nordicsemi.com/thread/38626?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2015 16:48:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5893ef7f-9260-4b32-82de-5717aa512df5</guid><dc:creator>Protoneer</dc:creator><description>&lt;p&gt;I see. Lets take CrossStudio out of the picture. If I use GCC and make files, where will the SDK example output it then?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where does printf print to?</title><link>https://devzone.nordicsemi.com/thread/38625?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2015 10:11:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d202a840-25e2-4103-8a1b-21e4d2dd80c7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I have no experience with CrossStudio, but it seems you have to &lt;a href="http://www.rowleydownload.co.uk/avr/documentation/index.htm?http://www.rowleydownload.co.uk/avr/documentation/libc_customizing_putchar.htm"&gt;customize&lt;/a&gt; &lt;code&gt;__putchar()&lt;/code&gt;, which is used by &lt;code&gt;printf()&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>