<?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>About the cause of reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55978/about-the-cause-of-reset</link><description>SDK: 15.3.0 Device: EYSHJNZWZ (nRF52832) 
 Is there a way to know the cause of the reset? 
 I connect the PC to the device and run it in debug mode. However, nothing is written to the log when the reset occurs. I want to know what caused the reset.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Jan 2020 03:05:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55978/about-the-cause-of-reset" /><item><title>RE: About the cause of reset</title><link>https://devzone.nordicsemi.com/thread/227557?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 03:05:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:623ccc4b-41ee-4536-8416-cae030f153ea</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;I tried it the way I taught.&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; It&amp;#39;s possible to know the cause of the last reset.In your code you can check the register RESETREAS to know the reset reason.&lt;br /&gt;&amp;gt;&amp;gt; Please have a look at section 18.6 in the NRF52 product specification.&lt;/p&gt;
&lt;p&gt;Indicates the &amp;quot;RESETREAS&amp;quot; status when a reset occurs.&lt;br /&gt;At this time, I intentionally reset by WDT.&lt;br /&gt;Other than &amp;quot;RESETPIN&amp;quot;, it looks like &amp;quot;NotDetected&amp;quot;.&lt;br /&gt;I assumed that &amp;quot;DOG&amp;quot; would be &amp;quot;Detected&amp;quot;.&lt;br /&gt;Is the confirmation method bad?&lt;br /&gt;Please tell me why this result.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/4604.WS000000.JPG" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;gt;&amp;gt; However, it&amp;#39;s most likely a reset when there is an assertion.&lt;br /&gt;&amp;gt;&amp;gt; Please follow this guide on how to set your device to debug mode and get the assertion reason printed out on the log: &lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-"&gt;devzone.nordicsemi.com/.../my-device-is-freezing-and-&lt;/a&gt; restarting / # 60126&lt;/p&gt;
&lt;p&gt;I caused a reset by WDT in &amp;quot;DEBUG&amp;quot; mode, but no log was output.&lt;br /&gt;Isn&amp;#39;t log output when reset by WDT?&lt;br /&gt;Please tell me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About the cause of reset</title><link>https://devzone.nordicsemi.com/thread/227555?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 02:03:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de8d6d38-0c42-4350-832a-17efe56d82e8</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;Thank you for answering.&lt;br /&gt;I will try it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About the cause of reset</title><link>https://devzone.nordicsemi.com/thread/226913?ContentTypeID=1</link><pubDate>Fri, 27 Dec 2019 10:20:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3b07a9b-3caa-427c-b8ed-2035fb4134f2</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Takashina,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s possible to know the cause of the last reset. In your code you can check the register RESETREAS to know the reset reason. Please have a look at section 18.6 in the NRF52 product specification.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However, it&amp;#39;s most likely a reset when there is an assertion. Please follow this guide on how to set your device to debug mode and get the assertion reason printed out on the log:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/#60126"&gt;https://devzone.nordicsemi.com/question/60125/my-device-is-freezing-and-restarting/#60126&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>