<?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>nRF51822 GCC Eclipse HardFault in SystemInit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8139/nrf51822-gcc-eclipse-hardfault-in-systeminit</link><description>Hello all, 
 I have migrated a project that was working well (on custom hardware) in Keil to gcc/Eclipse. I followed all the instructions on this site: 
 https://devzone.nordicsemi.com/tutorials/7/development-with-gcc-and-eclipse/ 
 and except for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Jul 2015 05:44:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8139/nrf51822-gcc-eclipse-hardfault-in-systeminit" /><item><title>RE: nRF51822 GCC Eclipse HardFault in SystemInit</title><link>https://devzone.nordicsemi.com/thread/29220?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 05:44:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67c51cf4-4833-466c-8741-0166febf214e</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Right - because the GCC linker script puts the stack at the end of user memory - so if you tell it you have more memory than you do, it ends up in no-mans land. If you&amp;#39;d checked the stack pointer when running you&amp;#39;d have seen the area it pointed to was all 0xFF and you BX commands weren&amp;#39;t writing anythign there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 GCC Eclipse HardFault in SystemInit</title><link>https://devzone.nordicsemi.com/thread/29219?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 03:23:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7df13bc-2152-4014-a1b7-e2e176b475b4</guid><dc:creator>matterama</dc:creator><description>&lt;p&gt;Thank you for your suggestion.  See below, it was a dumb mistake...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 GCC Eclipse HardFault in SystemInit</title><link>https://devzone.nordicsemi.com/thread/29222?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 03:23:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42882947-6a88-40c7-9a94-91504cc0f5e0</guid><dc:creator>matterama</dc:creator><description>&lt;p&gt;THANK YOU!  I had the 32kB RAM in there....the date code on the chip had AC, which was mistakenly read as the chip type, not AA like it is!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 GCC Eclipse HardFault in SystemInit</title><link>https://devzone.nordicsemi.com/thread/29221?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 02:30:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53497e63-d5e2-4468-b986-57c0da80c359</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Check your linker script.  The RAM setting may be wrong.  I suspect the 32KB settings in the LD while your chip may have only 16KB.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 GCC Eclipse HardFault in SystemInit</title><link>https://devzone.nordicsemi.com/thread/29218?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 01:31:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39daf0f1-9951-4a26-bf3f-4e643779f397</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Where&amp;#39;s your stack pointer? Sounds like you&amp;#39;re failing on the first return from a BX which makes me wonder where it&amp;#39;s getting the address from. I assume at the start of the function it pushes r7 and lr to the stack, should be able to see where it&amp;#39;s pushed them and what they are.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>