<?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>Probability of HARD FAULT occurring during the BLE connection process</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/127627/probability-of-hard-fault-occurring-during-the-ble-connection-process</link><description>Hi all, 
 During the Bluetooth connection process, there is a small probability of the following phenomena occurring (both of which are the same firmware, with the similarity being that I2C will read data every 50ms at this time. I don&amp;#39;t know if this</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Apr 2026 10:40:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/127627/probability-of-hard-fault-occurring-during-the-ble-connection-process" /><item><title>RE: Probability of HARD FAULT occurring during the BLE connection process</title><link>https://devzone.nordicsemi.com/thread/565446?ContentTypeID=1</link><pubDate>Fri, 24 Apr 2026 10:40:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55a022f2-262d-4d1f-8796-02b882ca9c52</guid><dc:creator>666</dc:creator><description>&lt;p&gt;HI&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Sorry for replying to you only now. The reason is that this issue is difficult to reproduce, so it took a long time. During this period, I obtained two phenomena.&lt;br /&gt;&amp;nbsp; &amp;nbsp; The first phenomenon is that the above logs have not been added yet, but the watchdog has been turned off in order to be able to use VS code to view the scene. However, this time there were no error logs when the problem occurred. Then I connected the board to another computer&amp;#39;s jlink&amp;nbsp; and used the &amp;quot;Attach Debugger to Tager&amp;quot; function of VS code. I saw the following situation, but I cannot analyze it and am not sure if this method of capturing logs is reliable&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1777026724945v2.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1777026973464v3.png" alt=" " /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1777026993953v4.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;JLinkGDBServerCL: =thread-group-added,id=&amp;quot;i1&amp;quot; =cmd-param-changed,param=&amp;quot;pagination&amp;quot;,value=&amp;quot;off&amp;quot; arch_system_halt (reason=reason@entry=31) at E:/ncs/v3.1.0/zephyr/kernel/fatal.c:30 30 for (;;) { Program received signal SIGTRAP, Trace/breakpoint trap. arch_system_halt (reason=reason@entry=31) at E:/ncs/v3.1.0/zephyr/kernel/fatal.c:30 30 for (;;) {&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; The second phenomenon is that the above log was added to the main, but the watchdog was still turned off, but the device still restarted without any error logs. However, I saw that the reason for the restart was Reset from CPU lockout detected.&lt;br /&gt;&amp;nbsp; &amp;nbsp; Can you help me explain the above phenomenon, or do you have any suggestions? I have no direction left.&lt;br /&gt;&amp;nbsp; &amp;nbsp; Looking forward to your reply!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Probability of HARD FAULT occurring during the BLE connection process</title><link>https://devzone.nordicsemi.com/thread/564794?ContentTypeID=1</link><pubDate>Fri, 10 Apr 2026 13:33:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:136f2293-c405-4ec9-b110-51b33fb55244</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I do not think using such a low priority for TWIM transactions directly causes the MPSL assert. I think the hardfault logs are bit too vague/generic to describe the problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If we suspect that this in fact is an MPSL error, then try to enable &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_MPSL_ASSERT_HANDLER"&gt;CONFIG_MPSL_ASSERT_HANDLER&lt;/a&gt;=y in your prj.conf and implement your mpsl assert handler something like below&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;mpsl/mpsl_assert.h&amp;gt;

void mpsl_assert_handle(char *file, uint32_t line)
{
	LOG_ERR(&amp;quot;MPSL ASSERT: %s, %u&amp;quot;, file ? file : &amp;quot;&amp;lt;null&amp;gt;&amp;quot;, line);
	k_panic();
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This is also explained in NCS/nrf/doc/nrf/libraries/mpsl/mpsl_assert.rst&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;The Multiprotocol Service Layer assert library makes it possible to add a custom assert handler to the :ref:`nrfxlib:mpsl` library.
You can then use this assert handler to print custom error messages or log assert information.

:kconfig:option:`CONFIG_MPSL_ASSERT_HANDLER` enables the custom assert handler.
If enabled, the application must provide the definition of :c:func:`mpsl_assert_handle`.
The :c:func:`mpsl_assert_handle` function is invoked whenever the MPSL code encounters an unrecoverable error.

API documentation
*****************

| Header file: :file:`include/mpsl/mpsl_assert.h`&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Probability of HARD FAULT occurring during the BLE connection process</title><link>https://devzone.nordicsemi.com/thread/564668?ContentTypeID=1</link><pubDate>Thu, 09 Apr 2026 04:05:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:539335c5-b035-45e6-975f-a64446f12a21</guid><dc:creator>666</dc:creator><description>&lt;p&gt;HI&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;We are using&amp;nbsp;&lt;span&gt;nrfx_twim_init&lt;/span&gt;(...),&amp;nbsp; where the interrupt priority is NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY(7). Is it possible that this priority is too high and may affect &lt;span&gt;MPSL init ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; Very urgent, looking forward to your advice！&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Probability of HARD FAULT occurring during the BLE connection process</title><link>https://devzone.nordicsemi.com/thread/564461?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2026 01:08:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:377bb868-2334-4642-8d20-ad0154115b1f</guid><dc:creator>666</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Because the reading function of I2C cannot be changed, I would like to solve this problem from other aspects. Do you have any good suggestions?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Probability of HARD FAULT occurring during the BLE connection process</title><link>https://devzone.nordicsemi.com/thread/564404?ContentTypeID=1</link><pubDate>Thu, 02 Apr 2026 01:12:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41ac071a-32fd-47c5-bc97-b869058d029c</guid><dc:creator>666</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Random and with a low probability.When will &lt;span&gt;MPSL init&amp;nbsp;&lt;/span&gt;? The above phenomenon occurs during the communication process after Bluetooth connection.Why does I2C read affect it? Is it due to priority reasons&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Probability of HARD FAULT occurring during the BLE connection process</title><link>https://devzone.nordicsemi.com/thread/564278?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2026 05:36:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c1f9c3a-2393-44b7-a396-78b1ed750499</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;When does the phenomena 1 occur versus phenomena 2? Or is it seemingly random that either of these occur. I think the MPSL init assert can be caused by the I2C reading data very often when the MPSL is trying to init.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>