<?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>nRF52 Hard Faults on Stack Push</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12859/nrf52-hard-faults-on-stack-push</link><description>I&amp;#39;m debugging on an nRF52832 (nRF52-DK, non-preview) using the ARM GCC toolchain and GDB under Eclipse on Ubuntu 14.04LTS, set up following the devzone tutorial . 
 At various points, the processor jumps to the HardFault_Handler when plain-vanilla function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Dec 2019 14:38:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12859/nrf52-hard-faults-on-stack-push" /><item><title>RE: nRF52 Hard Faults on Stack Push</title><link>https://devzone.nordicsemi.com/thread/223965?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2019 14:38:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b853821-5c8e-4bf0-854a-f7b8a7472beb</guid><dc:creator>tikonen</dc:creator><description>&lt;p&gt;I encountered this same problem but my fault was incorrectly configured RAM size (namely too large&amp;nbsp;RAM_PH_SIZE in Segger studio &amp;quot;Section placement macros&amp;quot;.). My application would crash on startup initialization before reaching main().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 Hard Faults on Stack Push</title><link>https://devzone.nordicsemi.com/thread/48921?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 13:54:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:639996c6-0865-4078-9a9c-f407675e65c4</guid><dc:creator>D. Rea</dc:creator><description>&lt;p&gt;@vidar thank you, I can&amp;#39;t share the project without approval, but (see possible answer below) I may have found a major debugger config issue. Not sure it is the true root cause, but I haven&amp;#39;t experienced any push hard faults since fixing it. Will keep this thread updated...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 Hard Faults on Stack Push</title><link>https://devzone.nordicsemi.com/thread/48923?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 13:51:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b406e6c-dd06-4f5f-962e-42f0447b81cb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Thanks for the update. Agree in that it should have thrown an error rather than a warning which is easy to miss.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 Hard Faults on Stack Push</title><link>https://devzone.nordicsemi.com/thread/48922?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 13:45:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6aa67f38-1da4-4f92-95b9-b83a065c953e</guid><dc:creator>D. Rea</dc:creator><description>&lt;p&gt;I found one possible issue, but have not confirmed it is the true root cause of this behavior:&lt;/p&gt;
&lt;p&gt;In my debug configuration, the debugger&amp;#39;s &amp;quot;Device Name&amp;quot; field was still set to an nRF51 device, resulting in a mismatch between the expected core and the core identified by the J-Link. (Aside: this should have thrown an error on debugger startup, not just a warning message!)&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Connecting to target...WARNING:
Identified core does not match
configuration. (Found: Cortex-M4,
Configured: Cortex-M0)&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I changed the Device Name to &amp;quot;nRF52832_xxAA&amp;quot; per the Segger list of supported device names, and have not experienced the hard fault since. Will keep this thread updated if I encounter the HardFault issue again...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 Hard Faults on Stack Push</title><link>https://devzone.nordicsemi.com/thread/48920?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 13:45:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34754490-b7f3-4191-abef-b5b0347f38e6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Are you able to share your project so I can try to debug it here at my end? You can create a new ticket on &lt;a href="https://www.nordicsemi.com/eng/Support-Community"&gt;mypage&lt;/a&gt; if you don&amp;#39;t want to make it public.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 Hard Faults on Stack Push</title><link>https://devzone.nordicsemi.com/thread/48919?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 13:41:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed9d7ff9-dae5-4ba1-a8dd-ce7797b72169</guid><dc:creator>D. Rea</dc:creator><description>&lt;p&gt;Yes, I am using the nRF5x SDK release 11...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52 Hard Faults on Stack Push</title><link>https://devzone.nordicsemi.com/thread/48918?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2016 13:05:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e057923b-72e7-405f-98b5-673049421a1e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi, just to make sure, but you are using SDK 11.0.0 and not 0.9.2 or the alpha release?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>