<?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>HCI UART simultaneous advertising and scanning MPU fault</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91413/hci-uart-simultaneous-advertising-and-scanning-mpu-fault</link><description>I&amp;#39;m getting an occasional MPU fault on the nRF52840 on the Thingy91 when starting scanning: 
 
 
 
 Running arm-none-eabi-addr2line leads me to 
 
 buf-&amp;gt;len -= len; 
 
 in this call below: 
 
 
 Which is the cal to net_buf_pull in tx_isr of the hci_lpuart</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 08 Sep 2022 01:32:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91413/hci-uart-simultaneous-advertising-and-scanning-mpu-fault" /><item><title>RE: HCI UART simultaneous advertising and scanning MPU fault</title><link>https://devzone.nordicsemi.com/thread/385134?ContentTypeID=1</link><pubDate>Thu, 08 Sep 2022 01:32:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08771f81-132c-4ae9-bf06-5c2ef14e88f5</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Another update!&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;So far, no faults on the nRF52. Did get one on the nRF9160 side:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;[19:48:18.956,115] &#x1B;[1;31m&amp;lt;err&amp;gt; os: Exception occurred in Secure State&#x1B;[0m
[19:48:18.956,115] &#x1B;[1;31m&amp;lt;err&amp;gt; os: ***** HARD FAULT *****&#x1B;[0m
[19:48:18.956,115] &#x1B;[1;31m&amp;lt;err&amp;gt; os: Fault escalation (see below)&#x1B;[0m
[19:48:18.956,115] &#x1B;[1;31m&amp;lt;err&amp;gt; os: ***** BUS FAULT *****&#x1B;[0m
[19:48:18.956,146] &#x1B;[1;31m&amp;lt;err&amp;gt; os: Precise data bus error&#x1B;[0m
[19:48:18.956,146] &#x1B;[1;31m&amp;lt;err&amp;gt; os: BFAR Address: 0x50008158&#x1B;[0m
[19:48:18.956,146] &#x1B;[1;31m&amp;lt;err&amp;gt; os: r0/a1: 0x2002cac1 r1/a2: 0x00000000 r2/a3: 0x00000001&#x1B;[0m
[19:48:18.956,176] &#x1B;[1;31m&amp;lt;err&amp;gt; os: r3/a4: 0x00000000 r12/ip: 0x0000f9c0 r14/lr: 0x0002db4f&#x1B;[0m
[19:48:18.956,176] &#x1B;[1;31m&amp;lt;err&amp;gt; os: xpsr: 0x21000000&#x1B;[0m
[19:48:18.956,176] &#x1B;[1;31m&amp;lt;err&amp;gt; os: Faulting instruction address (r15/pc): 0x0002db38&#x1B;[0m
[19:48:18.956,207] &#x1B;[1;31m&amp;lt;err&amp;gt; os: &amp;gt;&amp;gt;&amp;gt; ZEPHYR FATAL ERROR 0: CPU exception on CPU 0&#x1B;[0m
[19:48:18.956,237] &#x1B;[1;31m&amp;lt;err&amp;gt; os: Current thread: 0x2000dd48 (BT TX)&#x1B;[0m&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Looks like it happened in the BT TX thread&lt;/p&gt;
&lt;p&gt;I tracked it down again using addr2line and got essentially the same places related to the net&amp;nbsp;buffer&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;app on  final-tweaks [$!+] 
❯ arm-none-eabi-addr2line -e nrf9160/build/zephyr/zephyr.elf 0x0002db38
/Users/jaredwolff/Git/broodminder/zephyr/drivers/bluetooth/hci/h4.c:435

app on  final-tweaks [$!+] 
❯ arm-none-eabi-addr2line -e nrf9160/build/zephyr/zephyr.elf 0x0002db4f
/Users/jaredwolff/Git/broodminder/zephyr/include/net/buf.h:2072&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m going to increase the ISR_STACK_SIZE on the nRF91 side as well. Let me know if you have any other insights/suggestions.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HCI UART simultaneous advertising and scanning MPU fault</title><link>https://devzone.nordicsemi.com/thread/383688?ContentTypeID=1</link><pubDate>Mon, 29 Aug 2022 12:33:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7817ec7-9ca4-4c47-85be-d8e1bbd46289</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;I&amp;#39;ll give it a try. Thanks Sigurd&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: HCI UART simultaneous advertising and scanning MPU fault</title><link>https://devzone.nordicsemi.com/thread/383679?ContentTypeID=1</link><pubDate>Mon, 29 Aug 2022 12:24:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fb7a96a-b0c1-40b2-83b6-d8eb3a0796ee</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]&lt;p&gt;Any suggestions would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;Could you try to double&amp;nbsp;&lt;span&gt;CONFIG_ISR_STACK_SIZE&amp;nbsp;, and see if it fixes the issue ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>