<?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>nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54918/nrf9160-hard-fault-on-boot</link><description>I&amp;#39;m compiliing against version 1.1.0 of the ncs, and my device have the mfw 1.1.0 firmware running. 
 When starting the device, I get the following output: 
 
 This is not very informative, and I would like pointers on how to proceed.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Dec 2019 08:26:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54918/nrf9160-hard-fault-on-boot" /><item><title>RE: nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/thread/222952?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2019 08:26:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da80fa80-5da1-4058-887d-eb3f77acc6ff</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Glad I could help to solve the issue! &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/thread/222918?ContentTypeID=1</link><pubDate>Sun, 01 Dec 2019 20:46:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd954eb0-f68c-4d88-b871-35f38af2b06e</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;I done what you asked, and enabled the watchdog the same way the wd was disabled, in the prj.conf file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It runs now, thank you for all your effort, this is not too easy debug &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/thread/222846?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 14:41:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72bc99b5-edc3-4999-aa8b-0557357f86f1</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;I&amp;#39;ve spoken to my colleagues.&amp;nbsp;&lt;span&gt;We narrowed it down to the WDT configuration not&amp;nbsp;&lt;/span&gt;&lt;span&gt;executing.&lt;/span&gt; and the issue is most likely that the WDT is not enabled in SPM.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To solve this, you have to&amp;nbsp;configure&amp;nbsp;SPM.&amp;nbsp;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Navigate to your &lt;em&gt;CmakeLists.txt&lt;/em&gt; in your project, and the following line&amp;nbsp;just below the “&lt;em&gt;cmake_minimum_required(…)&lt;/em&gt;” and save the file:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;set(spm_CONF_FILE
    prj.conf
    ${CMAKE_CURRENT_LIST_DIR}/spm.conf
    )
&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;Next, you need to create the file &lt;em&gt;spm.conf&lt;/em&gt; in your application folder&lt;/li&gt;
&lt;li&gt;Add the following line to &lt;em&gt;spm.conf:&lt;br /&gt;&lt;/em&gt;&lt;em&gt;CONFIG_SPM_NRF_WDT_NS=y&lt;/em&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Let me know how that works for you.&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/thread/222817?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 12:58:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ecfb56e-ba2f-4c1b-8d0e-a14abffd0be0</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;Yes, I need a watchdog timer; so it is enabled. Disabling it in the prj.conf file:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Watchdog
CONFIG_WATCHDOG=n
#CONFIG_WDT_LOG_LEVEL_DBG=n
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This makes the project to run. How to proceed on enabling the WDT?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/thread/222802?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 12:37:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a75ebd6-4f20-4d97-a0bf-4288b606209b</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Ok, this gives us something at least. Line 8 of your response, &lt;strong&gt;reent.c&lt;/strong&gt;. What is this? It does not give any information about line number, so difficult to say what this is.&lt;br /&gt;&lt;br /&gt;Line number 11 points to nrfx_wdt.c and line 90:&amp;nbsp;&lt;br /&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrf_wdt_reload_value_set((p_config-&amp;gt;reload_value * 32768) / 1000);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Is the WDT enabled in your system? If so, can you please try to disable this? To see if you are able to run.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/thread/222787?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 12:12:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3907d2e7-c06b-401f-b3dc-70857de81d35</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;I have the following addresses available:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[11.29 11.51.56.915][00:00:00.487,854] &amp;lt;err&amp;gt; os:   Precise data bus error
[11.29 11.51.56.915][00:00:00.487,854] &amp;lt;err&amp;gt; os:   BFAR Address: 0x4001850c
[11.29 11.51.56.915][00:00:00.487,884] &amp;lt;err&amp;gt; os: r0/a1:  0x00000009  r1/a2:  0x000208d5  r2/a3:  0x40018000
[11.29 11.51.56.948][00:00:00.487,884] &amp;lt;err&amp;gt; os: r3/a4:  0x00000009 r12/ip:  0x000217fc r14/lr:  0x0003cbf5
[11.29 11.51.56.948][00:00:00.487,915] &amp;lt;err&amp;gt; os:  xpsr:  0x40015000
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have the following responses:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\Users\tron&amp;gt;c:\gnuarmemb\bin\arm-none-eabi-addr2line.exe -e c:\nrfTest-1.1\ncs\nrf\samples\tron\udp_gps\build_01\zephyr\zephyr.elf 0x4001850c
??:0

C:\Users\tron&amp;gt;c:\gnuarmemb\bin\arm-none-eabi-addr2line.exe -e c:\nrfTest-1.1\ncs\nrf\samples\tron\udp_gps\build_01\zephyr\zephyr.elf 0x40018000
??:0

C:\Users\tron&amp;gt;c:\gnuarmemb\bin\arm-none-eabi-addr2line.exe -e c:\nrfTest-1.1\ncs\nrf\samples\tron\udp_gps\build_01\zephyr\zephyr.elf 0x00038f59
reent.c:?

C:\Users\tron&amp;gt;c:\gnuarmemb\bin\arm-none-eabi-addr2line.exe -e c:\nrfTest-1.1\ncs\nrf\samples\tron\udp_gps\build_01\zephyr\zephyr.elf 0x0003cbf5
C:/nrfTest-1.1/ncs/modules/hal/nordic/nrfx/drivers/src/nrfx_wdt.c:90

C:\Users\tron&amp;gt;c:\gnuarmemb\bin\arm-none-eabi-addr2line.exe -e c:\nrfTest-1.1\ncs\nrf\samples\tron\udp_gps\build_01\zephyr\zephyr.elf 0x40015000
??:0
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I really hope this helps &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/thread/222767?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 11:21:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4712d21c-5dfb-46ba-b242-91d4f050c23a</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Ok, then we need to move to the other addresses right after BUS FAULT:&lt;br /&gt;&lt;br /&gt;[11.27 08.48.39.876][00:00:00.487,579] &amp;lt;err&amp;gt; os: BFAR Address: 0x4001850c&lt;br /&gt;[11.27 08.48.39.876][00:00:00.487,609] &amp;lt;err&amp;gt; os: r0/a1: 0x00000009 r1/a2: 0x000202e5 r2/a3: 0x40018000&lt;br /&gt;[11.27 08.48.39.876][00:00:00.487,609] &amp;lt;err&amp;gt; os: r3/a4: 0x00000009 r12/ip: 0x0002120c r14/lr: 0x00038f59&lt;br /&gt;&lt;br /&gt;Let me know if you get anything from those.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/thread/222762?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 10:56:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ee33182-52e5-42f6-b311-87a3b27447c3</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did&amp;nbsp; recompile when issue #239969 was solved, and got a new failing address:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Now, the faulting instruction is 2002b280, and issuing your command I get the response&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;C:\Users\tron&amp;gt;c:\gnuarmemb\bin\arm-none-eabi-addr2line.exe -e c:\nrfTest-1.1\ncs\nrf\samples\tron\udp_gps\build_01\zephyr\zephyr.elf 0x2002b280
??:0

C:\Users\tron&amp;gt;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Not very informative, I&amp;#39;m afraid.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/thread/222745?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 10:04:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a312d9c4-f623-45b9-aaf1-d91efb12c638</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Can you please issue the following command in your command line:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;gnuarmemb root&amp;gt;/bin/arm-none-eabi-addr2line.exe -e &amp;lt;project build folder/zephyr/zephyr.elf&amp;gt; 0xADDRESSE&amp;#160;&lt;/pre&gt;&lt;br /&gt;Where 0xADDRESSE is the Faulting instruction addres (r15/pc) &lt;strong&gt;0x20029760&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;Please note that if you have recompiled your code lately, the address may have changed. Make sure to use the latest address from the output.&amp;nbsp; The output should give an indication on the failing line and file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/thread/222734?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 09:37:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:165f445f-3888-496a-aac0-45410748f305</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;Good, thanks for keeping me informed &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f44f.svg" title="Clap"&gt;&amp;#x1f44f;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/thread/222733?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 09:35:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2371572f-fc0f-45f5-9890-2d2523d43508</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Thanks for the update on the other case, and on the &amp;quot;Heap &amp;amp; stack size&amp;quot;.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m currently working to find a&amp;nbsp;solution. Will get back to you asap.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/thread/222598?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2019 10:57:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57bebd80-d491-480e-bb88-d1094c24b920</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;Update: Case #239969 is now resolved, I&amp;#39;m able to compile and link, but the hard fault persists.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/thread/222565?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2019 10:00:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9dbb5d38-d23b-448d-a639-12d35ffc2380</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;From my prj.conf:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;# Heap and stacks
CONFIG_HEAP_MEM_POOL_SIZE=16384
CONFIG_MAIN_STACK_SIZE=8192
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=2048
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/thread/222552?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2019 09:22:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8511d9a3-e211-4967-99ae-cfc9dbae9409</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="tronwa"]Not sure what you&amp;#39;re asking for on th device version, but looking at the device, I see BAA-E2.1.8 and 11STO (or maybe 11STQ, I&amp;#39;m getting old).&amp;nbsp;[/quote]
&lt;p&gt;Ok, thanks for the information!&lt;/p&gt;
&lt;p&gt;In prj.conf of your project, can you confirm that&amp;nbsp;the following are set to:&lt;/p&gt;
&lt;div&gt;CONFIG_HEAP_MEM_POOL_SIZE=16384&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;CONFIG_MAIN_STACK_SIZE=8192&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Kind regards,&lt;/div&gt;
&lt;div&gt;Øyvind&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/thread/222535?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2019 08:30:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2f336b5-fdd1-44a5-8d6a-fede26dae04b</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Not sure what you&amp;#39;re asking for on th device version, but looking at the device, I see BAA-E2.1.8 and 11STO (or maybe 11STQ, I&amp;#39;m getting old).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve updated the nrfjprog to version to 10.5.0, but still iin the same quigmire.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It might be connected to #239969,&amp;nbsp; this is something I don&amp;#39;t know about. On the program I&amp;#39;m running on the device, I have the link problems commented out. If this might cause a problem, I&amp;#39;m not sure of. Initially it seemed like 2 independent issues to me.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/thread/222402?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 14:41:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:318458ba-138d-4539-a7fb-f34954c1292a</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hi, I see you have an ongoing case #&lt;span&gt;239969&lt;/span&gt;.&amp;nbsp;Can this issue be related to that case? If so, I suggest continuing your support there.&lt;br /&gt;&lt;br /&gt;Make sure to update your nrfjprog to the latest version 10.5.0, and retry last step. I know it&amp;#39;s timeconsuming, but we are aware of some issues related to nrfjprog.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can you also provide more information about your setup? What the device version are you working on (found physically on your device)?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/thread/222307?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 10:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05a28d07-168d-4843-8697-81336ec8824e</guid><dc:creator>Tron</dc:creator><description>&lt;p&gt;nrfjprog version:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;nrfjprog version: 10.3.0&lt;br /&gt;JLinkARM.dll version: 6.54c&lt;/p&gt;
&lt;p&gt;nrfjprog -e and reprogramming the device didn&amp;#39;t make any changes in the output.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Hard fault on boot</title><link>https://devzone.nordicsemi.com/thread/222247?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 08:54:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d2d7a15-c5a3-4d89-aeb1-6749af06d99f</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello @tronwa,&lt;/p&gt;
&lt;p&gt;can you please provide the version of nrfjprog?&amp;nbsp; This can be found issuing &lt;em&gt;nrfjprog --version&lt;br /&gt;&lt;br /&gt;&lt;/em&gt;Before programming your device, can you please issue&amp;nbsp;&lt;em&gt;nrfjprog -e&amp;nbsp;&lt;/em&gt;to&amp;nbsp;erase your board. Then try to program your device again.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>