<?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>memory corruption problems with pstorage</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7548/memory-corruption-problems-with-pstorage</link><description>Hi everyone, 
 I&amp;#39;m using NRF51822 controller for an application, to store 2 float variables in the memory using persistent storage manager feature. 
 However, when I try to update and then retrive these variables, it seems there is some memory corruption</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Jun 2015 13:35:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7548/memory-corruption-problems-with-pstorage" /><item><title>RE: memory corruption problems with pstorage</title><link>https://devzone.nordicsemi.com/thread/26895?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2015 13:35:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58fb825b-84f7-4b65-bed7-b1a1e61ad1bd</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;From the &lt;a href="https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.1.0/s110/html/a00168.html"&gt;Persistent Storage Manage documentation&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The interface is designed to be
asynchronous and application is also
expected to register a callback to
know the result of a storage access
operation&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;You need to implement the &lt;code&gt;example_cb_handler&lt;/code&gt;. Here you check if an operation is actually completed.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/17846/nonvolatile-memory-access/"&gt;This&lt;/a&gt; question may also be helpful. Let me know if anything is unclear.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: memory corruption problems with pstorage</title><link>https://devzone.nordicsemi.com/thread/26894?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2015 19:24:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4b8d283-2a06-4b7e-9a3b-86f93a76c7cb</guid><dc:creator>Dave_couling</dc:creator><description>&lt;p&gt;You should be using the scheduler for these operations.  As it stands, for example, a pstorage_load will return NRF_SUCCESS  even though the operation is still occuring.  The NRF_SUCCESS simply indicates that the operation has started successfully.  It doesn&amp;#39;t give any indication on whether is has actually completed.&lt;/p&gt;
&lt;p&gt;Therefore you should use the scheduler to determine if you have successfully completed the operation.  This thread gives a pretty description and example code of this:  &lt;a href="https://devzone.nordicsemi.com/question/15271/how-can-i-write-10kb-of-data-to-internal-flash/?answer=17300#post-id-17300"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>