<?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>Problem with retarget.c</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6913/problem-with-retarget-c</link><description>Hi 
 I&amp;#39;m using PCA10028. it has nrf51422 with softdevice s110. For getting printf in console I&amp;#39;m using &amp;#39;app_uart.c with FIFO&amp;#39; and &amp;#39;retarget.c&amp;#39;. When i try to print something I&amp;#39;m getting only the first character in console. 
 printf(&amp;quot;starting&amp;quot;);
printf</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 04 Jun 2015 13:22:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6913/problem-with-retarget-c" /><item><title>RE: Problem with retarget.c</title><link>https://devzone.nordicsemi.com/thread/24387?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 13:22:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9d74ead-af4c-4ee5-926f-ee660e0d95fc</guid><dc:creator>eq</dc:creator><description>&lt;p&gt;Thanks Martin.  That did the trick!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with retarget.c</title><link>https://devzone.nordicsemi.com/thread/24386?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 11:06:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2be7fd89-e75a-48da-bafa-29ad89b67057</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;The function declarations in app_uart.h are valid for the functions defined in app_uart_fifo.c so you are simply supposed to use app_uart.h combined with app_uart_fifo.c &lt;em&gt;instead of&lt;/em&gt; app_uart.c. There is no app_uart_fifo.&lt;strong&gt;h&lt;/strong&gt; required.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with retarget.c</title><link>https://devzone.nordicsemi.com/thread/24384?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 08:36:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a4f4b1a-f151-4042-a7e3-5154429d68a9</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;I meant 2 exponential.  2, 4, 8,16, 32,...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with retarget.c</title><link>https://devzone.nordicsemi.com/thread/24382?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 05:16:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2521c275-98d9-4d61-8df5-9e175043966d</guid><dc:creator>eq</dc:creator><description>&lt;p&gt;I have a pretty similar setup.  On SDK version 8.0.0; using GCC with app_uart.h, retarget.c...Can&amp;#39;t include app_uart_fifo.c because app_uar_fifo.h does NOT seem to be included in SDK 8.0.0  Do I need this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with retarget.c</title><link>https://devzone.nordicsemi.com/thread/24385?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 04:24:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6e46ae3-9786-4d4a-a59b-d93a1e9c8b3e</guid><dc:creator>eq</dc:creator><description>&lt;p&gt;UART_TX_BUF_SIZE is set to 20.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with retarget.c</title><link>https://devzone.nordicsemi.com/thread/24383?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2015 10:29:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3a163fa-ec47-43be-8898-2029d44bb4f2</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;What is the value of your tx buffer size (UART_TX_BUF_SIZE) when you call APP_UART_FIFO_INIT ? Must be bigger than 1 and multiple of 2.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with retarget.c</title><link>https://devzone.nordicsemi.com/thread/24381?ContentTypeID=1</link><pubDate>Tue, 02 Jun 2015 08:00:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:627847fa-637c-4b0e-bffb-ecc1d39a3608</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi @eq&lt;/p&gt;
&lt;p&gt;What&amp;#39;s your setup? SDK version? IDE? Keil? GCC? I have tried to reconstruct your problem on my system, but it just works for me. I use Keil, SDK 8.0.0, app_uart.h, app_uart_fifo.c and retarget.c. I have attached an example main.c file. It is based on the ble_template example in the SDK. My fputc() function in retarget.c looks like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;int fputc(int ch, FILE * p_file)
{
    UNUSED_PARAMETER(p_file);

    UNUSED_VARIABLE(app_uart_put((uint8_t)ch));
    return ch;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5635.main.c"&gt;main.c&lt;/a&gt;
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0804.retarget.c"&gt;retarget.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with retarget.c</title><link>https://devzone.nordicsemi.com/thread/24380?ContentTypeID=1</link><pubDate>Sat, 30 May 2015 06:46:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a98c5bcf-3cfa-4327-a4e4-8e2498b7b0d6</guid><dc:creator>eq</dc:creator><description>&lt;p&gt;Did you ever solve this?  I have the same problem...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with retarget.c</title><link>https://devzone.nordicsemi.com/thread/24379?ContentTypeID=1</link><pubDate>Thu, 07 May 2015 07:43:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2514cf2-b5a0-4a3d-a858-be0fe711375f</guid><dc:creator>jithin m das</dc:creator><description>&lt;p&gt;s110 SD and nrf51 SDK&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem with retarget.c</title><link>https://devzone.nordicsemi.com/thread/24378?ContentTypeID=1</link><pubDate>Thu, 07 May 2015 05:20:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e06318b-6fad-49e2-81b2-0df37e1fef94</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;which SD and which SDK?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>