<?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>migration guide for pstorage?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1030/migration-guide-for-pstorage</link><description>I have some non-volatile storage routines that I have written before, but the new SDK V5.0.0 has this pstorage module that is supposed to replace it, right? How do I migrate safely from using ble_flash to pstorage? 
 It seems like ble_flash is using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Jan 2014 14:08:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1030/migration-guide-for-pstorage" /><item><title>RE: migration guide for pstorage?</title><link>https://devzone.nordicsemi.com/thread/4875?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2014 14:08:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41bff97d-aeee-4b63-a53b-15318b3a8378</guid><dc:creator>Joseph</dc:creator><description>&lt;p&gt;Thanks for the clarification!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migration guide for pstorage?</title><link>https://devzone.nordicsemi.com/thread/4874?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2014 14:00:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca2867b9-6388-4044-b49c-ac56b1d4897f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Joseph,&lt;/p&gt;
&lt;p&gt;pstorage is available in s310_nrf51422_1.0.0-2.alpha (this softdevice based on S110 v6.0.0 for BLE part).&lt;/p&gt;
&lt;p&gt;As you may notice, I was incorrect in the reply on Nov 29th. ble_flash is not available when the softdevice (S110 v6.0.0 or s310_nrf51422_1.0.0-2.alpha) is active. Access to NVMC is blocked by these softdevices.&lt;/p&gt;
&lt;p&gt;I am sorry for the confusion.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migration guide for pstorage?</title><link>https://devzone.nordicsemi.com/thread/4873?ContentTypeID=1</link><pubDate>Sun, 05 Jan 2014 11:09:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e36019c-df1d-4e68-903c-f6b14fa05c5a</guid><dc:creator>Joseph</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;Excuse me, one more question.&lt;/p&gt;
&lt;p&gt;May I still make call to ble_flash when pstorage is active?&lt;/p&gt;
&lt;p&gt;Thanks!
Joseph&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migration guide for pstorage?</title><link>https://devzone.nordicsemi.com/thread/4872?ContentTypeID=1</link><pubDate>Sun, 05 Jan 2014 10:39:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d17a098a-f747-4743-8a59-cb59e6b380f0</guid><dc:creator>Joseph</dc:creator><description>&lt;p&gt;Hi Hung Bui,&lt;/p&gt;
&lt;p&gt;Is pstorage available in s310_nrf51422_1.0.0-2.alpha ?&lt;/p&gt;
&lt;p&gt;Thanks!
Joseph&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migration guide for pstorage?</title><link>https://devzone.nordicsemi.com/thread/4871?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2013 13:52:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87fb3fa0-5f02-499c-aef1-1c09c3f1e427</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Frank: if there is data is the area you plan to write you would need to clear it before you store. You need to do it manually using pstorage_clear().
When you call pstorage_clear() all blocks that registered with the same pstorage_handle_t will be cleared.
Please have a look in bondmngr library for reference.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;attribute&lt;/strong&gt;((aligned)) is documented here in KEIL documentation, so I expect that it should be supported:
&lt;a target="_blank" href="http://www.keil.com/support/man/docs/armccref/armccref_Cacjcjce.htm" rel="nofollow"&gt;http://www.keil.com/support/man/docs/armccref/armccref_Cacjcjce.htm&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migration guide for pstorage?</title><link>https://devzone.nordicsemi.com/thread/4870?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2013 16:37:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ed4e2a2-fa32-4b58-9480-e85266b19c9e</guid><dc:creator>Frank Zhao</dc:creator><description>&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;is a clear operation mandatory before a stora operation? ble_flash did the erase automatically.&lt;/p&gt;
&lt;p&gt;is there a good word alignment macro I can use that is good for both GCC and Keil? is &amp;quot;&lt;strong&gt;attribute&lt;/strong&gt; ((aligned (sizeof(int))))&amp;quot; good? is it even required?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: migration guide for pstorage?</title><link>https://devzone.nordicsemi.com/thread/4869?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2013 17:13:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1ac1211-1658-4626-8f60-f19a85f11b0c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Frank,&lt;/p&gt;
&lt;p&gt;We currently don&amp;#39;t have a migration note for pstorage.&lt;/p&gt;
&lt;p&gt;pstorage is first implemented on Softdevice S110 v6.0.0 (currently beta). So if you use softdevice v5.x you should use ble_flash.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;If you plan to use ble_flash on S110 v6.0.0 ..(See EDIT)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Regarding the asynchronous property of pstorage, as you can find in the description of pstorage_store (), you should not modify or change the input data until the callback is received. So your approach to set a flag in the callback for the loop in main is a proper way of handling it.&lt;/p&gt;
&lt;p&gt;EDIT:
[b]I was in correct about ble_flash and S110 v6.0.0. It was not possible to access NVMC when softdevice is active. So ble_flash should not be used with S110 v6.0
I am sorry for giving the wrong information.
[/b]&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>