<?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>Softdevice Random Hardfault at 0x00001398</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81113/softdevice-random-hardfault-at-0x00001398</link><description>Hello, 
 We are currently using softdevice version 7.0.1 and SDK version 16.0.0. We are having difficulty nailing down a rare hard faulting bug. Very rarely, the device will run for an undetermined length of time then hardfault. However, most of the time</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Oct 2021 09:06:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81113/softdevice-random-hardfault-at-0x00001398" /><item><title>RE: Softdevice Random Hardfault at 0x00001398</title><link>https://devzone.nordicsemi.com/thread/336375?ContentTypeID=1</link><pubDate>Thu, 28 Oct 2021 09:06:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd40537b-dfc6-43b3-8efa-9df0c11b35a0</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;It&amp;#39;s not something we have seen before, the theory is that there is a bug in the application (rather than the softdevice), and the bug corrupts the callstack and somehow return to wrong address on exception return. This theory might be strengthen if you also experience other hardfaults, are they allways CAFEBABE in PC and 0x1398 in LR.. or if there is sometimes other content.&lt;/p&gt;
&lt;p&gt;You may check if you have any application interrupts at all above SVC priority.. those should be prio 2 or 3, since prio 0 and 1 is reserved by the SD, and prio 4 is what the SVC is using.&lt;/p&gt;
&lt;p&gt;I think if you experience the problem again you should try to read out the hardfault status registers, this might help understand what actually caused the hardfault.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice Random Hardfault at 0x00001398</title><link>https://devzone.nordicsemi.com/thread/336290?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 18:00:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:692d3546-d0d3-4920-9011-095af7f82d5d</guid><dc:creator>SteamingGizmo</dc:creator><description>&lt;p&gt;We are using the NRF52832 rev. AAEO with softdevice variant s132 running version 7.0.1.&lt;br /&gt;We do not write or modify the MWU peripheral.&lt;br /&gt;&lt;br /&gt;Unfortunately this was the only time we have been able to catch this hardfault with the debugger connected.&lt;br /&gt;I didn&amp;#39;t realize you could save the state with the ozone debugger, I will do this if I am able to catch it in action again.&lt;br /&gt;As such, I do not have a full register dump or call stack to look over anymore.&lt;br /&gt;&lt;br /&gt;When I did catch it, I was able to see 0xFFFFFFFE in the link register.&lt;br /&gt;Ozone displayed one level up in the call stack, which had a the register values of&lt;br /&gt; PC: 0xCAFEBABE&amp;nbsp;&lt;br /&gt;LR: 0x00001398&lt;br /&gt;&lt;br /&gt;I know this isn&amp;#39;t much information to work with, but any idea on direction would be immensely helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Softdevice Random Hardfault at 0x00001398</title><link>https://devzone.nordicsemi.com/thread/336184?ContentTypeID=1</link><pubDate>Wed, 27 Oct 2021 11:47:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a34fe691-4964-41fd-928f-af3d7a6aec7d</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you specify which nRF52-variant you are using and which softdevice variant you are using?&lt;/p&gt;
&lt;p&gt;Do your application ever write to or modify the MWU peripheral?&lt;/p&gt;
&lt;p&gt;Also,&amp;nbsp;are you able to do a full register dump and/or callstack?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>