<?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>what&amp;#39;s the safest way to wait for pstorage_store</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11876/what-s-the-safest-way-to-wait-for-pstorage_store</link><description>when I call pstorage_store so store a block of data, sometimes I call just after pstorage_store : the following code 
 do {
	pstorage_access_status_get(&amp;amp;count);
} while (count);
 
 sometimes I want for a flag while(!flashWriteTerminated); which is</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Feb 2016 15:25:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11876/what-s-the-safest-way-to-wait-for-pstorage_store" /><item><title>RE: what's the safest way to wait for pstorage_store</title><link>https://devzone.nordicsemi.com/thread/44981?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2016 15:25:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b59d8c3-f4c6-4388-99b0-43c2012f7220</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It&amp;#39;s only needed with the load operations, the others are enqueued in the pstorage scheduler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what's the safest way to wait for pstorage_store</title><link>https://devzone.nordicsemi.com/thread/44980?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2016 15:16:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2dbeaabf-2f8e-4e1f-9f48-c437f28dc6f9</guid><dc:creator>makouda</dc:creator><description>&lt;p&gt;so I can just use &lt;code&gt;pstorage_access_status_get()&lt;/code&gt; with all operations (store, clear, load, update) ???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: what's the safest way to wait for pstorage_store</title><link>https://devzone.nordicsemi.com/thread/44979?ContentTypeID=1</link><pubDate>Mon, 15 Feb 2016 15:08:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:245c35c4-0aec-49b7-ab99-340ca9e0bd6c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;store,update and clear operations are enqueued within the pstorage module, so you don&amp;#39;t have to wait for a previous operation to complete before issuing the next one. However, the read operation is not added to the queue, so you need to wait if there is an ongoing flash operation on the same page to complete in order to be sure that the data is valid.&lt;/p&gt;
&lt;p&gt;One way to check if it&amp;#39;s safe to read a block is to check that there are no pending flash operations by using the pstorage_access_status_get() function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>