<?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>Unable to debug, unable to printf to see errcode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11489/unable-to-debug-unable-to-printf-to-see-errcode</link><description>Per my another question: 
 devzone.nordicsemi.com/.../ 
 I have taken the kind advice of Bj&amp;#248;rn Spockeli but to no avail. 
 I tried this solution to enter debug mode:
 devzone.nordicsemi.com/.../ 
 I followed every step, could enter the debug mode</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Jan 2016 09:29:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11489/unable-to-debug-unable-to-printf-to-see-errcode" /><item><title>RE: Unable to debug, unable to printf to see errcode</title><link>https://devzone.nordicsemi.com/thread/43391?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2016 09:29:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01edd396-f262-4449-9ce7-5f730d12ea2c</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Try using app_uart_fifo.c instead of app_uart.c. This problem often arise because of that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to debug, unable to printf to see errcode</title><link>https://devzone.nordicsemi.com/thread/43389?ContentTypeID=1</link><pubDate>Sun, 24 Jan 2016 04:23:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca44ee32-0846-4d1a-9ecb-05cd0757f7e6</guid><dc:creator>Erik</dc:creator><description>&lt;p&gt;Hello, I&amp;#39;m not sure what compiler it is since the computer I worked on is at work. But it&amp;#39;s a keil uv4, I forgot about the details.&lt;/p&gt;
&lt;p&gt;what do you mean Nordic project examples? There wasn&amp;#39;t any debug-specific project examples?&lt;/p&gt;
&lt;p&gt;Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to debug, unable to printf to see errcode</title><link>https://devzone.nordicsemi.com/thread/43392?ContentTypeID=1</link><pubDate>Sat, 23 Jan 2016 01:10:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:def28527-48bf-4b1d-a014-2ae2c95c720d</guid><dc:creator>Erik</dc:creator><description>&lt;p&gt;I understand your point, but the thing is, it will probably just print out the hexadecimal ascii code of the letter &amp;quot;E&amp;quot;, yea, it outputs only one character, no more, no less.&lt;/p&gt;
&lt;p&gt;For example, if you use &amp;quot;printf(&amp;quot;lovely day!&amp;quot;) in the specific place I mentioned in my post, not anywhere else, an character &amp;quot;l&amp;quot; will only be shown or its hexadecimal ascii code if I choose to show only hexadecimal data in my sniffer app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to debug, unable to printf to see errcode</title><link>https://devzone.nordicsemi.com/thread/43388?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2016 15:47:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab534674-daee-47ab-9e6f-2277f6791ed6</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;What compiler do you use? You probably don&amp;#39;t have correct settings in IDE for debugging. Have a look at Nordic project examples&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Unable to debug, unable to printf to see errcode</title><link>https://devzone.nordicsemi.com/thread/43390?ContentTypeID=1</link><pubDate>Fri, 22 Jan 2016 14:47:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:635c2c57-ce20-41bb-8768-68f28598b544</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;You have to format what is sent with printf. Something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;printf(&amp;quot;Error code: %d\n&amp;quot;, err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;%d means that the variable will be printed out as decimal, you can use %x if you want it to be printed out as hexadecimal. \n is newline.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>