<?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>NRF52 DK RTT printf Problem</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11033/nrf52-dk-rtt-printf-problem</link><description>Hi, 
 I recently purchased the NRF52 DK. I&amp;#39;m using the ble_uart_example for the SDK 11. I&amp;#39;m using the softdevice PCA10040. 
 I noticed the the SDK 11 includes the RTT c and h files there, so I don&amp;#39;t need to worry about using the tutorial. 
 I want</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 19 Jul 2017 19:13:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11033/nrf52-dk-rtt-printf-problem" /><item><title>RE: NRF52 DK RTT printf Problem</title><link>https://devzone.nordicsemi.com/thread/41253?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 19:13:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efdbe2f7-5292-426f-9bc6-291b0643e173</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;That is in the form of a command line argument to the compiler, add it to your Makefile.  It must be defined when the NRF log files (from the SDK) are compiled, because that is where it is referenced.  Just speaking in general, I don&amp;#39;t know the specifics.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DK RTT printf Problem</title><link>https://devzone.nordicsemi.com/thread/41252?ContentTypeID=1</link><pubDate>Wed, 19 Jul 2017 15:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e2bc4eb-2ba1-4bbb-a22b-e57d249327be</guid><dc:creator>khan_khan</dc:creator><description>&lt;p&gt;in which file we should add -DNRF_LOG_USES_RTT=1 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DK RTT printf Problem</title><link>https://devzone.nordicsemi.com/thread/41254?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2017 12:39:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5e2091b-6894-4b01-9abf-5d001b640233</guid><dc:creator>AnjaliR</dc:creator><description>&lt;p&gt;Thanks for mentioning the difference. Even I had made all the respective changes in sdk_config.h believing it should compile. But only  -DNRF_LOG_USES_RTT=1 works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DK RTT printf Problem</title><link>https://devzone.nordicsemi.com/thread/41251?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 13:00:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e63d269-ed80-4432-a58f-a8e1742e346d</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;I think this is a bug in the SDK.  I don&amp;#39;t see why Nordic has chosen to add &amp;quot;#ifdef NRF_LOG_USES_RTT&amp;quot; to SEGGER&amp;#39;s source file.  Whatever the compiler generates, the linker should omit if it is not referenced.  If you download from SEGGER (as answered above), the file does not have that #ifdef.  Then assuming I am wrong and there is a need for that, shouldn&amp;#39;t Nordic have also added #include &amp;quot;sdk_config.h&amp;quot;, which is where &amp;quot;#define NRF_LOG_USES_RTT 1&amp;quot; should be defined, by Nordics own convention?  In other words, adding -DNRF_LOG_USES_RTT=1 works, but is not the documented way of configuring.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DK RTT printf Problem</title><link>https://devzone.nordicsemi.com/thread/41250?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 15:09:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:714435f2-d118-4dcc-9eed-ff80ed0405b6</guid><dc:creator>Raphael</dc:creator><description>&lt;p&gt;I had the same problem. I had forgotten to add NRF_LOG_USES_RTT=1 to the makefile, i.e.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;-DNRF_LOG_USES_RTT=1
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;as a compiler flag.
Which is why the RTT code was removed by the preprocessor, resulting in the error described.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DK RTT printf Problem</title><link>https://devzone.nordicsemi.com/thread/41249?ContentTypeID=1</link><pubDate>Mon, 28 Dec 2015 14:09:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe511d7f-9e7d-451a-85f6-4c32d14a1503</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If Micheal answered your question, please accept his answer by clicking the check mark next to it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DK RTT printf Problem</title><link>https://devzone.nordicsemi.com/thread/41248?ContentTypeID=1</link><pubDate>Fri, 25 Dec 2015 21:34:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87b9270e-4e2b-44cd-b56a-fe8ac15fbbad</guid><dc:creator>byron8899</dc:creator><description>&lt;p&gt;Oh I see. Now that makes a difference.  I notice the file sizes are change.  Finally it worked.  Thank you so much.&lt;/p&gt;
&lt;p&gt;You have a very happy holidays.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DK RTT printf Problem</title><link>https://devzone.nordicsemi.com/thread/41247?ContentTypeID=1</link><pubDate>Fri, 25 Dec 2015 20:42:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:036ef1f5-ccc6-41bc-b9e9-748ff48fdfc0</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;just note that you actually have to manually copy the RTT files from the Jlink 5.10f folder to the external_librarires/segger_rtt folder in the sdk. just installing jlink wont do it. otherwise i dont know.. maybe look at retarget.c and make surenothing strange is messing things up there&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DK RTT printf Problem</title><link>https://devzone.nordicsemi.com/thread/41246?ContentTypeID=1</link><pubDate>Fri, 25 Dec 2015 20:38:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8999a817-a512-4de0-86dc-ed7677c4bd84</guid><dc:creator>byron8899</dc:creator><description>&lt;p&gt;Hi Michael,
No, I dont use GCC or IAR.  Just Keil.&lt;br /&gt;
The project is already include &amp;quot;............\components\drivers_ext\segger_rtt&amp;quot;.  I did try adding the files the you mention before,  but it gave me a bunch of L6200E errors.  I did update the Jlink to 5.10f, after I open the file, and compile the project, it still throws me an error on &amp;quot;Undefined symbol SEGGER_RTT_printf&amp;quot; .&lt;/p&gt;
&lt;p&gt;I guess I going to try uninstall everything including Keil and SEGGER.  Unless you have other ideas.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 DK RTT printf Problem</title><link>https://devzone.nordicsemi.com/thread/41245?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2015 21:22:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0092b411-7f20-47a3-8a3c-d8b25137f2b8</guid><dc:creator>Michael Dietz</dc:creator><description>&lt;p&gt;The examples worked for me. Make sure the source files SEGGER_RTT.c and SEGGER_RTT_printf.c are added to your project. You also need to add SEGGER_RTT_Syscalls_KEIL.c (which I think is your problem). If you are using GCC or IAR use the corresponding syscalls file. Once all of these source files are added to your project it should work.&lt;/p&gt;
&lt;p&gt;If it still doesnt work download the latest segger software and documentation pack from here: &lt;a href="https://www.segger.com/jlink-software.html"&gt;www.segger.com/jlink-software.html&lt;/a&gt; and use these new files instead as they are more up to date and work for me.&lt;/p&gt;
&lt;p&gt;dont define anything. you shouldnt have to and this will rpboably break something. unless you define this (NRF_LOG_USES_RTT=1 ) which has been very useful for me and is a great new feature in the nordic sdk.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>