<?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>analyze reboot reason</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79632/analyze-reboot-reason</link><description>Hello 
 
 in order to analyze reboot reson (HW \ SW) I use the following: 
 
 in case of kernel crash I usually get coldstack print, in this case I can analyze and understand the issue, this case is OK 
 
 in other cases I just get reset device, without</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Sep 2021 10:21:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79632/analyze-reboot-reason" /><item><title>RE: analyze reboot reason</title><link>https://devzone.nordicsemi.com/thread/329573?ContentTypeID=1</link><pubDate>Wed, 15 Sep 2021 10:21:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a117fd54-4d2c-45e2-9fe8-0315fa0bd9e1</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="kamacode"]one option: HW releted reset, may be due to the power cunsumption peaks of the modem[/quote]
&lt;p&gt;&amp;nbsp;This will show the reset value of RESETREAS, which is &amp;quot;none&amp;quot; in your implementation as it is now.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="kamacode"]&lt;p&gt;as I said, on some cases I do get failure and then kernel error prints , followed by resset. that&amp;#39;s easy to analyze, I can always read crash prints, look at the map file , find the code in the relevant address and fix the issue&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;the problem is that some of the time I just get a reset without any warning.&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;To catch this, you need to debug the actual failure, and not the reset cause. The fault itself might cause the serial print to fail.&lt;/p&gt;
&lt;p&gt;Try adding blocking assertions (for debug reasons), by setting CONFIG_RESET_ON_FATAL_ERROR=n (do this for secure region as well) and see if you can catch the fault.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: analyze reboot reason</title><link>https://devzone.nordicsemi.com/thread/329431?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 12:09:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a43905c-c0ed-43a7-b24e-55ff4a7ce474</guid><dc:creator>kamacode</dc:creator><description>&lt;p&gt;no, I do not get a print .&lt;/p&gt;
&lt;p&gt;as I said, on some cases I do get failure and then kernel error prints , followed by resset. that&amp;#39;s easy to analyze, I can always read crash prints, look at the map file , find the code in the relevant address and fix the issue&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;the problem is that some of the time I just get a reset without any warning.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;one option: HW releted reset, may be due to the power cunsumption peaks of the modem&lt;/p&gt;
&lt;p&gt;second option: some SW related reset&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;si I would like to know how can I best use the&amp;nbsp;&lt;span&gt;RESETREAS and any other means I have to analyze reset cause and source&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;thank you&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: analyze reboot reason</title><link>https://devzone.nordicsemi.com/thread/329427?ContentTypeID=1</link><pubDate>Tue, 14 Sep 2021 12:04:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24f1da96-2cc5-4254-9157-aea47cc092aa</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;in case I get &amp;quot;DOG&amp;quot;, ok reason is clear, but usually I get &amp;quot;SREQ&amp;quot;, what does it mean?&amp;nbsp;&lt;/p&gt;[/quote]
&lt;p&gt;That is a soft reset, usually via firmware triggered reset (NVIC_SystemReset()):&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/power.html?cp=2_0_0_4_2_0_0_13#register.RESETREAS"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf9160/power.html?cp=2_0_0_4_2_0_0_13#register.RESETREAS&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;The default behavior when you get an assertion or a fault in zephyr is to print the failure on serial and then do a soft-reset. Do you get a printed failure message or similar before it rebooted?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>