<?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>Mpsl init hard fault</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86807/mpsl-init-hard-fault</link><description>Hello guys, 
 I am having problems on addressing an issue with my firmware. Maybe someone can assist me to find out the root cause for this, because I don&amp;#39;t understand too much of the error log. 
 The firmware runs smooth for some time (it varies from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Apr 2022 12:42:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86807/mpsl-init-hard-fault" /><item><title>RE: Mpsl init hard fault</title><link>https://devzone.nordicsemi.com/thread/364226?ContentTypeID=1</link><pubDate>Thu, 21 Apr 2022 12:42:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dcdd040-c1a7-4ccf-82bb-c87705b61694</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;In general, it is hard to say what is wrong just by looking at the assert.&amp;nbsp;&lt;br /&gt;If you would need more assistance, you should provide the steps to reproduce the issue that you reported.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mpsl init hard fault</title><link>https://devzone.nordicsemi.com/thread/364160?ContentTypeID=1</link><pubDate>Thu, 21 Apr 2022 09:27:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d2418b1-0f89-44b3-922a-81ef256a0eb7</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Log suggests an error with interrupt handling. You might have a problem with stack overflow or zero latency. You can read more about&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/1.14.1/reference/kconfig/CONFIG_ZERO_LATENCY_IRQS.html"&gt;zero latency IRQ&lt;/a&gt;&amp;nbsp;from the Zephyr documentation. There was an issue reported with&amp;nbsp;&lt;a href="https://github.com/zephyrproject-rtos/zephyr/issues/41256"&gt;zero latency interrupt conflict&lt;/a&gt;s.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mpsl init hard fault</title><link>https://devzone.nordicsemi.com/thread/363063?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2022 15:48:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8693458c-38dd-4226-af55-a880f5db6f8d</guid><dc:creator>thiago_hd</dc:creator><description>&lt;p&gt;Hi again &lt;a href="https://devzone.nordicsemi.com/members/dejans"&gt;dejans&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;I will do that.&lt;/p&gt;
&lt;p&gt;In the meanwhile, could you provide some insight on the log output, and how can I interpret it?&lt;/p&gt;
&lt;p&gt;Thanks once more.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mpsl init hard fault</title><link>https://devzone.nordicsemi.com/thread/363045?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2022 13:49:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a81d5ee-5f95-4062-a39d-2f486f3b1aee</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thank you for providing additional information.&lt;br /&gt;Stop of the logging might be related to the logging buffer size.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="thiago_hd"]The problem also didn&amp;#39;t seem to happen in versions below 1.9.1 of the SDK.[/quote]
&lt;p&gt;Could you please test how your firmware behaves with NCS versions 1.7.0 and 1.8.0 and 1.9.0?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mpsl init hard fault</title><link>https://devzone.nordicsemi.com/thread/362907?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 15:57:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c83ed3ed-705e-4158-9ff5-51ba02c565b1</guid><dc:creator>thiago_hd</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/dejans"&gt;dejans&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;I am using RTT through VSCode&amp;nbsp;by clicking&amp;nbsp;the button &amp;quot;Connect to RTT in nRF Terminal&amp;quot; in the nRF Connect SDK extension. I was using JLinkRTTViewer as well, the problem&amp;nbsp;happened similarly. The problem happens even if I don&amp;#39;t have the logger on, and no monitor hardware connected to the board.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t use directly GDB server for anything. After some time struggling with the freezed board I just noted that, after the firmware freezed, if I opened GDB Server and then closed it, the log with the hard fault appeared... After the firmware freezes,&amp;nbsp;the RTT logs stopped showing, the only way the hard fault log appears is if I do that trick using GDB&amp;nbsp;Server.&amp;nbsp;Everything was freezed, the board&amp;nbsp;didn&amp;#39;t even rebooted through watchdog. I believe maybe the board didn&amp;#39;t rebooted because I don&amp;#39;t have edited anything in the HardFault handler.&lt;/p&gt;
&lt;p&gt;Resuming, the log was freezed, the firmware wasn&amp;#39;t running anymore, and then the hard fault log appeared after opening and closing the gdb server.&lt;/p&gt;
&lt;p&gt;The log stopped at approximately 15 hours of timestamp. One hour later I went to see how it was going and there were no more logs. Then, doing the GDB Server trick, the hard fault log showed up.&lt;/p&gt;
&lt;p&gt;I am only using VSCode for flashing and monitoring the RTT log.&lt;/p&gt;
&lt;p&gt;I cannot use UART log right now because I don&amp;#39;t have such serial connections in my custom board, do you think the problem is related to using RTT logs?&lt;/p&gt;
&lt;p&gt;The problem also didn&amp;#39;t seem to happen in versions below 1.9.1 of the SDK.&lt;/p&gt;
&lt;p&gt;Maybe it has something to do with the scanning handler and other interrupts in the firmware (such as LoRa interrupts from Zephyr&amp;#39;s driver, or UART interrupts)?&lt;/p&gt;
&lt;p&gt;The firmware implements 2 other tasks other than the ble task I described before:&lt;/p&gt;
&lt;p&gt;LoRa&amp;nbsp;task and&amp;nbsp;GPS&amp;nbsp;task.&lt;/p&gt;
&lt;p&gt;The LoRa task uses Zephyr&amp;#39;s driver to receive and send data around.&lt;/p&gt;
&lt;p&gt;And the GPS task uses UART interrupts to&amp;nbsp;put&amp;nbsp;chars from the GPS module inside a buffer, then the buffer is processed in the main loop of the task.&lt;/p&gt;
&lt;p&gt;Edit: for RTT logging I use LOG_INF, LOG_ERR... there are some logs from Zephyr OS which are using printk. I have some printf statements too in the code but they are disabled through pre-processor.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mpsl init hard fault</title><link>https://devzone.nordicsemi.com/thread/362832?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 11:46:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27269e85-d468-4e9e-8834-83825230cc3f</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Could you try closing gdb server and gdb before starting logging via RTT?&lt;br /&gt;&lt;br /&gt;How do you print the output of RTT log?&lt;br /&gt;&lt;br /&gt;What happens if you use UART instead of RTT for logging? Do you experience similar problem?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mpsl init hard fault</title><link>https://devzone.nordicsemi.com/thread/362706?ContentTypeID=1</link><pubDate>Sat, 09 Apr 2022 20:02:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d34bdfc-dadb-4be3-a530-31395cbc7004</guid><dc:creator>thiago_hd</dc:creator><description>&lt;p&gt;I see that the task which was running was the ble task I have created. So describing a little bit of this task:&lt;/p&gt;
&lt;p&gt;In the bluetooth task, I am capturing the BLE advertisers&amp;#39; information inside the scanning handler, when the filter matches the device&amp;#39;s name, and adding the captured data&amp;nbsp; to a FIFO using k_fifo_put.&lt;/p&gt;
&lt;p&gt;Inside the bluetooth task loop I get the data added to the FIFO by calling k_fifo_get.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>