<?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 assert</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71276/mpsl-assert</link><description>Hello, i&amp;#39;m using NCS 1.4.99 with a nRF5340 and i&amp;#39;m trying to use BLE and radio synchronization in the network core. My code run can run minutes without problem but sometime it crash unexpectedly with the following error message: mpsl_init: MPSL ASSERT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Feb 2021 09:54:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71276/mpsl-assert" /><item><title>RE: MPSL assert</title><link>https://devzone.nordicsemi.com/thread/293500?ContentTypeID=1</link><pubDate>Tue, 09 Feb 2021 09:54:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:733645b7-50c6-4e59-98b0-419ca15f7efd</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;m happy you found a workaround to the issue!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPSL assert</title><link>https://devzone.nordicsemi.com/thread/293169?ContentTypeID=1</link><pubDate>Fri, 05 Feb 2021 16:41:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bf78958-3565-44bd-ba3a-c833def4aa0b</guid><dc:creator>Nicolas Brunner</dc:creator><description>&lt;p&gt;My workaround to this problem is to not end the timeslot when disabling the radio.&lt;br /&gt;Another timer event is added 100 us after the disabling of the radio, this event end the timeslot.&lt;br /&gt;This give enough time to deal if a last radio event occurs.&lt;br /&gt;With this solution running tens of minutes, i saw radio event occurs after the firt timer event but they don&amp;#39;t make MPSL assert anymore.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPSL assert</title><link>https://devzone.nordicsemi.com/thread/293151?ContentTypeID=1</link><pubDate>Fri, 05 Feb 2021 15:18:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d26e6c79-6501-404d-8c2f-c37b866358bb</guid><dc:creator>Nicolas Brunner</dc:creator><description>&lt;p&gt;I have tried what you say but it didn&amp;#39;t help.&lt;br /&gt;I have identified that the issue was coming when I&amp;#39;m in the MPSL_TIMESLOT_SIGNAL_TIMER0 callback to end the radio (it&amp;#39;s in rx just before) but just before disabling the radio, a frame is finished to be received (saw it by mapping NRF_RADIO_EVENT_END to a GPIO).&lt;br /&gt;At the end of MPSL_TIMESLOT_SIGNAL_TIMER0, I return to schedule another timeslot and so i&amp;#39;m unable to manage the radio event because the timeslot is ended.&lt;br /&gt;I suppose the end of reception event is then managed by the MPSL and assert because it&amp;#39;s outside any timeslot.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPSL assert</title><link>https://devzone.nordicsemi.com/thread/293094?ContentTypeID=1</link><pubDate>Fri, 05 Feb 2021 13:16:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c52fb3b-1bb4-4dee-affe-b3f425f3ff33</guid><dc:creator>Simon</dc:creator><description>&lt;div&gt;Try running NRF_RADIO-&amp;gt;POWER = 0 . That cleans up all RADIO registers, and will also clear all pending interrupts.&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPSL assert</title><link>https://devzone.nordicsemi.com/thread/293059?ContentTypeID=1</link><pubDate>Fri, 05 Feb 2021 10:40:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f1f27f2-35be-444d-b35d-21a42d32aafc</guid><dc:creator>Nicolas Brunner</dc:creator><description>&lt;p&gt;Thanks for this information.&lt;br /&gt;My cleaning code come from &lt;a href="https://github.com/nordic-auko/nRF5-ble-timesync-demo/blob/master/nRF5_SDK_16.0.0_98a08e2/examples/common/time_sync.c#L483"&gt;nRF5-ble-timesync-demo&lt;/a&gt; and do the following :&lt;br /&gt;NRF_RADIO-&amp;gt;TASKS_DISABLE = 1;&lt;br /&gt;NRF_RADIO-&amp;gt;INTENCLR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 0xFFFFFFFF;&lt;br /&gt;Is the cleaning enough or do i need to clear more registers ?&lt;br /&gt;I will also try to check if this cleaning code is always called when the timeslot is expiring.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPSL assert</title><link>https://devzone.nordicsemi.com/thread/293052?ContentTypeID=1</link><pubDate>Fri, 05 Feb 2021 10:13:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0442256a-c345-44e5-b4b3-a639dc7f679f</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;The assert might be caused by not cleaning up the RADIO after using a timeslot. Try doing that, and see if it still appears&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MPSL assert</title><link>https://devzone.nordicsemi.com/thread/292981?ContentTypeID=1</link><pubDate>Thu, 04 Feb 2021 17:00:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fe22da8-e25d-44eb-b5e6-3a5da1cddcbf</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I&amp;#39;ve asked for help internally about this assert and waiting for a reply. I&amp;#39;ll keep you updated.&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>