<?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>Title: MPSL ASSERT and Hard Fault in nRF52832 (nRF Connect SDK v2.5.1)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/118858/title-mpsl-assert-and-hard-fault-in-nrf52832-nrf-connect-sdk-v2-5-1</link><description>I am encountering an MPSL ASSERT: 106, 501 error followed by a HARD FAULT while running my distance measurement example on an nRF52840 using the nRF Connect SDK v2.5.1. The system resets after the fault. Below is the log output: 
 
 11 :30:10:349 -&amp;gt; E</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Feb 2025 07:45:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/118858/title-mpsl-assert-and-hard-fault-in-nrf52832-nrf-connect-sdk-v2-5-1" /><item><title>RE: Title: MPSL ASSERT and Hard Fault in nRF52832 (nRF Connect SDK v2.5.1)</title><link>https://devzone.nordicsemi.com/thread/522966?ContentTypeID=1</link><pubDate>Fri, 14 Feb 2025 07:45:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84dbc4d2-4a13-4a46-98c6-a397d1239399</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The MPSL Assert 106, 501 is caused by an overstay assert. This means that the timeslot provided by the softdevice, in order for the distance measure library to do it&amp;#39;s proprietary protocol stuff takes longer than what it is allowed to use. Please see &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/108077/mpsl-assert-106-501"&gt;this ticket&lt;/a&gt;. Are you running this on an nRF52832 DK, an nRF52840 DK, or custom hardware? Did modifications to the sample? It may be that if it is a bug in the sample, that this is fixed in a later NCS version. Did you try e.g. NCS v2.6.3?&lt;/p&gt;
&lt;p&gt;And does the assert occur every time, or just some times? And does it happen randomly, or at the same time every time you run the sample?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Title: MPSL ASSERT and Hard Fault in nRF52832 (nRF Connect SDK v2.5.1)</title><link>https://devzone.nordicsemi.com/thread/522588?ContentTypeID=1</link><pubDate>Wed, 12 Feb 2025 08:55:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9126c555-fe90-4d4e-bb95-a9ec5f14b209</guid><dc:creator>Jakob Ruhe</dc:creator><description>&lt;p&gt;Hi Usha,&lt;/p&gt;
&lt;p&gt;Since neither you or me have access to the source code of the SoftDevice Controller and I do not know anything about your application it is of course very hard to tell! But yes, it could be all the things you mentioned!&lt;/p&gt;
&lt;p&gt;Perhaps try to log what your application is doing with the SoftDevice just before the crash.&lt;/p&gt;
&lt;p&gt;In general, to catch asserts I usually use a debugger and set a breakpoint at the function&amp;nbsp;`assert_post_action()`. When the assert is triggered I can examine the callstack.&lt;/p&gt;
&lt;p&gt;When an assert is triggered by the SoftDevice I am not sure that `assert_post_action()` is called. But&amp;nbsp;you should be able to set a breakpoint in `z_fatal_error()` instead.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;With the configuration option `BT_CTLR_ASSERT_HANDLER` it seems like you can configure SoftDevice to use an application handler also.&lt;/p&gt;
&lt;p&gt;You can also enable more logging in your application and the Bluetooth stack (CONFIG_BT_LOG_LEVEL).&lt;/p&gt;
&lt;p&gt;Now you have a few options. I hope it moves your project forward!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>