<?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>How to catch the source of a Reset ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/34434/how-to-catch-the-source-of-a-reset</link><description>Hi all, 
 I have a functional FW, which is running properly 99 % of the time. But sometimes I have some RESET with RESETREAS register set to SREQ, but I&amp;#39;m not able to find the source of this reset ! 
 I can reproduce similar case under debugger, with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 May 2018 10:48:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/34434/how-to-catch-the-source-of-a-reset" /><item><title>RE: How to catch the source of a Reset ?</title><link>https://devzone.nordicsemi.com/thread/133397?ContentTypeID=1</link><pubDate>Fri, 25 May 2018 10:48:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a184ad3-00d3-480e-85dd-bb662d969dd0</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Ok, let me know what you find after adding more logging around the SystemReset() calls.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to catch the source of a Reset ?</title><link>https://devzone.nordicsemi.com/thread/133287?ContentTypeID=1</link><pubDate>Thu, 24 May 2018 14:50:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:385bd858-a84a-4909-ab5a-6dea2187a264</guid><dc:creator>ThierryC</dc:creator><description>&lt;p&gt;Thanks for your answer.&lt;br /&gt;&lt;br /&gt;First information, I use SDK 12.3 and SD132v3&lt;/p&gt;
&lt;p&gt;This is a custom FW, so not directly derived from SDK examples. So I don&amp;#39;t have app_error_fault_handler, but something similar. I&amp;#39;ll put some more loging, especially around SystemReset() calls.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to catch the source of a Reset ?</title><link>https://devzone.nordicsemi.com/thread/133183?ContentTypeID=1</link><pubDate>Thu, 24 May 2018 09:25:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eb5b8be-99ec-4186-954b-61cd65598034</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Thierry,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;you are correct that the SREQ bit is only set when a SoftReset has been performed, i.e.&amp;nbsp;sd_nvic_SystemReset() or NVIC_SystemReset().&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I assume that you&amp;#39;re debugging the application(not the BL) when you reproduce the issue?&amp;nbsp; Have you disabled optimization to ensure that you do not remove any debug information. Are you checking if you&amp;#39;re ending up in the&amp;nbsp; app_error_fault_handler in app_error_fault_handler?&lt;/p&gt;
&lt;p&gt;Lastly, which SDK and SoftDevice versions are you using?&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>