<?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>Unable to read the flash when i want to update the value</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74737/unable-to-read-the-flash-when-i-want-to-update-the-value</link><description>Hi, 
 I am using nrf52840 DK and SDK version 17.0.2. I want to write data into particular address location(application area) of the flash using fstorage. It is writing the data into selected location using nrf_fstorage_write() and reading the written</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 May 2021 08:58:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74737/unable-to-read-the-flash-when-i-want-to-update-the-value" /><item><title>RE: Unable to read the flash when i want to update the value</title><link>https://devzone.nordicsemi.com/thread/308309?ContentTypeID=1</link><pubDate>Wed, 05 May 2021 08:58:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14acf4a4-6343-4cbe-b784-4be01a414ccd</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The fstorage module is asynchronous, which means that you have to wait for each write to be executed before you try to read the data. Check your callback handler for fstorage events and wait for a&amp;nbsp;NRF_FSTORAGE_EVT_WRITE_RESULT after a write and a&amp;nbsp;NRF_FSTORAGE_EVT_ERASE_RESULT after an erase.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s also a good practice to check the return value from the function calls &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;regards&lt;/div&gt;
&lt;div&gt;Jared&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>