<?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 NVS with Bluetooth Enabled</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84285/using-nvs-with-bluetooth-enabled</link><description>SDK: NCS 1.8.0 
 Based on: Peripheral LBS example 
 Central: Mobile (iPhone) 
 Peripheral: nRF52832 
 Hi, 
 I am attempting to integrate NVS within my custom application based on the example mentioned above and it seems as the data is not being written</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Feb 2022 12:20:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84285/using-nvs-with-bluetooth-enabled" /><item><title>RE: Using NVS with Bluetooth Enabled</title><link>https://devzone.nordicsemi.com/thread/350869?ContentTypeID=1</link><pubDate>Wed, 02 Feb 2022 12:20:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3ce76e2-0e26-437c-a489-d6d934ce2fe5</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Tom,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I haven&amp;#39;t managed to reproduce the same error that you got. But I did see an issue that when using NVS with Bluetooth, sometimes the data is not stored even after&amp;nbsp;&lt;span&gt;nvs_write() was successful. The solution was to define my own &amp;quot;userstorage&amp;quot; partition so that it&amp;#39;s not related to the bluetooth storage at the default &amp;quot;storage&amp;quot; partition. (check my nrf52dk_nrf52832.overlay file)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;/span&gt;I attached my example here, could you please test.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is a discussion &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/77781/problem-to-read-back-flash-with-nvs-when-concurrent-use-with-bluetooth"&gt;here &lt;/a&gt;that might be related to your issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_lbs_5F00_nvs.zip"&gt;devzone.nordicsemi.com/.../peripheral_5F00_lbs_5F00_nvs.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>