<?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>FDS write failure</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68259/fds-write-failure</link><description>Hi, 
 I am seeing some random behavior on FDS write: 
 1.sometimes it won&amp;#39;t receive any callback for 2 seconds 
 19:57:49 - logMessage: &amp;quot;Fds_Write_Async 2&amp;quot; 
 19:57:51 - logMessage: &amp;quot;Fds_write timeout&amp;quot; 
 
 
 2. sometimes it won&amp;#39;t find the exisiting the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Nov 2020 15:52:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68259/fds-write-failure" /><item><title>RE: FDS write failure</title><link>https://devzone.nordicsemi.com/thread/279795?ContentTypeID=1</link><pubDate>Thu, 12 Nov 2020 15:52:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2eabadf-64be-4efb-9c7a-f8507db4580c</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;If you are using FreeRTOS you should be aware that FDS is not thread safe by itself, so I know there are some special considerations that should be done before and after executing FDS calls. If you think it may be FreeRTOS related, I may need to transfer this case to someone with in-depth experience with FreeRTOS.&amp;nbsp;&lt;/p&gt;
[quote user=""]1.sometimes it won&amp;#39;t receive any callback for 2 seconds[/quote]
&lt;p&gt;Typically flash operations have the second lowest (fourth) priority compared to other softdevice activities, see here:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/multilink_scheduling/priorities_and_events_intro.html"&gt;https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/multilink_scheduling/priorities_and_events_intro.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Can it be that you have other activities with high priorities that may delay or cause the flash operation to timeout? If you experience timeout you may try to increase&amp;nbsp;NRF_FSTORAGE_SD_MAX_RETRIES.&lt;/p&gt;
&lt;p&gt;If the activity that prevents the flash operations to be executed immediately is stopped, you may suddenly get multiple flash operations completed in a row afterwards. They may have been queued until success.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>