<?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>Hardfault - nrf51</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9805/hardfault---nrf51</link><description>I&amp;#39;m having a weird hardfault and, I can&amp;#39;t make sense of it.
Here&amp;#39;s what I do know:
nrf sdk 9.0.0;
nrf51422 on a dk;
I have RTC1, SPI0, and TWI1 enabled (also a uart for logging);
I have the S130 enabled;
Priorities seem to be good; 
 Upon start</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Oct 2015 18:36:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9805/hardfault---nrf51" /><item><title>RE: Hardfault - nrf51</title><link>https://devzone.nordicsemi.com/thread/36352?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2015 18:36:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f028219-b2a9-4f0e-a743-e9d5b7d101f8</guid><dc:creator>Beau R.</dc:creator><description>&lt;p&gt;Thank you for the tip and the acknowledgement that my logic is sound. My link register from the stack was pointing to a instruction in disassembly for outputting characters via UART. I&amp;#39;m going to do some more digging, I&amp;#39;m sure I&amp;#39;m doing something illogical somewhere. I&amp;#39;m noticing that it&amp;#39;s failing directly after a ble connection message receive event.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hardfault - nrf51</title><link>https://devzone.nordicsemi.com/thread/36351?ContentTypeID=1</link><pubDate>Mon, 19 Oct 2015 16:16:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b10843b-20fe-42d4-acd8-027b87161ba6</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;That analysis seems correct. It&amp;#39;s possible that you did jump to 0x00000002 and tried executing code which then caused a hardfault. What&amp;#39;s at SP+0x14? That&amp;#39;s the link register at the time of the exception, ie the return address for the last function called before whatever caused the hardfault. Perhaps that might give you a clue where you came from and how you got there.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>