<?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>NRF51 fails when flashing: Target halted (PC = 0xFFFFFFFE)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14227/nrf51-fails-when-flashing-target-halted-pc-0xfffffffe</link><description>Hi all, 
 I&amp;#39;m having a tight deadline upcoming and have run into an anoying problem. 
 I&amp;#39;m using this NRF51 breakout board: ohtcom.com/.../nrf51-m0-module 
I ordered a couple of devices from ebay a while back, and I tried soldering wires onto one of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 04 Jun 2016 02:17:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14227/nrf51-fails-when-flashing-target-halted-pc-0xfffffffe" /><item><title>RE: NRF51 fails when flashing: Target halted (PC = 0xFFFFFFFE)</title><link>https://devzone.nordicsemi.com/thread/54347?ContentTypeID=1</link><pubDate>Sat, 04 Jun 2016 02:17:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79c839ba-7e46-4c7e-b207-4019b09ccc08</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;@RK, Yes, I did saw your answers.  They are very elaborated.  perhaps he didn&amp;#39;t read through.  I just tried resume it short and sweet :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 fails when flashing: Target halted (PC = 0xFFFFFFFE)</title><link>https://devzone.nordicsemi.com/thread/54346?ContentTypeID=1</link><pubDate>Sat, 04 Jun 2016 02:05:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed2f4ad7-cdae-4199-9408-c010d9859ce1</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Yes this is what I&amp;#39;ve told him twice now ..&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 fails when flashing: Target halted (PC = 0xFFFFFFFE)</title><link>https://devzone.nordicsemi.com/thread/54345?ContentTypeID=1</link><pubDate>Sat, 04 Jun 2016 01:39:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3aa32ed-318c-47d3-9e0e-ef0b78b77087</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Old rev can still runs with SDK8, not an issue.  The problem your are having it that your linker script is for the 32KB RAM while you new chip only have 16KB RAM.  Therefore your stack pointer is in no man&amp;#39;s land.  Your code will never get past the reset vector.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 fails when flashing: Target halted (PC = 0xFFFFFFFE)</title><link>https://devzone.nordicsemi.com/thread/54344?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2016 10:04:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d15574d-5d82-4ae4-b284-84d3abe85d1a</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Just to be clear the SDK/Softdevice incompatibility, whilst an issue, most likely &lt;em&gt;isn&amp;#39;t&lt;/em&gt; the reason it&amp;#39;s not running. As I said in my original reply, you&amp;#39;ve linked for a CFAC chip which had 32kB RAM and the stack pointer has been put at the top of that region. You&amp;#39;ve then used the same binary on a CEAA which only has 16kB of RAM so the stack pointer is pointing to invalid memory, which reads as zero, so on the first return from a routine you end up in the middle of nowhere.&lt;/p&gt;
&lt;p&gt;If you linked your code for 16kB, if it that&amp;#39;s even enough memory, it would probably at least run, after a fashion. It wouldn&amp;#39;t be production worthy, I wouldn&amp;#39;t recommend it, but it would probably run.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 fails when flashing: Target halted (PC = 0xFFFFFFFE)</title><link>https://devzone.nordicsemi.com/thread/54348?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2016 08:36:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1a1a2c4-3739-4eaa-9642-4b9e625990e7</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Answer to edit:&lt;/p&gt;
&lt;p&gt;Old &lt;a href="http://developer.nordicsemi.com/nRF5_SDK/"&gt;SDK&lt;/a&gt;. Old &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF51822#Downloads"&gt;S110&lt;/a&gt;. Regarding whether or not your SDK V8.0.0 will run on old chips please read my answer in &lt;a href="https://devzone.nordicsemi.com/question/51868/nrf51-51822-ic-revision-1-qfaba0-with-sdk-810/"&gt;this thread&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 fails when flashing: Target halted (PC = 0xFFFFFFFE)</title><link>https://devzone.nordicsemi.com/thread/54352?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2016 08:18:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a95786e5-8b5f-4066-80d4-40582b2c7d65</guid><dc:creator>Texton</dc:creator><description>&lt;p&gt;Please check edit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 fails when flashing: Target halted (PC = 0xFFFFFFFE)</title><link>https://devzone.nordicsemi.com/thread/54350?ContentTypeID=1</link><pubDate>Thu, 02 Jun 2016 08:18:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d92f8fa2-0488-48c5-92aa-ececfe423f13</guid><dc:creator>Texton</dc:creator><description>&lt;p&gt;Please check edit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 fails when flashing: Target halted (PC = 0xFFFFFFFE)</title><link>https://devzone.nordicsemi.com/thread/54351?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2016 23:43:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc64d110-633d-4c7f-8450-51a8e763032b</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Chip version on that cheap board is what? Where&amp;#39;s the stack pointer in your code? Return to FFFFFFFE often means the SP isn&amp;#39;t actually pointing to real memory, you&amp;#39;ve popped off 0x00000000 and tried to return to it and are dead.&lt;/p&gt;
&lt;p&gt;The fact that GDB is trying to read from 0z20007FFC also indicates something is pointing to memory up there, memory that only the QFAC chips actually have on them. Do you have a QFAC chip, where is your stack?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 fails when flashing: Target halted (PC = 0xFFFFFFFE)</title><link>https://devzone.nordicsemi.com/thread/54349?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2016 22:56:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a46d4233-a7d9-4d3b-85f4-4645891e6088</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Check loader script.  Different version of SD has different address for app firmware.  Look very much like you have the wrong address&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>