<?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 flash writing time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37468/fds-flash-writing-time</link><description>Hello! 
 I am using nrf52832 with SDK14.0 and SD 5.0.0 
 I have issue with Flash data storage. I am using code from example (fds_test from github) 
 
 
 Writting works good, but it lasts sometimes 300ms, sometimes 3.6s (!!!) (time of waiting flash_write_flag</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Aug 2018 11:42:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37468/fds-flash-writing-time" /><item><title>RE: FDS flash writing time</title><link>https://devzone.nordicsemi.com/thread/145104?ContentTypeID=1</link><pubDate>Tue, 21 Aug 2018 11:42:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4690f9d-2c7f-4ac7-8b1d-556dda78f64d</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;&amp;quot;Also I think that delays in 3.6 seconds was because of BLE was working and I continued to sent/receive messages. &amp;quot;&lt;/p&gt;
&lt;p&gt;- Yes, you&amp;#39;re correct.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS flash writing time</title><link>https://devzone.nordicsemi.com/thread/145102?ContentTypeID=1</link><pubDate>Tue, 21 Aug 2018 11:35:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd36be95-47df-497f-8ce0-6cd3556068f0</guid><dc:creator>Valdiolus</dc:creator><description>&lt;p&gt;Yes, I have already created timers to prevent long waiting.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But as I see, while the&amp;nbsp;&lt;span&gt;flash_write_flag is 0, you can&amp;#39;t use FDS to write/remove some another inforamtion.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also I think that delays in 3.6 seconds was because of BLE was working and I continued to sent/receive messages.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Now i am writing to the flash after all transmissions are done and as I see all works good.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS flash writing time</title><link>https://devzone.nordicsemi.com/thread/145092?ContentTypeID=1</link><pubDate>Tue, 21 Aug 2018 11:04:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40cda256-1ded-43e3-92ea-94a60577732f</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;You do not need to wait for&amp;nbsp;flash_write_flag because FDS has an internal scheduler.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Alternatively you can put the CPU to sleep in the while loop.&lt;br /&gt;&lt;br /&gt;You can use the RTC to create a blocking timer with the CPU put to sleep, instead of using the nrf_delay_ms() function who&amp;#39;s implemented with asm NOPs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>