<?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>Using Zephyr&amp;#39;s settings subsystem along with Bluetooth sometimes results in an MPSL assertion.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97568/using-zephyr-s-settings-subsystem-along-with-bluetooth-sometimes-results-in-an-mpsl-assertion</link><description>nRF Connect SDK: 2.1.2 
 I&amp;#39;m using Zephyr&amp;#39;s settings subsystem (with NVS as the backend storage implementation). With this setup, when the method settings_save() is called, changed settings are written to flash. 
 I&amp;#39;ve noticed that when Bluetooth is connected</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Mar 2023 23:35:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97568/using-zephyr-s-settings-subsystem-along-with-bluetooth-sometimes-results-in-an-mpsl-assertion" /><item><title>RE: Using Zephyr's settings subsystem along with Bluetooth sometimes results in an MPSL assertion.</title><link>https://devzone.nordicsemi.com/thread/416129?ContentTypeID=1</link><pubDate>Fri, 17 Mar 2023 23:35:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efac3756-fe6f-4948-bacf-cac0fcdb6bb0</guid><dc:creator>gfrung</dc:creator><description>&lt;p&gt;Thanks for the response!&lt;/p&gt;
&lt;p&gt;Sorry I took so long to get back to you. I tried to replicate the issue with a minimal reproducible example that I could share, running on the nRF52840DK.&amp;nbsp; However, when I created a project that just handled settings and sent notifications (at the same rate as my application), I was unable to observe the issue.&lt;/p&gt;
&lt;p&gt;This leads me to believe there&amp;#39;s more to it than I thought. Something about my application or hardware is causing the issue to occur; it&amp;#39;s not just Bluetooth and the settings subsystem. I&amp;#39;ll have to look into it more next week.&lt;/p&gt;
&lt;p&gt;To answer your questions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;We&amp;#39;re using the internal RC, and have configured the application like so:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;No settings API calls are made in the &lt;code&gt;bt_ready()&lt;/code&gt; callback. I don&amp;#39;t even have one, as I call &lt;code&gt;bt_enable(NULL)&lt;/code&gt; (no callback).&lt;/li&gt;
&lt;li&gt;The application rarely calls &lt;code&gt;settings_save()&lt;/code&gt;, but calling it just once is enough to trigger the issue. It&amp;#39;s not related to calling it many times. The amount of data saved is &lt;strong&gt;5&lt;/strong&gt; bytes. The setting name is &lt;strong&gt;15&lt;/strong&gt; bytes.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I&amp;#39;ll keep experimenting next week and report back if I find anything.&amp;nbsp; In the meantime, I&amp;#39;m going to assume it&amp;#39;s something I&amp;#39;m doing and not an issue with the&amp;nbsp;MPSL.&lt;/p&gt;
&lt;p&gt;Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Zephyr's settings subsystem along with Bluetooth sometimes results in an MPSL assertion.</title><link>https://devzone.nordicsemi.com/thread/414910?ContentTypeID=1</link><pubDate>Mon, 13 Mar 2023 12:33:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05dcd0a1-5cc5-45ca-ba12-86378226ff77</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Ricky,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The information I got from the team is that this error is related to the RTC timer: &amp;quot;&lt;em&gt;It seems like you&amp;#39;re trying to set up a CC for a time that has already passed.&amp;quot;&amp;nbsp;&lt;/em&gt;There must be something wrong with the timing with MPSL.&lt;em&gt;&lt;br /&gt;&lt;/em&gt;Could you give some more information about your LFCLK oscillator, do you use external crystal or it&amp;#39;s the internal RC . Have you configured your application to use the correct LFCLK&amp;nbsp;source?&lt;em&gt;&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Do you call settings_* API inside&amp;nbsp;bt_ready() callback ?&amp;nbsp;&lt;br /&gt;How often do you call&amp;nbsp;&lt;span&gt;settings_save() ? how large is the data to store?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>