<?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>Debugging nrf52 with printf</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9924/debugging-nrf52-with-printf</link><description>Hello, 
 I am new to working with nrf52 and was looking for a way to make printf work in a blank project that I have created. I followed the uart example for the peripheral and my main function currently looks like: 
 int main(void)
{ 
 uint32_t err_code;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Jan 2017 23:49:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9924/debugging-nrf52-with-printf" /><item><title>RE: Debugging nrf52 with printf</title><link>https://devzone.nordicsemi.com/thread/36818?ContentTypeID=1</link><pubDate>Thu, 26 Jan 2017 23:49:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcbfa3ef-b018-4680-a8f0-cbf8cba85bba</guid><dc:creator>Tong Yu</dc:creator><description>&lt;p&gt;Did you check the config.h in &amp;quot;config&amp;quot; folder? You probably need to enable UART in that file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging nrf52 with printf</title><link>https://devzone.nordicsemi.com/thread/36817?ContentTypeID=1</link><pubDate>Sat, 07 Nov 2015 00:19:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d95d5825-1e3e-4c04-b0e5-b3edb526e496</guid><dc:creator>aep</dc:creator><description>&lt;p&gt;Looks like you forgot SOFTDEVICE_HANDLER_INIT?   before that APP_UART_FIFO_INIT won&amp;#39;t work. Just debugged that myself...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging nrf52 with printf</title><link>https://devzone.nordicsemi.com/thread/36821?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2015 16:40:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54e1bb31-ed65-4050-8580-f92655665015</guid><dc:creator>Abhi</dc:creator><description>&lt;p&gt;I have followed that tutorial and have it setup, thank you very much. Just out of curiosity do you have any idea why the regular printf() that I was following did not work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging nrf52 with printf</title><link>https://devzone.nordicsemi.com/thread/36816?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2015 07:13:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e76e3cb8-2122-458b-8a40-7e17a59e0d24</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;shouldn&amp;#39;t it be similar to nRF51 printf requirement?
have you included retarget.c file in your project as printf needs few standard functions to be overridden.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging nrf52 with printf</title><link>https://devzone.nordicsemi.com/thread/36820?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2015 23:53:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b8459b6-2aba-4cbf-bbae-ac6af634c58d</guid><dc:creator>pltv</dc:creator><description>&lt;p&gt;I have used Segger RTT with great impact. A very useful tool. The only issue ofcourse is memory foot print.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Debugging nrf52 with printf</title><link>https://devzone.nordicsemi.com/thread/36819?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2015 23:36:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aab7371b-b01e-469b-84f6-cfbe05561834</guid><dc:creator>Bill Siever</dc:creator><description>&lt;p&gt;If you just need &lt;code&gt;printf()&lt;/code&gt; style debugging and are using JLink (which is used on the Nordic Developer boards), you might want to try Segger&amp;#39;s Real-Time-Terminal. See Stefan&amp;#39;s blog tutorial at: &lt;a href="https://devzone.nordicsemi.com/tutorials/6/debugging-with-real-time-terminal/"&gt;https://devzone.nordicsemi.com/tutorials/6/debugging-with-real-time-terminal/&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>