<?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>MPU Fault with NCS Zephyr on nrf52840s</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/101052/mpu-fault-with-ncs-zephyr-on-nrf52840s</link><description>I&amp;#39;m getting the following intermittent MPU fault when reading data over BLE. Both the BLE transmitter and receiver are using an nrf52840, though the receiver is a Laird MG100. 
 
 
 
 I&amp;#39;m using Zephyr OS build v3.2.99-ncs2. 
 
 I&amp;#39;ve traced r14/lr to </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Jul 2023 09:46:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/101052/mpu-fault-with-ncs-zephyr-on-nrf52840s" /><item><title>RE: MPU Fault with NCS Zephyr on nrf52840s</title><link>https://devzone.nordicsemi.com/thread/434901?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2023 09:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a1df321-170d-45f5-aaf9-b0fbcdebbff2</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;Faults tend to move when changing the firmware, as the timing also changes when introducing changes, so this is to be expected.&lt;/p&gt;
&lt;p&gt;Feel free to share information related to any new faults that occurs.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to look at the thread stack usage and see if any of your threads are &amp;quot;close to the limit&amp;quot; at any point? This can give an indication on which thread could be the culprit.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.zephyrproject.org/latest/services/debugging/thread-analyzer.html"&gt;https://docs.zephyrproject.org/latest/services/debugging/thread-analyzer.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&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: MPU Fault with NCS Zephyr on nrf52840s</title><link>https://devzone.nordicsemi.com/thread/434836?ContentTypeID=1</link><pubDate>Thu, 06 Jul 2023 06:54:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b11d75d5-dbd9-49af-be07-4c8ef5a84faa</guid><dc:creator>scath</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;We recently changed settings related to TLS connections, and this seems to have changed the nature of the problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I no longer get MPU Faults pointing to sched.c. Instead, the issue now appears to emanate from libc-hooks.c and uart_nrfx_uart.c. This new issue is regular: it repeats at roughly the same interval as the new issue, but the offending line has been consistently the same over multiple tests.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m thinking that the original issue can be put on hold while I investigate the new issue.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m wondering if I should create a new ticket?&lt;/p&gt;
&lt;p&gt;With thanks,&lt;br /&gt;&lt;br /&gt;S.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU Fault with NCS Zephyr on nrf52840s</title><link>https://devzone.nordicsemi.com/thread/433681?ContentTypeID=1</link><pubDate>Thu, 29 Jun 2023 12:27:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d979c4e9-b68f-4cfe-9c57-e954fdded8e8</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;Q1: Is the assert message still similar? addr2line&amp;nbsp;points to a&amp;nbsp;memset() call?&lt;/p&gt;
&lt;p&gt;Q2: Have you tried to see where the RAM mapped registers (ie. those with 0x2000xxxx) point to? This is unfortunately a manual operation by looking into the build-folder/zephyr/zephyr.map file&lt;/p&gt;
&lt;p&gt;Q3: Could you set this configuration?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_RESET_ON_FATAL_ERROR=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This will ensure that you do not reset when a fault occurs, so that you can connect the debugger and see the callstack (in addition to the assert output). Please share this, to see if there&amp;#39;s anything there to help us backtrack where this occurs.&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: MPU Fault with NCS Zephyr on nrf52840s</title><link>https://devzone.nordicsemi.com/thread/433517?ContentTypeID=1</link><pubDate>Wed, 28 Jun 2023 16:19:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a05d7476-5559-47d3-8115-d256a3543266</guid><dc:creator>scath</dc:creator><description>&lt;p&gt;Hi Hakon,&lt;br /&gt;&lt;br /&gt;This hasn&amp;#39;t helped - I still get the same error at the same rate (roughly once per hour).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU Fault with NCS Zephyr on nrf52840s</title><link>https://devzone.nordicsemi.com/thread/433137?ContentTypeID=1</link><pubDate>Tue, 27 Jun 2023 08:49:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e322801-d273-46d5-bc74-3c4b0133952f</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;
[quote user="scath"]Apologies for the late reply.&lt;br /&gt;[/quote]
&lt;p&gt;No worries.&lt;/p&gt;
[quote user="scath"]Have doubled the available memory and begun testing. [/quote]
&lt;p&gt;Let me know if the issue still occurs&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: MPU Fault with NCS Zephyr on nrf52840s</title><link>https://devzone.nordicsemi.com/thread/433031?ContentTypeID=1</link><pubDate>Mon, 26 Jun 2023 15:20:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e12835c-2912-4d92-830f-67ba5bb91199</guid><dc:creator>scath</dc:creator><description>&lt;p&gt;Apologies for the late reply.&lt;br /&gt;&lt;br /&gt;Have doubled the available memory and begun testing. Will report back asap.&lt;br /&gt;&lt;br /&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPU Fault with NCS Zephyr on nrf52840s</title><link>https://devzone.nordicsemi.com/thread/432289?ContentTypeID=1</link><pubDate>Wed, 21 Jun 2023 11:31:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17c54894-b044-4cd1-8d44-48e00876d29d</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;Looks like the current thread is out of memory. Have you tried increasing CONFIG_MAIN_STACK_SIZE to see if this helps the scenario?&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>