<?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>SDK 14 printf() Issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25526/sdk-14-printf-issue</link><description>Building for a PCA10040 dev board (nrf52832) in SDK 14.0.0 with the S132SD v5.0.0 
 I&amp;#39;m an encountering an issue where calls to printf() are only displaying a single byte in the terminal emulator. 
 I am using app_uart_fifo.c and retargeting printf</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 07 Oct 2017 00:51:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25526/sdk-14-printf-issue" /><item><title>RE: SDK 14 printf() Issue</title><link>https://devzone.nordicsemi.com/thread/100635?ContentTypeID=1</link><pubDate>Sat, 07 Oct 2017 00:51:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2ca79e0-50f4-4632-8233-4780b4880ee8</guid><dc:creator>operator</dc:creator><description>&lt;p&gt;Hi Jørgen, I believe I found my issue but will respond here for the benefit of any future folks who may encounter a similar problem.&lt;/p&gt;
&lt;p&gt;To address your questions, I&amp;#39;m using Keil uVision so presumably armcc v5.06.&lt;/p&gt;
&lt;p&gt;I did test the retarget.c from SDK 13.1-alpha but the issue persisted.&lt;/p&gt;
&lt;p&gt;The issue eventually turned out to be, or so it appears, with a sensor read timeout timer that had been implemented. The sensor is present on production hardware but not on the eval board which caused something to hang somewhere I couldn&amp;#39;t locate.&lt;/p&gt;
&lt;p&gt;This wasn&amp;#39;t difficult to fix but was ferociously hard to diagnose. I enabled RTT but, oddly, this made the issue go away. There were also no significant messages related to the failure even with the log level set to debug. I only managed to figure it out by systematically commenting out chunks of code until things started working and narrowing it down from there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14 printf() Issue</title><link>https://devzone.nordicsemi.com/thread/100634?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 12:51:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ed83f38-cbc0-4aed-b1e9-26d7359d204c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Which compiler are you using? Have you tested the &lt;em&gt;retarget.c&lt;/em&gt; file from SDK 13 1.alpha to see if the issue is related to this file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14 printf() Issue</title><link>https://devzone.nordicsemi.com/thread/100633?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2017 20:15:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1afb3074-1f4d-4c5e-9feb-0702e2f311da</guid><dc:creator>operator</dc:creator><description>&lt;p&gt;Hi Jørgen, this is a port of an existing, custom SDK 13.0.0-1alpha project, where printf() is working just fine.&lt;/p&gt;
&lt;p&gt;The UART portion is based heavily upon the ble_app_uart example from SDK 14.0.0.&lt;/p&gt;
&lt;p&gt;The results are the same on Tera Term, Realterm, and minicom.
Any of these terminals correctly displays the initial printf() calls from main() so I&amp;#39;m reasonably certain the issue isn&amp;#39;t on the terminal side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 14 printf() Issue</title><link>https://devzone.nordicsemi.com/thread/100632?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2017 12:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f7d2330-ce88-481f-8d82-ba3cfbef5857</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I&amp;#39;m not able to reproduce this issue. Is this based off some example in the SDK, or is it a custom project? Which terminal software are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>