<?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>9160 Resetting</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94428/9160-resetting</link><description>Developing on nrf9160 using NCS 2.1.2 and MFW 1.3.3, is there any sort of Hard Fault detection and handler besides the k_sys_fatal_error_handler hook in lib/fatal_error/fatal_error.c ? We&amp;#39;re seeing resets again on a non-secure build for the nrf9160 that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Dec 2022 21:21:36 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94428/9160-resetting" /><item><title>RE: 9160 Resetting</title><link>https://devzone.nordicsemi.com/thread/400476?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 21:21:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:952a99d0-d873-4175-9932-4f8206d39d26</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Happy to know you find the cause.&amp;nbsp;Thanks for the update.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 9160 Resetting</title><link>https://devzone.nordicsemi.com/thread/400470?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2022 18:23:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae5e66d5-9e43-44cc-ac36-12f00b8366f8</guid><dc:creator>Benjamin</dc:creator><description>&lt;p&gt;It appears that a 3rd party library we are using is causing the reset. They are investigating this now.&lt;/p&gt;
&lt;p&gt;I have tried setting CONFIG_REBOOT=n and it still resets and doesn&amp;#39;t go through the fatal error handler. I&amp;#39;m wondering if it ends up being a NULL pointer exception because we are running non-secure and I read that non-secure doesn&amp;#39;t properly catch NULL pointer exceptions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 9160 Resetting</title><link>https://devzone.nordicsemi.com/thread/399537?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2022 20:14:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e2d2c89-f086-41d3-ad15-ceb731fbfe21</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Håkon is out of the office, so I take this case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nRF9160 performs a &amp;quot;Soft reset&amp;quot; when AIRCR.SYSRESETREQ is set.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/pmureset.html"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf9160/pmureset.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Do you have any more logs or outputs from when this happens? It would be useful if you could capture a modem trace from when this type of reset occurs.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you able to reproduce the issue when using nRF9160 DK?&lt;/p&gt;
&lt;p&gt;Which nRF9160 SiP revision are you using? Is the SiP marked &amp;#39;B0&amp;#39; or &amp;#39;B1&amp;#39;?&lt;/p&gt;
&lt;p&gt;Would you be able to share the schematic? Has anyone at Nordic performed an HW review? We do this for free on the part of the design related to nRF parts.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is this a custom board? Is it battery-powered? Have you measured the VDD voltage level?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Looking at the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/power.html?cp=2_0_0_4_6_0_0_13#register.RESETREAS"&gt;RESETREAS register&lt;/a&gt;, we can see that this reset reason is an&amp;nbsp;SREQ(software/soft reset, i.e.&amp;nbsp;NVIC_SystemReset()), so your code likely runs into an error and resets.&amp;nbsp;&lt;/span&gt;&lt;span&gt;To debug this further, try:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_RESET_ON_FATAL_ERROR=n&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_DEBUG=y&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You could also try:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;CONFIG_REBOOT=n&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Please keep in mind that the reset reason register is not cleared automatically. You will have to clear it in order to know whether it has happened again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 9160 Resetting</title><link>https://devzone.nordicsemi.com/thread/398837?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 19:46:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5aae8bd7-51f8-4147-aa88-52e440e3d10b</guid><dc:creator>Benjamin</dc:creator><description>&lt;p&gt;I&amp;#39;m not seeing the `&lt;span class="pl-c1"&gt;&lt;/span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;LOG_INF(&amp;quot;Modem has faulted, re-initializing&amp;quot;);&lt;/pre&gt;&lt;span&gt;` message at all. I&amp;#39;ll try on a debugger in a bit. This is what the debug output looks like:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/Screen-Shot-2022_2D00_12_2D00_02-at-12.38.47-PM.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As you can see, there is no message or error printed out at all. This will happen over and over. The reset reason is the RR value, which you can see is&amp;nbsp;0x00010000, which is&amp;nbsp;&lt;code&gt;AIRCR.SYSRESETREQ&lt;/code&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: 9160 Resetting</title><link>https://devzone.nordicsemi.com/thread/398814?ContentTypeID=1</link><pubDate>Fri, 02 Dec 2022 16:16:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87255c20-7e4f-4438-9f20-0794718fb59d</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]Could it be the modem setting a reset?[/quote]
&lt;p&gt;it&amp;#39;s possible. The is a hard fault handler &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/2797a7acb70d8f6d7b2fcc6391b3dabaf45d11b7/lib/nrf_modem_lib/fault.c#L31"&gt;in the modem lib&lt;/a&gt;. Have you checked if this is causing it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>