<?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>Step-by-step guide to printf on NRF51</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10197/step-by-step-guide-to-printf-on-nrf51</link><description>Hi, 
 I can&amp;#39;t seem to get printf working on the ble_app_cts_c example. I can&amp;#39;t seem to find a definitive step-by-step guide as to how to get this working. Any help would be much appreciated. 
 Some more info: 
 I am using the main.c and retarget.c</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Nov 2015 09:15:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10197/step-by-step-guide-to-printf-on-nrf51" /><item><title>RE: Step-by-step guide to printf on NRF51</title><link>https://devzone.nordicsemi.com/thread/37838?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2015 09:15:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fee842d8-f3c2-4c2b-a5c0-5b69aa060dd9</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Great that you got it working. Could you close the case or accept my answer by clicking the grey circle next to it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Step-by-step guide to printf on NRF51</title><link>https://devzone.nordicsemi.com/thread/37837?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2015 16:17:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9613416e-d088-4dda-aa98-0c999c42d3f8</guid><dc:creator>RPDben</dc:creator><description>&lt;p&gt;Turns out the last error was because I was mismatching the Baud rates. Thanks for helping me get something out, I will try and debug why it wasn&amp;#39;t working initially.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Step-by-step guide to printf on NRF51</title><link>https://devzone.nordicsemi.com/thread/37836?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2015 16:12:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7d0fd0b-3dc4-4d07-ba1f-ce81853da472</guid><dc:creator>RPDben</dc:creator><description>&lt;p&gt;I tried re-setting up Termite and am now getting the output that is in the main question as a screenshot.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Step-by-step guide to printf on NRF51</title><link>https://devzone.nordicsemi.com/thread/37835?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2015 16:05:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22503deb-fb9c-4747-a09a-a0206e8b231f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;As I said in my answer Debug (printf) Viewer does not work on nRF51 because it doesn&amp;#39;t have ITM. The tutorial I linked to explains how to set up Termite.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Step-by-step guide to printf on NRF51</title><link>https://devzone.nordicsemi.com/thread/37834?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2015 15:59:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f491b3ba-7508-40a6-9208-cf1a8bc5536a</guid><dc:creator>RPDben</dc:creator><description>&lt;p&gt;I have just downloaded and tried with SDK 10.0.0 and still nothing comes up in Debug (printf) viewer I assume for the same reason as before. Nothing also comes up if I try Termite. What terminal are you using to view this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Step-by-step guide to printf on NRF51</title><link>https://devzone.nordicsemi.com/thread/37833?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2015 15:35:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e9b5a86-e6bd-43a6-9501-24ebe4e2f892</guid><dc:creator>RPDben</dc:creator><description>&lt;p&gt;Which terminal are you talking about? The Kiel built-in one that I mentioned?&lt;/p&gt;
&lt;p&gt;I am using SDK 9.0.0 with softdevice 8.0.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Step-by-step guide to printf on NRF51</title><link>https://devzone.nordicsemi.com/thread/37832?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2015 15:33:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79a8e85a-ab28-4997-8030-5b005fe9d983</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I just tested the ble_app_cts_c example from SDK 10.0.0. The printf works out of the box, CTS Start! appears in the terminal. Maybe you can explain a bit more about what you are doing? What version of the SDK are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Step-by-step guide to printf on NRF51</title><link>https://devzone.nordicsemi.com/thread/37840?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2015 15:11:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0da68caa-b9c7-4592-9746-b7e9a7917790</guid><dc:creator>RPDben</dc:creator><description>&lt;p&gt;I have this working already, I specifically wanted to get printf working. Is it not possible to use printf with the nrf51? The reason for this is I want to use the example as-is, without having to change every single printf function (there are a lot!).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Step-by-step guide to printf on NRF51</title><link>https://devzone.nordicsemi.com/thread/37839?ContentTypeID=1</link><pubDate>Wed, 11 Nov 2015 15:04:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71081543-fe57-44c7-9c00-f99a381742f7</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;&lt;a href="http://www.keil.com/support/man/docs/uv4/uv4_db_dbg_serialwin.htm"&gt;It seems the Debug Viewer uses ITM:&lt;/a&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The Debug (printf) Viewer is a special
serial window that can exchange data
with the microcontoller. For Cortex-M
microcontrollers, the window displays
printf-data received from the
Instrumentation Trace Macrocell (ITM).
With some special target code (see
CMSIS) data can be sent to a Cortex-M
microcontroller.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The CPU in nRF51 doesn&amp;#39;t include an ITM, the CPU in nRF52 has it, but I haven&amp;#39;t tested this functionality myself.&lt;/p&gt;
&lt;p&gt;You can send your printf-data through the virual com port provided by the Segger chip, and see it in a terminal on your computer.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/tutorials/4/testing-and-using-a-simple-ble-application/"&gt;This&lt;/a&gt; tutorial should be helpful to you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>