<?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>What can cause a Hardfault and how to catch it</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12291/what-can-cause-a-hardfault-and-how-to-catch-it</link><description>Hi 
 I am investigating some weird issue where a device sometimes locks up: it is BLE connected to my iphone app, and then I bombard it with writes to a specific characteristic, to which I get a response via a notification on another characteristic.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Mar 2016 21:50:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12291/what-can-cause-a-hardfault-and-how-to-catch-it" /><item><title>RE: What can cause a Hardfault and how to catch it</title><link>https://devzone.nordicsemi.com/thread/46461?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 21:50:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a95053f-ecd0-43ff-bed5-76240abf41b4</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;This is a good resource, but you should also note that the SoftDevice will trigger a HardFault purposefully when a stack fault happens. Before it happens, the fault handler given to &lt;code&gt;sd_softdevice_enable&lt;/code&gt; should be called though. If this is not the case, it&amp;#39;s one of the default ARM HardFault reasons (unaligned access or overflow most likely).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What can cause a Hardfault and how to catch it</title><link>https://devzone.nordicsemi.com/thread/46460?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 18:05:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e783880-a9d9-4097-9a4c-c5103ef1d7eb</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Hard Faults and their handling are part of the ARM Architecture - not specific to Nordic.&lt;/p&gt;
&lt;p&gt;I collected some references here: &lt;a href="https://community.arm.com/thread/5414"&gt;community.arm.com/.../5414&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;When working with ARM Cortex-M, you should certainly have a copy of Joseph Yiu&amp;#39;s &lt;em&gt;&amp;quot;Definitive Guide&amp;quot;&lt;/em&gt; book - they have sections about fault handling ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What can cause a Hardfault and how to catch it</title><link>https://devzone.nordicsemi.com/thread/46459?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 16:41:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6c354ac-b9c8-429d-8941-9cb89194cb36</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;There has been a lot of post regarding it. I am just pointing to few of them.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/45680/how-can-i-distinguish-the-reason-for-hardfault/"&gt;post 1&lt;/a&gt;&lt;br /&gt;
&lt;a href="https://devzone.nordicsemi.com/question/41106/how-to-trace-back-hard-fault-handler/"&gt;post 2&lt;/a&gt;&lt;br /&gt;
&lt;a href="https://devzone.nordicsemi.com/blogs/821/an-introduction-to-error-handling-in-nrf5-projects/"&gt;tutorial 1&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>