<?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>Is the Peer Manager&amp;#39;s use of FDS Threadsafe?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47925/is-the-peer-manager-s-use-of-fds-threadsafe</link><description>I&amp;#39;m using the default implementation of the Peer Manager module. I see under the hood it uses the FDS module to handle Flash Write/Reads. If I wanted to implement some Flash storage in my application code using FStorage or FDS, within a freeRTOS architecture</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Jun 2021 15:03:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47925/is-the-peer-manager-s-use-of-fds-threadsafe" /><item><title>RE: Is the Peer Manager's use of FDS Threadsafe?</title><link>https://devzone.nordicsemi.com/thread/315682?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 15:03:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8127c11f-ff2d-424d-b0d1-c9a53d6b98e1</guid><dc:creator>StefXinet</dc:creator><description>&lt;p&gt;Dear Hung,&lt;/p&gt;
&lt;p&gt;we are experiencing the same issue. we use SDK 17.0.2, BLE and FreeRTOS.&lt;/p&gt;
&lt;p&gt;We started writing a library based on the &amp;quot;flash_fds&amp;quot; example but if we also use the peer manager there issue with the&amp;nbsp; fds_evt_handler (). It&amp;#39;s crappy.&lt;/p&gt;
&lt;p&gt;Where do you suggest to insert the semaphores in the code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the Peer Manager's use of FDS Threadsafe?</title><link>https://devzone.nordicsemi.com/thread/190891?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 17:07:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9833d84-bde3-426e-b54e-74d99fd64892</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;Thanks Hung&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is the Peer Manager's use of FDS Threadsafe?</title><link>https://devzone.nordicsemi.com/thread/190682?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 08:39:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6addc6b-3c36-41a5-bd72-ce8bd80500ae</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;FDS has not been tested with FreeRTOS and it&amp;#39;s not threadsafe. There is actually a define&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_fds_functionality.html?cp=5_1_3_55_1"&gt;&amp;nbsp;FDS_THREADS &lt;/a&gt;to active the critical section inside FDS to avoid the process being interrupted but it&amp;#39;s not tested in FreeRTOS.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Our suggestion is to use both FDS_THREADS and your own&amp;nbsp;semaphore to limit to one transaction at a time.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>