<?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>Retargeting</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5486/retargeting</link><description>Hi, I&amp;#39;m a bit of a newbie to C and embedded programming. I&amp;#39;m using the ARM Crossworks IDE right now and trying to get the HRM_RX example working on my PCA10028 board. I&amp;#39;ve imported the code and when ever I attempt to compile it, I get the following errors</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Feb 2015 20:56:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5486/retargeting" /><item><title>RE: Retargeting</title><link>https://devzone.nordicsemi.com/thread/19149?ContentTypeID=1</link><pubDate>Tue, 10 Feb 2015 20:56:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14f03d33-923f-4e7f-b455-1640a6f1ed01</guid><dc:creator>Nkrause</dc:creator><description>&lt;p&gt;Many thanks! That got it compiling correctly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retargeting</title><link>https://devzone.nordicsemi.com/thread/19147?ContentTypeID=1</link><pubDate>Tue, 10 Feb 2015 01:28:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:599a780c-a4c7-4a0a-af69-5bccafc75738</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;For anyone else using Crossworks, here are their instructions for input/output, and as I said you can also use the segger RTT library ..&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.rowleydownload.co.uk/arm/documentation/libc_customizing_putchar.htm"&gt;Crossworks putchar instructions&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retargeting</title><link>https://devzone.nordicsemi.com/thread/19146?ContentTypeID=1</link><pubDate>Mon, 09 Feb 2015 13:15:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea6739b4-e60d-48af-b40e-98b2055bf97f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nkrause,&lt;/p&gt;
&lt;p&gt;the retarget.c library is simply overwriting the stdio library such as fputc, fgetc with UART command. I&amp;#39;m not sure how to do it with Crosswork, but you can&amp;#39;t, you can simply remove retarge.c and replace those commands to print log with direct UART command to send and receive data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retargeting</title><link>https://devzone.nordicsemi.com/thread/19150?ContentTypeID=1</link><pubDate>Mon, 09 Feb 2015 08:07:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7a69a2b-0f54-40cc-887f-257867eb0529</guid><dc:creator>Marcel Mulder</dc:creator><description>&lt;p&gt;If you want to be able to use app_trace or want to be able to printf to the UART you need retarget.c.&lt;/p&gt;
&lt;p&gt;I think it has something to do with the c library you are using but I don&amp;#39;t know anything about Crossworks. I use the arm toolchain from &lt;a href="https://launchpad.net/gcc-arm-embedded"&gt;launchpad&lt;/a&gt;. This includes a newlib nano implementation that works fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retargeting</title><link>https://devzone.nordicsemi.com/thread/19148?ContentTypeID=1</link><pubDate>Sun, 08 Feb 2015 06:18:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bf5cd14-e7de-45e8-b935-516dbdfd26b8</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Remove retarget.c, you don&amp;#39;t need it.&lt;/p&gt;
&lt;p&gt;Edit:&lt;/p&gt;
&lt;p&gt;If you want to send output to the UART then there&amp;#39;s an example in the Crossworks manual of how to do that, you customise __putchar() you don&amp;#39;t need, nor can you use, retarget.c which has definitions for GCC or ARM libraries only. The manual also shows you how to output to the Crossworks console (very useful). It doesn&amp;#39;t tell you how to use the Segger &amp;quot;RTT&amp;quot; library, but Crossworks works natively with that as well giving you a very easy way to output data right out of the JLink. You just follow the instructions you can find online at Segger for RTT and that too appears in the console.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>