<?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>Spurious fault reboot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73257/spurious-fault-reboot</link><description>Custom board, ncs v1.4.0, modem FW v1.2.3, SES v5.34a. The code is based on the Asset Tracker (v1), LTE with PSM, motion-activated GPS, using MQTT to send messages to private backend. 
 I&amp;#39;m having some random reboot issues. I set a breakpoint on sys_reboot</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Apr 2021 15:04:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73257/spurious-fault-reboot" /><item><title>RE: Spurious fault reboot</title><link>https://devzone.nordicsemi.com/thread/302860?ContentTypeID=1</link><pubDate>Thu, 01 Apr 2021 15:04:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9df98cd-9928-46ec-9eb2-ac24dac19a19</guid><dc:creator>spline_pete</dc:creator><description>&lt;p&gt;The update of ncs from v1.4.0 to v1.5.0 seems to have fixed the issue of spurious faults.&amp;nbsp; I ran a couple units overnight and there weren&amp;#39;t any MQTT disconnects or reboots, which was the case just recently.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Spurious fault reboot</title><link>https://devzone.nordicsemi.com/thread/302423?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 15:16:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f6cdb78-b28d-4acc-bfa9-17861b7da4e9</guid><dc:creator>Didrik Rokhaug</dc:creator><description>[quote user="spline_pete"]CONFIG_LOG=n[/quote]
&lt;p&gt;&amp;nbsp;Sorry, that should be &amp;#39;y&amp;#39;, not &amp;#39;n&amp;#39;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I&amp;#39;ve edited my original post so that it is now correct.&lt;/p&gt;
[quote user="spline_pete"]Do you have an example of what I should expect to see?[/quote]
&lt;p&gt;&amp;nbsp;Here is an example where I am writing to a NULL pointer:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
SPM: NS image at 0x8000
SPM: NS MSP at 0x2001bca0
SPM: NS reset vector at 0xbb95
SPM: prepare to jump to Non-Secure image.
*** Booting Zephyr OS build v2.4.99-ncs1  ***
Starting GPS application
[00:00:00.207,763] [1B][1;31m&amp;lt;err&amp;gt; os: Exception occurred in Secure State[1B][0m
[00:00:00.214,324] [1B][1;31m&amp;lt;err&amp;gt; os: ***** HARD FAULT *****[1B][0m
[00:00:00.219,848] [1B][1;31m&amp;lt;err&amp;gt; os:   Fault escalation (see below)[1B][0m
[00:00:00.226,074] [1B][1;31m&amp;lt;err&amp;gt; os: ***** BUS FAULT *****[1B][0m
[00:00:00.231,536] [1B][1;31m&amp;lt;err&amp;gt; os:   Precise data bus error[1B][0m
[00:00:00.237,243] [1B][1;31m&amp;lt;err&amp;gt; os:   BFAR Address: 0x50008158[1B][0m
[00:00:00.243,133] [1B][1;31m&amp;lt;err&amp;gt; os: r0/a1:  0x00000019  r1/a2:  0x00000000  r2/a3:  0x00000000[1B][0m
[00:00:00.251,770] [1B][1;31m&amp;lt;err&amp;gt; os: r3/a4:  0x00000000 r12/ip:  0x00000000 r14/lr:  0x00009aed[1B][0m
[00:00:00.260,406] [1B][1;31m&amp;lt;err&amp;gt; os:  xpsr:  0x41000000[1B][0m
[00:00:00.265,594] [1B][1;31m&amp;lt;err&amp;gt; os: s[ 0]:  0x00000000  s[ 1]:  0x00000000  s[ 2]:  0x00000000  s[ 3]:  0x00000000[1B][0m
[00:00:00.275,970] [1B][1;31m&amp;lt;err&amp;gt; os: s[ 4]:  0x00000000  s[ 5]:  0x00000000  s[ 6]:  0xffffffff  s[ 7]:  0xffffffff[1B][0m
[00:00:00.286,315] [1B][1;31m&amp;lt;err&amp;gt; os: s[ 8]:  0x00000000  s[ 9]:  0x00000001  s[10]:  0x00000000  s[11]:  0xffffffff[1B][0m
[00:00:00.296,691] [1B][1;31m&amp;lt;err&amp;gt; os: s[12]:  0x00000000  s[13]:  0x00000000  s[14]:  0x00000000  s[15]:  0x00000000[1B][0m
[00:00:00.307,067] [1B][1;31m&amp;lt;err&amp;gt; os: fpscr:  0xb873db2f[1B][0m
[00:00:00.312,255] [1B][1;31m&amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x00009aee[1B][0m
[00:00:00.320,129] [1B][1;31m&amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 0: CPU exception on CPU 0[1B][0m
[00:00:00.327,911] [1B][1;31m&amp;lt;err&amp;gt; os: Current thread: 0x20018a98 (unknown)[1B][0m
[00:00:00.334,655] [1B][1;31m&amp;lt;err&amp;gt; os: Halting system[1B][0m&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Spurious fault reboot</title><link>https://devzone.nordicsemi.com/thread/302412?ContentTypeID=1</link><pubDate>Mon, 29 Mar 2021 14:35:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5930a8c3-aeed-46d2-84b2-7399e254ac27</guid><dc:creator>spline_pete</dc:creator><description>&lt;p&gt;With these set:&lt;/p&gt;
&lt;p&gt;CONFIG_LOG=n&lt;br /&gt;CONFIG_LOG_IMMEDIATE=y&lt;br /&gt;CONFIG_RESET_ON_FATAL_ERROR=n&lt;/p&gt;
&lt;p&gt;I still see reboots, but there are no fault handler messages.&amp;nbsp; Do you have an example of what I should expect to see?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Spurious fault reboot</title><link>https://devzone.nordicsemi.com/thread/302175?ContentTypeID=1</link><pubDate>Fri, 26 Mar 2021 14:43:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1816e22-cb61-4e05-9469-81488311ded2</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]There&amp;#39;s nothing helpful in the call stack.[/quote]
&lt;p&gt;&amp;nbsp;If you step a bit further through the fault handler, it should eventually give you more information.&lt;/p&gt;
&lt;p&gt;In addition, setting CONFIG_RESET_ON_FATAL_ERROR=n and CONFIG_LOG=y should make the fault handler print out an error message.&lt;/p&gt;
&lt;p&gt;CONFIG_LOG_IMMEDIATE=y can be used to disable deferred logging, so that all log messages gets printed where they are in the code. That way, you will not miss any yet-to-be-printed log messages.&lt;/p&gt;
&lt;p&gt;Remember that you have to use &amp;#39;Project -&amp;gt; Run CMake...&amp;#39; or re-open the project for changes to prj.conf or other configuration files to take effect when using SES.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>