<?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>Nordic NRF SDK v1.6: Issue with CIVETWEB on NRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76771/nordic-nrf-sdk-v1-6-issue-with-civetweb-on-nrf9160</link><description>Hello 
 I&amp;#39;m testing the Release v1.6 of NRF Connect SDK in combination with our application. On Nordic NRF Connect SDK v1.5.1 we managed to get the following setup working: 
 - nRF9160-DK with Ethernet shield from Phytec attached to it. 
 - Civetweb </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Jul 2021 11:59:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76771/nordic-nrf-sdk-v1-6-issue-with-civetweb-on-nrf9160" /><item><title>RE: Nordic NRF SDK v1.6: Issue with CIVETWEB on NRF9160</title><link>https://devzone.nordicsemi.com/thread/318181?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 11:59:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccd36dbe-dfcf-4fab-afcc-35adf8c661b0</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Michael,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Those stack traces and faults seems to match better.&lt;/p&gt;
&lt;p&gt;The fault is now a MPU-fault (ie: a alloc is asking for more RAM than it has), and it seems that you have already found a suspect in the net-bufs. I agree with your findings, both call stacks point to the NET stack slab memory on both scenarios:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/master/subsys/net/ip/net_pkt.c#L112-L113"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/master/subsys/net/ip/net_pkt.c#L112-L113&lt;/a&gt;&amp;nbsp;(expands to _k_mem_slab_buf_rx_pkts)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Adjusting the NET_BUF_*X_COUNT should fix these two faults, but I think you&amp;#39;re on the right track to also&amp;nbsp;keep an eye on the stack size as well.&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: Nordic NRF SDK v1.6: Issue with CIVETWEB on NRF9160</title><link>https://devzone.nordicsemi.com/thread/318157?ContentTypeID=1</link><pubDate>Thu, 01 Jul 2021 11:02:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d0ba965-4706-49f8-97c7-8ab5bba3e6c0</guid><dc:creator>mglettig</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/76771/nordic-nrf-sdk-v1-6-issue-with-civetweb-on-nrf9160/317966#317966"]&lt;p&gt;There&amp;#39;s a helper function you can enable via CONFIG_SPM_SERVICE_NS_HANDLER_FROM_SPM_FAULT introduced with this PR: &lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/3933"&gt;https://github.com/nrfconnect/sdk-nrf/pull/3933&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;[/quote]
&lt;p&gt;FYI: I need to apply the following patch to compile with this flag:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;diff --git a/lib/fatal_error/fatal_error.c b/lib/fatal_error/fatal_error.c
index 8d35a27c6..4d234199a 100644
--- a/lib/fatal_error/fatal_error.c
+++ b/lib/fatal_error/fatal_error.c
@@ -14,7 +14,7 @@
 #include &amp;lt;secure_services.h&amp;gt;
 #endif
 
-LOG_MODULE_REGISTER(fatal_error, CONFIG_FATAL_ERROR_LOG_LEVEL);
+LOG_MODULE_REGISTER(fatal_error, 1);
 
 extern void sys_arch_reboot(int type);
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;For me it looked like the console output was still the same with this option enabled:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[00:00:18.230,072] &amp;lt;err&amp;gt; os: ***** MPU FAULT *****
[00:00:18.250,762] &amp;lt;err&amp;gt; os:   Instruction Access Violation
[00:00:18.272,277] &amp;lt;err&amp;gt; os: r0/a1:  0x00000000  r1/a2:  0xe000ed00  r2/a3:  0x2002a730
[00:00:18.296,356] &amp;lt;err&amp;gt; os: r3/a4:  0x00000001 r12/ip:  0x00000001 r14/lr:  0x0005a0b1
[00:00:18.320,434] &amp;lt;err&amp;gt; os:  xpsr:  0x60000000
[00:00:18.340,881] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x20035f18
[00:00:18.364,135] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
[00:00:18.387,298] &amp;lt;err&amp;gt; os: Current thread: 0x20019c78 (unknown)
[00:00:18.429,382] &amp;lt;err&amp;gt; fatal_error: Halting system
&lt;/pre&gt;&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/76771/nordic-nrf-sdk-v1-6-issue-with-civetweb-on-nrf9160/317966#317966"]If you debug the secure image (spm/zephyr/zephyr.elf) and break on the hardfault handler (or other fault handlers, like z_arm_fatal_error())[/quote]
&lt;p&gt;I set a breakpoint in z_arm_fatal_error(). Then when the error occurred I got the following call stack:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1625137286666v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;The other time I tried it I got the following callstack:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1625138848184v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;--&amp;gt; here I noticed that the buffer that is generated in pkt_alloc has an address of&amp;nbsp;0x2b083 which seems to be invalid.&lt;/p&gt;
&lt;p&gt;Next I will try to tweak the&amp;nbsp;following values:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;CONFIG_NET_BUF_RX_COUNT&lt;/li&gt;
&lt;li&gt;CONFIG_NET_BUF_TX_COUNT&lt;/li&gt;
&lt;li&gt;CONFIG_NET_RX_STACK_SIZE&lt;/li&gt;
&lt;li&gt;CONFIG_NET_TX_STACK_SIZE&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic NRF SDK v1.6: Issue with CIVETWEB on NRF9160</title><link>https://devzone.nordicsemi.com/thread/317966?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 12:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1af237ef-000e-4327-95ba-36de026626ce</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Michael,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="mglettig"][00:00:32.181,610] &amp;lt;err&amp;gt; os: Exception occurred in Secure State[/quote]
&lt;p&gt;If you debug the secure image (spm/zephyr/zephyr.elf) and break on the hardfault handler (or other fault handlers, like z_arm_fatal_error())&lt;/p&gt;
&lt;p&gt;in that image, you should be able to figure out what the failure is (reading the &amp;quot;esf&amp;quot; or &amp;quot;esf_copy&amp;quot; variable).&lt;/p&gt;
&lt;p&gt;There&amp;#39;s a helper function you can enable via CONFIG_SPM_SERVICE_NS_HANDLER_FROM_SPM_FAULT introduced with this PR: &lt;a href="https://github.com/nrfconnect/sdk-nrf/pull/3933"&gt;https://github.com/nrfconnect/sdk-nrf/pull/3933&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It could also be beneficial to disable the reset on fault via. &amp;quot;CONFIG_RESET_ON_FATAL_ERROR=n&amp;quot; for both spm and your applications prj.conf.&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: Nordic NRF SDK v1.6: Issue with CIVETWEB on NRF9160</title><link>https://devzone.nordicsemi.com/thread/317936?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 11:13:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:96dc7196-51f8-45b1-b415-3606c881daa3</guid><dc:creator>mglettig</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon&lt;/span&gt;&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/76771/nordic-nrf-sdk-v1-6-issue-with-civetweb-on-nrf9160/317890#317890"]The line numbers in civetweb.c indicates that you&amp;#39;re on a newer version than what was tagged out for ncs v1.6.0. Have you manually updated this?[/quote]
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You are right I was using a newer version of civetweb. But I reverted now to what is officially fetched with ncs v1.6.0.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Since I&amp;#39;m now calling mg_start from a POSIX thread the initial problem is resolved. That means that the mg_start is successful. However the first time I access the webserver I get the following crash:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;[00:00:32.181,610] &amp;lt;err&amp;gt; os: Exception occurred in Secure State&lt;br /&gt;[00:00:32.203,460] &amp;lt;err&amp;gt; os: ***** HARD FAULT *****&lt;br /&gt;[00:00:32.224,243] &amp;lt;err&amp;gt; os: Fault escalation (see below)&lt;br /&gt;[00:00:32.245,727] &amp;lt;err&amp;gt; os: ***** BUS FAULT *****&lt;br /&gt;[00:00:32.266,418] &amp;lt;err&amp;gt; os: Precise data bus error&lt;br /&gt;[00:00:32.287,384] &amp;lt;err&amp;gt; os: BFAR Address: 0x50008158&lt;br /&gt;[00:00:32.308,563] &amp;lt;err&amp;gt; os: r0/a1: 0x000011a9 r1/a2: 0x00000000 r2/a3: 0x00000000&lt;br /&gt;[00:00:32.332,641] &amp;lt;err&amp;gt; os: r3/a4: 0x00000000 r12/ip: 0x4ad7ff9d r14/lr: 0x00018fa3&lt;br /&gt;[00:00:32.356,689] &amp;lt;err&amp;gt; os: xpsr: 0x06165200&lt;br /&gt;[00:00:32.377,166] &amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x00059992&lt;br /&gt;[00:00:32.400,390] &amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 0: CPU exception on CPU 0&lt;br /&gt;[00:00:32.423,522] &amp;lt;err&amp;gt; os: Current thread: 0x2001b578 (idle 00)&lt;br /&gt;[00:00:32.465,606] &amp;lt;err&amp;gt; os: Halting system&lt;/p&gt;
&lt;p&gt;I did not yet manage to find the location of where this crash occurs. Do you have a suggestion on how to make use of the fault information to find the source for the BUS FAULT? Or is it possible to configure the J-Link debugger in a way that it stops immediately when the HARD Fault occurs?&lt;/p&gt;
&lt;p&gt;By the way my idle stack size is pretty big:&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_IDLE_STACK_SIZE=2048&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Please note that I needed to apply the following patch in civetweb because it doesn&amp;#39;t allocate enough stack for the worker threads:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;diff --git a/src/civetweb.c b/src/civetweb.c
index 909a93a9..580ac4a6 100644
--- a/src/civetweb.c
+++ b/src/civetweb.c
@@ -186,7 +186,7 @@ mg_static_assert(sizeof(void *) &amp;gt;= sizeof(int), &amp;quot;data type size check&amp;quot;);
 #if defined(USE_STACK_SIZE) &amp;amp;&amp;amp; (USE_STACK_SIZE &amp;gt; 1)
 #define ZEPHYR_STACK_SIZE USE_STACK_SIZE
 #else
-#define ZEPHYR_STACK_SIZE 8096
+#define ZEPHYR_STACK_SIZE 16*1024
 #endif
 
 K_THREAD_STACK_DEFINE(civetweb_main_stack, ZEPHYR_STACK_SIZE);
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic NRF SDK v1.6: Issue with CIVETWEB on NRF9160</title><link>https://devzone.nordicsemi.com/thread/317890?ContentTypeID=1</link><pubDate>Wed, 30 Jun 2021 08:35:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6764db5a-afc8-4778-8017-0426b3445ec1</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Michael,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The line numbers in civetweb.c indicates that you&amp;#39;re on a newer version than what was tagged out for ncs v1.6.0. Have you manually updated this?&lt;/p&gt;
&lt;p&gt;If you revert to the git hash that was used in ncs v1.6.0 (which is the same as the git hash in ncs v1.5.1), do you experience the same issues?&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: Nordic NRF SDK v1.6: Issue with CIVETWEB on NRF9160</title><link>https://devzone.nordicsemi.com/thread/317703?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 12:14:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03315b5f-9d83-4ec9-bbac-68e36208d115</guid><dc:creator>mglettig</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&amp;nbsp;&lt;/span&gt;&lt;span&gt;H&amp;aring;kon&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m one step further. I guess that the calling thread of mg_start (the one that starts civetweb webserver) needs to be a POSIX thread. It looks like civetweb is expecting this because it&amp;nbsp;uses&amp;nbsp;&lt;pre class="ui-code" data-mode="text"&gt;struct posix_thread *thread = (struct posix_thread *)pthread_self();&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I guess than it&amp;#39;s kind of a coincidence that it works on QEMU and it worked on SDK v1.5.1. I&amp;#39;m still working on getting it working but I will keep you posted.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Michael&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic NRF SDK v1.6: Issue with CIVETWEB on NRF9160</title><link>https://devzone.nordicsemi.com/thread/317642?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 09:10:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91c07f0b-07b2-4f10-86f5-172e81a47570</guid><dc:creator>mglettig</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi&amp;nbsp;&lt;/span&gt;&lt;span&gt;H&amp;aring;kon&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For me it looks like one entry is invalid in the thread-&amp;gt;key_list. This is when the debugger hits&amp;nbsp;pthread_setspecific the first time:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Overview.png" /&gt;&lt;/p&gt;
&lt;p&gt;Now this are the individual iterations in the for loop:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Loop1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Loop2.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Loop3.png" /&gt;&lt;/p&gt;
&lt;p&gt;I guess 0x6f727245 is an invalid address. Is that correct? Could this issue have anything to do with THREAD_LOCAL_STORAGE support? I noticed that this is disabled on my target due to lack of support for it from the toolchain.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michael&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic NRF SDK v1.6: Issue with CIVETWEB on NRF9160</title><link>https://devzone.nordicsemi.com/thread/317605?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 07:02:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9374b761-206b-4dd7-8f00-0d54ebfdf2e6</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi Michael,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My apologies, this was also shown in your initial picture, which just flew by me, unfortunately. This line seems to be causing issues for you:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/master/lib/posix/pthread_key.c#L96"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/master/lib/posix/pthread_key.c#L96&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the stack frames, you should be able to right-click and select this specific frame, allowing you to peek at the variables at the time of the fault occurring. The value of thread_spec_data (and .key member) is very interesting here.&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: Nordic NRF SDK v1.6: Issue with CIVETWEB on NRF9160</title><link>https://devzone.nordicsemi.com/thread/317551?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 16:41:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32bd4a53-ad37-4486-881c-231e5b40128c</guid><dc:creator>mglettig</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;H&amp;aring;kon&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks for the help. Increasing the main stack size didn&amp;#39;t help. I increased the stack up to 16 kB. Resolving the address pointed me to the module pthread_key:96&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/opt/toolchains/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-addr2line -e build/zephyr/zephyr.elf 0x0001a684
/opt/zephyrproject/zephyr/lib/posix/pthread_key.c:96
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is inline with what the debugger was showing me.&lt;/p&gt;
&lt;p&gt;Do you have any idea why the error happens on the target and doesn&amp;#39;t happen in QEMU. It would also help if we could figure out due to which change from v1.5.1 to v1.6.0 the error was introduced.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Michael&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic NRF SDK v1.6: Issue with CIVETWEB on NRF9160</title><link>https://devzone.nordicsemi.com/thread/317394?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 07:42:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8488560-504b-47d6-b9d4-657b2bddf1b7</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;The thread that is failing looks to be your main thread. Did you try adjusting the CONFIG_MAIN_STACK_SIZE?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&lt;p&gt;&lt;span&gt;Could you help me to narrow down the issue? How can I use the exception information to figure out more about the issue?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;&amp;nbsp;You can use arm-none-eabi-addr2line -e build/zephyr/zephyr.elf 0xFAULTING_ADDR to see if it gives a hint on where in your src the fault occurred.&lt;/p&gt;
&lt;p&gt;The content of PC and LR is in the flash, so you can try to do a lookup on those addresses&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;arm-none-eabi-addr2line -e build/zephyr/zephyr.elf 0x1a60b&lt;/pre&gt;&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>