<?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 debug HardFault Blinky project with openocd</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55380/nrf51822-debug-hardfault-blinky-project-with-openocd</link><description>Hi, I am trying to debug the blinky project with Eclipse, openocd and st-link. No softdevice. This is the output I am using. 
 I am finally able to see the leds blinking in a custom board but if I try to debug the application I always get hardfault. </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 27 Feb 2020 16:26:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55380/nrf51822-debug-hardfault-blinky-project-with-openocd" /><item><title>RE: nrf51822 debug HardFault Blinky project with openocd</title><link>https://devzone.nordicsemi.com/thread/236959?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 16:26:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1429c0d1-4c34-466c-8918-d7e3d474775e</guid><dc:creator>manuwind</dc:creator><description>&lt;p&gt;I fianlly got a DK52, SES and project done! a different story...&lt;br /&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 debug HardFault Blinky project with openocd</title><link>https://devzone.nordicsemi.com/thread/224788?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 16:36:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:487b5a73-754f-4df4-8006-6e8cdfa667c3</guid><dc:creator>manuwind</dc:creator><description>&lt;p&gt;I will try and let you know, thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 debug HardFault Blinky project with openocd</title><link>https://devzone.nordicsemi.com/thread/224716?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 12:05:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0143f4c0-5683-4a2a-9036-0a51eb71596f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I do not know why OpenOCD debugger connected makes the chip hardfault.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Trying to look around in the devzone for similar old issues shows that many of them got this problem solved after a mass erase.&lt;/p&gt;
&lt;p&gt;Normally I would not suggest to do a mass erase on production chips, but, if yours is a development kit then you can try the solutions mentioned &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/6918/programming-nrf51822-with-openocd-and-stlink-v2-issues"&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 debug HardFault Blinky project with openocd</title><link>https://devzone.nordicsemi.com/thread/224674?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2019 10:30:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f551a31-2866-45d8-aadc-880de07beb55</guid><dc:creator>manuwind</dc:creator><description>&lt;p&gt;Hi, Any clue of why the application runs without debugging but crashes when I launch the debugger?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 debug HardFault Blinky project with openocd</title><link>https://devzone.nordicsemi.com/thread/224397?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 11:30:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82d27b2e-307c-49dd-804d-24a7ec324804</guid><dc:creator>manuwind</dc:creator><description>&lt;p&gt;Thank you for your reply. As I mentioned, it is the blinky project from the SDK 11. I am using the Board 20006 for the nrf51822.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 debug HardFault Blinky project with openocd</title><link>https://devzone.nordicsemi.com/thread/224329?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2019 08:18:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6778c75b-c03c-41e9-a186-87cd087434bd</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;What is your application? is it using some RTOS ? I am not expert in OpenOCD, but I think based on the hardfault address we should be able to figure out what is going on inside your application.&lt;/p&gt;
&lt;p&gt;Normally when you see signal handler at 0xffffff9, then it means that your PC tried to execute some code from the end of the stack. Normally happens when&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;you have a stack overflow&amp;nbsp;&lt;/li&gt;
&lt;li&gt;or when you are trying to derefer some pointers that are not properly initialized.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>