<?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>Nordic 51822, SDK5.0.0 and SD6.0.0, pstorage not work?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1250/nordic-51822-sdk5-0-0-and-sd6-0-0-pstorage-not-work</link><description>Hi, I am using pstorage to store and read back data in Nordic 51822 platform, with SDK5.0.0 and SD6.0.0, here is the code how I use the &amp;#39;pstorage application&amp;#39;: 
 // Initialize pStorage &amp;amp; Clear if first boot
 retval = pstorage_init();
 if (retval =</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 06 Jun 2015 09:32:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1250/nordic-51822-sdk5-0-0-and-sd6-0-0-pstorage-not-work" /><item><title>RE: Nordic 51822, SDK5.0.0 and SD6.0.0, pstorage not work?</title><link>https://devzone.nordicsemi.com/thread/5781?ContentTypeID=1</link><pubDate>Sat, 06 Jun 2015 09:32:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:797ef0cc-ae72-4622-a07c-0eb3d4de0622</guid><dc:creator>Ole Christian Tvedt</dc:creator><description>&lt;p&gt;A related problem is &lt;strong&gt;debugger flash caching&lt;/strong&gt;:&lt;/p&gt;
&lt;p&gt;If your &lt;code&gt;pstorage_sys_event_handler&lt;/code&gt; receives an &lt;code&gt;NRF_SUCCESS&lt;/code&gt; on the write operation, but the debugger claims that the flash area still unwritten, make sure the debugger isn&amp;#39;t caching the old values.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m using Segger J-Link over SWD, and the solution was to uncheck &lt;code&gt;☐ Allow caching of flash contents&lt;/code&gt; in the J-Link Control Panel (can be found in the system tray during debugging, if using Windows).&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: This is &lt;em&gt;not&lt;/em&gt; the solution to OP&amp;#39;s problem, since he is checking the result using &lt;code&gt;pstorage_load&lt;/code&gt;. I&amp;#39;m leaving this here since it is one of the first Google hits for the search terms I was using.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic 51822, SDK5.0.0 and SD6.0.0, pstorage not work?</title><link>https://devzone.nordicsemi.com/thread/5779?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2014 16:35:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7c246de-5da4-441c-92ff-38bf07096344</guid><dc:creator>Krishna Shingala</dc:creator><description>&lt;p&gt;Are you using resident memory for the data source you provide to pstorage? No copy of data is made, hence it is required that &amp;#39;test_data&amp;#39; contains valid data when flash write is actually executed.&lt;/p&gt;
&lt;p&gt;Is it also possible for you to use nrfjprog to dump the flash page being used? Flash page being used for your registered module will be flashhandle.block_id.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic 51822, SDK5.0.0 and SD6.0.0, pstorage not work?</title><link>https://devzone.nordicsemi.com/thread/5778?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2014 02:03:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:75f96c3c-402b-4684-ac2d-80fa2bb178c7</guid><dc:creator>mira67</dc:creator><description>&lt;p&gt;Yes, I wait for a successful event for &amp;#39;store&amp;#39; operation, then load the data, but always &amp;#39;0xFF&amp;#39;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic 51822, SDK5.0.0 and SD6.0.0, pstorage not work?</title><link>https://devzone.nordicsemi.com/thread/5777?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2014 22:28:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2ec10b8-4868-4854-8dd5-6537de09e7ea</guid><dc:creator>Paul</dc:creator><description>&lt;p&gt;I am having similar issues. Do you have a sample application that uses pstorage_load.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic 51822, SDK5.0.0 and SD6.0.0, pstorage not work?</title><link>https://devzone.nordicsemi.com/thread/5776?ContentTypeID=1</link><pubDate>Tue, 07 Jan 2014 16:07:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e5f1f35-1253-4ed5-a025-b9518257dc16</guid><dc:creator>Krishna Shingala</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;I sit possible to confirm that you are issuing pstorage_load once you have received a successful event for &amp;#39;store&amp;#39; operation? Else you would be reading stale data. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic 51822, SDK5.0.0 and SD6.0.0, pstorage not work?</title><link>https://devzone.nordicsemi.com/thread/5775?ContentTypeID=1</link><pubDate>Fri, 03 Jan 2014 18:17:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4aa9ccbb-166f-45be-aa02-160cb49b1fba</guid><dc:creator>mira67</dc:creator><description>&lt;p&gt;a. Enabling SoftDevice and registering to receive System events?
Yes. I followed the heart rate example, enabled SD, also registered system evt and called &amp;#39;pstorage_sys_event_handler&amp;#39; from system evt dispatcher.
b. Ensuring that the system events are being dispatched to the PStorage module?
Yes.
c. Receiving events notifying the application of clear and store operations being successful apart API returning a success? Note: Load operation does not need any events and data is returned immediately to the application.
Yes, I initialized a handler for operation completion notification. After I got the successful clear completion notification, store some data; after I got the successful store notification, load some data, but the data from pstorage_load is still all &amp;#39;0xFF&amp;#39;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Nordic 51822, SDK5.0.0 and SD6.0.0, pstorage not work?</title><link>https://devzone.nordicsemi.com/thread/5774?ContentTypeID=1</link><pubDate>Fri, 03 Jan 2014 09:19:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd80fc7f-9c48-42f8-ac25-5009a5c6fb7d</guid><dc:creator>Krishna Shingala</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Couple of things to know before getting to specifics:&lt;/p&gt;
&lt;p&gt;a. Earlier flash_page_erase API was a blocking API, however, flash operations have now been moved to SoftDevice and are non blocking. Therefore even though the API returns immediately with a success, the operation is not complete unless an event is received from SoftDevice.&lt;/p&gt;
&lt;p&gt;b. PStorage API aim to to provide a consistent interfacing to any flash operation and do not access the flash itself. In the current one, it makes of SoftDevice API to have data stored persistently. Therefore, it is important that SoftDevice is enabled in order to access flash for PStorage to work as expected.&lt;/p&gt;
&lt;p&gt;c. Lastly, SoftDevice has restriction of permitting only one flash operation at a time. PStorage hence implements a queue which is serviced when SoftDevice notifies flash access to be complete. Hence, it is important &amp;#39;pstorage_sys_event_handler&amp;#39; is called from system event dispatcher of the application. And it is very important that application registers to receive system event using &amp;#39;softdevice_sys_evt_handler_set&amp;#39; API.&lt;/p&gt;
&lt;p&gt;Now getting to specifics, can you confirm that you are:
a. Enabling SoftDevice and registering to receive System events?
b. Ensuring that the system events are being dispatched to the PStorage module?
c. Receiving events notifying the application of clear and store operations being successful apart API returning a success? Note: Load operation does not need any events and data is returned immediately to the application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>