<?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>nRF52832 SDK S132 UsageFault exception</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19758/nrf52832-sdk-s132-usagefault-exception</link><description>Hi, 
 I want to implement handler for undefined instruction fault. According to Cortex M4 documentation (ARM DUI 0553A subchapter 2.3.2 &amp;quot;Exception types&amp;quot;) this fault leads to UsageFault exception. There is a HardFault_process weak function in SDK (S132</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Feb 2017 20:43:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19758/nrf52832-sdk-s132-usagefault-exception" /><item><title>RE: nRF52832 SDK S132 UsageFault exception</title><link>https://devzone.nordicsemi.com/thread/76835?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2017 20:43:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:374b58de-1757-45f7-8214-535e936f6e61</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;At least for the GCC toolchain, see components/toolchain/gcc/gcc_startup_nrf52.S which is assembler code that defines the interrupt vectors and defines a weak UsageFault_Handler function which loops forever.   Define your own implementation (and link objects/libraries in an order where your definition overrides the weak one?)&lt;/p&gt;
&lt;p&gt;If you mean the library that Nordic provides, cd to the nrf sdk directory and &amp;quot;grep -R HardFault_process *&amp;quot; will show you an implementation exists in components/libraries/hardfault/hardfault.h etc.  And in Infocenter there is documentation about that library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>