<?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 only sends a single byte?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4879/printf-only-sends-a-single-byte</link><description>I&amp;#39;m attempting to use the app_trace module. I&amp;#39;ve set it up as follows: 
 int main(void)
{	
 // Setup tracing. Also sets up UART.
 app_trace_init();

 app_trace_log(&amp;quot;Starting...\r\n&amp;quot;);
 
 I&amp;#39;m using PuTTY to connect (to COM5 in my case) with the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 14 Nov 2015 07:59:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4879/printf-only-sends-a-single-byte" /><item><title>RE: printf only sends a single byte?</title><link>https://devzone.nordicsemi.com/thread/17226?ContentTypeID=1</link><pubDate>Sat, 14 Nov 2015 07:59:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9833362-d1f0-4983-971c-aa0e1155fead</guid><dc:creator>hawk</dc:creator><description>&lt;p&gt;yes, you must use app_uart_fifo.c, not  app_uart.c, it had better modfiy the document of nordic nrf51.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: printf only sends a single byte?</title><link>https://devzone.nordicsemi.com/thread/17227?ContentTypeID=1</link><pubDate>Sat, 14 Nov 2015 07:50:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b28af0d9-eef6-4a51-85ec-5c53b51c013a</guid><dc:creator>hawk</dc:creator><description>&lt;p&gt;hi,Peter:&lt;br /&gt;
app_trace_init()/app_trace_log() of  SDK9.0  i test , it is ok..  in your code, please add while(1) code. otherwise, when you are printing,   the main is ended. so you just print the fist char of your message...&lt;/p&gt;
&lt;p&gt;notice:  when your print a lots of message , please give some time deleay using  nrf_delay_ms(),&lt;/p&gt;
&lt;p&gt;int main(void)
{&lt;br /&gt;
// Setup tracing. Also sets up UART.
app_trace_init();&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;app_trace_log(&amp;quot;Starting...\r\n&amp;quot;);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;while(1){
;   // just wait..&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: printf only sends a single byte?</title><link>https://devzone.nordicsemi.com/thread/17225?ContentTypeID=1</link><pubDate>Wed, 07 Jan 2015 00:54:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0702cef0-9ca5-44e0-822d-2d48bca818d6</guid><dc:creator>Peter</dc:creator><description>&lt;p&gt;&amp;quot;You have to check which kind of app_uart you have linked to your project. App_trace requires app_uart_fifo.c&amp;quot;&lt;/p&gt;
&lt;p&gt;Wojciech Jasko posted that solution as a comment &lt;a href="https://devzone.nordicsemi.com/question/22359/debug-uart-with-sdk-71/"&gt;in another question&lt;/a&gt;. I&amp;#39;m not sure if it solved the original poster&amp;#39;s problem, but it answers this question here.&lt;/p&gt;
&lt;p&gt;In Keil uVision, you can choose the FIFO version of UART by going to Manage Run-Time Environment-&amp;gt;nRF_Driver-&amp;gt;app_uart and chose &amp;quot;Fifo&amp;quot; for the variant drop-down.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: printf only sends a single byte?</title><link>https://devzone.nordicsemi.com/thread/17224?ContentTypeID=1</link><pubDate>Wed, 07 Jan 2015 00:48:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7e7244e-9adc-4f6b-822d-12f5f262b048</guid><dc:creator>Peter</dc:creator><description>&lt;p&gt;I&amp;#39;d like to go this route eventually. It looks like Nordic&amp;#39;s libraries only support UART for trace output, though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: printf only sends a single byte?</title><link>https://devzone.nordicsemi.com/thread/17222?ContentTypeID=1</link><pubDate>Thu, 18 Dec 2014 23:55:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a64f41d-58af-4c8b-9039-654b59474b56</guid><dc:creator>Peter</dc:creator><description>&lt;p&gt;Wojciech Jasko&amp;#39;s comment on your thread fixed my issue. I asked him to post the comment as an answer here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: printf only sends a single byte?</title><link>https://devzone.nordicsemi.com/thread/17223?ContentTypeID=1</link><pubDate>Thu, 18 Dec 2014 23:14:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d2fc987-cf15-452f-a644-bed32cb1f23e</guid><dc:creator>Lucast85</dc:creator><description>&lt;p&gt;I use &lt;a href="https://www.segger.com/jlink-real-time-terminal.html"&gt;Segger RTT&lt;/a&gt; feature for printf and debug. I think it&amp;#39;s a similar feature. It works very well with my nRF51822-EK and its embedded J-Link debugger!! Maybe could help..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: printf only sends a single byte?</title><link>https://devzone.nordicsemi.com/thread/17221?ContentTypeID=1</link><pubDate>Thu, 18 Dec 2014 21:48:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:828ecda1-9563-4db0-b675-1f8eb86ce025</guid><dc:creator>cpignol</dc:creator><description>&lt;p&gt;I got the same problem cf thread &lt;a href="https://devzone.nordicsemi.com/question/22359/debug-uart-with-sdk-71/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>