<?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>How should I correctly compile origial &amp;quot;nRF_Segger_RTT&amp;quot;?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/15049/how-should-i-correctly-compile-origial-nrf_segger_rtt</link><description>Hi all, 
 I followed the tutorial listed below:
 devzone.nordicsemi.com/.../ 
 I want to use SEGGER_RTT_printf but I always get this error:
Error: L6218E: Undefined symbol SEGGER_RTT_printf (referred from main.o). 
 
 However,
a senior enginneer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Jul 2016 13:23:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/15049/how-should-i-correctly-compile-origial-nrf_segger_rtt" /><item><title>RE: How should I correctly compile origial "nRF_Segger_RTT"?</title><link>https://devzone.nordicsemi.com/thread/57429?ContentTypeID=1</link><pubDate>Thu, 28 Jul 2016 13:23:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f1db275-3774-4a14-9461-682ed8edec09</guid><dc:creator>Antti</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/tutorials/6/"&gt;This tutorial&lt;/a&gt; tells you to remove retarget.c from your project, could that be why you had an issue with it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I correctly compile origial "nRF_Segger_RTT"?</title><link>https://devzone.nordicsemi.com/thread/57426?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2016 06:58:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a0f6277-ee68-4b1c-9882-f99bc4cdfc3d</guid><dc:creator>ruthertw</dc:creator><description>&lt;p&gt;The senior enginneer gives me a hint: he is using JLINK V9, and my JLNK is V8. However I do not believe what he described is the main issue.
I think incorrect content of &amp;quot;retarget.c&amp;quot; is the reason why RTT_Syscalls_KEIL.c cannot be compiled, but I do not know how to modify it.
Thank you very much for Øyvind and best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I correctly compile origial "nRF_Segger_RTT"?</title><link>https://devzone.nordicsemi.com/thread/57428?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2016 05:49:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:516052b1-06bc-4d39-a8b2-50a6d56d939c</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If you are not getting any errors and its working that should be fine. Either way for SDK 11 we have a simpler way of printing with RTT, please see Vidars answer in &lt;a href="https://devzone.nordicsemi.com/question/80757/rtt-logging-no-output-in-sdk-11/"&gt;this post&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I correctly compile origial "nRF_Segger_RTT"?</title><link>https://devzone.nordicsemi.com/thread/57427?ContentTypeID=1</link><pubDate>Thu, 14 Jul 2016 02:28:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc9389ec-3912-4cf3-b780-58b7c49d353b</guid><dc:creator>ruthertw</dc:creator><description>&lt;p&gt;Dear Øyvind, hello, I got no error,but one warning,&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;compiling nrf_assert.c...
compiling nrf_log.c...
compiling retarget.c...
compiling RTT_Syscalls_KEIL.c...
compiling SEGGER_RTT.c...
compiling SEGGER_RTT_printf.c...
............\external\segger_rtt\SEGGER_RTT_printf.c(300): warning:  #111-D: statement is unreachable
default:  goto FilterFieldWidth;                   break;
............\external\segger_rtt\SEGGER_RTT_printf.c: 1 warning, 0 errors
compiling softdevice_handler.c...
assembling arm_startup_nrf51.s...
compiling system_nrf51.c...
linking...&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Could it be the issue of the content of &amp;quot;retarget.c&amp;quot; ?
However, this is using codes of JLINK&amp;#39;s segger_rtt.
thank you very much and best regards~&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I correctly compile origial "nRF_Segger_RTT"?</title><link>https://devzone.nordicsemi.com/thread/57424?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2016 06:42:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a1c197c-2b93-45e0-8018-a2083aec3a21</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;What error are you getting?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I correctly compile origial "nRF_Segger_RTT"?</title><link>https://devzone.nordicsemi.com/thread/57425?ContentTypeID=1</link><pubDate>Wed, 13 Jul 2016 01:50:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8eee1c53-cb36-424e-a376-c68765fb9abe</guid><dc:creator>ruthertw</dc:creator><description>&lt;p&gt;Dear Øyvind,
hello,
yes, I have copied the syscalls folder from the RTT download.
SEGGER_RTT_printf works well for me now, but &amp;quot;RTT_Syscalls_KEIL.c&amp;quot; still cannot be compiled.
I have asked that senior enginneer again and again, he still does not wanna answer my question.
thank you very much and best regards~&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I correctly compile origial "nRF_Segger_RTT"?</title><link>https://devzone.nordicsemi.com/thread/57421?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 10:39:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b2669f3-b413-4b6a-af85-fa09d5f36925</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;And you have copied the syscalls folder from the RTT download?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I correctly compile origial "nRF_Segger_RTT"?</title><link>https://devzone.nordicsemi.com/thread/57420?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 09:20:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f1c1c6f-a3f0-48b5-a5ad-f60749bfa6ef</guid><dc:creator>ruthertw</dc:creator><description>&lt;p&gt;I have added these to Include paths:
C:\Keil_v5\ARM\Pack\NordicSemiconductor\Syscalls;
C:\Keil_v5\ARM\Pack\NordicSemiconductor\RTT;
............\external\segger_rtt;
however,
I still cannot compile &amp;quot;RTT_Syscalls_KEIL.c&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I correctly compile origial "nRF_Segger_RTT"?</title><link>https://devzone.nordicsemi.com/thread/57422?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 06:52:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef77407b-42d8-4a30-ae56-eb7f1f3495df</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Add &lt;code&gt;C:\Keil_v5\ARM\Pack\NordicSemiconductor\Syscalls&lt;/code&gt; to the path&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I correctly compile origial "nRF_Segger_RTT"?</title><link>https://devzone.nordicsemi.com/thread/57423?ContentTypeID=1</link><pubDate>Tue, 12 Jul 2016 02:28:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a27d39b3-e437-4b81-aec0-e77e4efde379</guid><dc:creator>ruthertw</dc:creator><description>&lt;p&gt;Thanks for Øyvind, it solves parts of warnings!
I find that I should overwrite correct version of source codes with original JLINK&amp;#39;s segger_rtt.
However, I still cannot compile &amp;quot;RTT_Syscalls_KEIL.c&amp;quot;. (shown as the picture updated above.)
Thank you and best regards~&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I correctly compile origial "nRF_Segger_RTT"?</title><link>https://devzone.nordicsemi.com/thread/57419?ContentTypeID=1</link><pubDate>Mon, 11 Jul 2016 11:47:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c0b9a28-de37-4017-ac3b-3ab0776b496c</guid><dc:creator>&amp;#216;yvind Karlsen</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This error occurs when you have not added the paths for the .h files.&lt;/p&gt;
&lt;p&gt;You need to add the path for RTT as described in the tutorial&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3782.Options_5F00_for_5F00_target.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4747.Path_5F00_config.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;This path is &lt;code&gt;C:\Keil_v5\ARM\Pack\NordicSemiconductor\RTT&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>