<?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>Issue writing in flash using fds</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35999/issue-writing-in-flash-using-fds</link><description>SDK 15, nRF52840, PCA10056 
 When I read my data in the flash I recover the before last value writen and not the last. 
 I&amp;#39;m using the es_flash.c source code from eddyston example which use fds.c to write in the flash. 
 Here is my code to write or read</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Jul 2018 12:37:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35999/issue-writing-in-flash-using-fds" /><item><title>RE: Issue writing in flash using fds</title><link>https://devzone.nordicsemi.com/thread/138775?ContentTypeID=1</link><pubDate>Tue, 03 Jul 2018 12:37:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed941561-34e9-43cd-87c3-fc66af53d5a4</guid><dc:creator>Florent_kwn</dc:creator><description>&lt;p&gt;I had :&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;
            record_to_write.data.p_data = p_params-&amp;gt;p_data_buf;&lt;/pre&gt;&lt;br /&gt;at the beginning of the ES_FLASH_ACCESS_WRITE case of &lt;em&gt;access_flash_data&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;and I had&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;      while(m_num_pending_ops &amp;gt; 0){}&lt;/pre&gt;&lt;br /&gt;at the end of &lt;em&gt;flash_access_nb_charge&lt;/em&gt; to wait the FDS_EVT_WRITE event&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue writing in flash using fds</title><link>https://devzone.nordicsemi.com/thread/138769?ContentTypeID=1</link><pubDate>Tue, 03 Jul 2018 12:13:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54213b5b-3950-4185-98e6-131b6a3441ec</guid><dc:creator>Florent_kwn</dc:creator><description>&lt;p&gt;no, I&amp;#39;m a nRF beginner, can you give me an axample of how to wait for the FDS_EVT_WRITE event ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issue writing in flash using fds</title><link>https://devzone.nordicsemi.com/thread/138764?ContentTypeID=1</link><pubDate>Tue, 03 Jul 2018 12:01:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c245b68-d48f-4068-9fe4-9eaf6f4e5840</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;After writing the data, do you wait for FDS_EVT_WRITE before reading the data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>