<?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>nRF51422 QFAAE0 SDK available?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1452/nrf51422-qfaae0-sdk-available</link><description>I have been developing on a nrF51422 QFAAC0 chipset. That chipset required SDK 4.4 for soft device capability. 
 I requested the latest silicon (so I could develop against the new API of 5.1 and use the reprogrammable soft device) from my sales representative</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 26 Jan 2014 04:42:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1452/nrf51422-qfaae0-sdk-available" /><item><title>RE: nRF51422 QFAAE0 SDK available?</title><link>https://devzone.nordicsemi.com/thread/6499?ContentTypeID=1</link><pubDate>Sun, 26 Jan 2014 04:42:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2289f355-6a66-4c62-bb9a-036e38318460</guid><dc:creator>David Smoot</dc:creator><description>&lt;p&gt;So a coworker much smarter than me solved the problem and it was an easy fix once he explained.&lt;/p&gt;
&lt;p&gt;The problem was that the size of the soft device was bigger than the GCC linker scripts state in SDK 5.1.  So if you use GCC like I do, when you try to write a program with a soft device present it will try to load it at a protected address and fail.  So it turns out to be a painfully simple fix to get GCC to load at the proper addresses.&lt;/p&gt;
&lt;p&gt;Note that this is not thoroughly tested, but it went from not loading code at all with a soft device present using GCC to successfully loading and running the Ant broadcast TX example.  I am not a Nordic employee so I might be doing something wrong here.  Use at your own risk but this worked for me.&lt;/p&gt;
&lt;p&gt;To enable the S210 soft device with GCC on the nrf51422 on SDK 5.1 with QFAAE0 silicon:  Edit the file gcc_nrf51_s210_xxaa.ld under nrf51422/Source/templates/gcc.
Original file lines 7 and 8:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  FLASH (rx) : ORIGIN = 0x0000A000, LENGTH = 216K
  RAM (rwx) : ORIGIN = 0x20000800, LENGTH = 14K
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Modified file lines 7 and 8:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  FLASH (rx) : ORIGIN = 0x0000C000, LENGTH = 208K
  RAM (rwx) : ORIGIN = 0x20000900, LENGTH = 13K
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It is a simple fix in hindsight but I could not see it.  Thankfully I have a very smart coworker that solves my problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>