<?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>BLE + FDS  write fail</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94757/ble-fds-write-fail</link><description>Hi, 
 I have a problem, When I first initialize Bluetooth and then initialize FDS for writing, it will fail. However, if I first initialize FDS and write data ,it is OK, then initialize Bluetooth, the two peripherals are normal, 
 that is why? what I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Dec 2022 07:01:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94757/ble-fds-write-fail" /><item><title>RE: BLE + FDS  write fail</title><link>https://devzone.nordicsemi.com/thread/400053?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2022 07:01:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e12ee0f9-7813-4615-8e74-3dcc20b774ea</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The order of initialization should not matter. The only thing I can think of is if the issue here is using FDS before and after the SoftDevice is enabled. If you use the&amp;nbsp;fstorage implementation which is intended to be used without SoftDevice (nrf_fstorage_nvmc.c), that will not work when the SoftDevice is enabled. And similarly, the backend that is&amp;nbsp;ntended&amp;nbsp;to be sued with a SoftDevice (nrf_fstorage_sd.c) will not work without it.&lt;/p&gt;
&lt;p&gt;I would double check that you use&amp;nbsp;nrf_fstorage_sd.c, and that you enable the SotDevice before you initialize FDS. This is the approach that is used in all the SDK exmaples that support pairing, for instance. There FDS is enabled as part of enabling the peer manager library, which is done after enabling the SoftDevice.&lt;/p&gt;
&lt;p&gt;If this does not help, then please let me know a bit more about your application (order of initialization), and elaborate on how things fail (for instance &amp;quot;function X returns error code Y&amp;quot;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>