<?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>Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8646/retrieve-saved-info-on-restard-with-pstorage-module</link><description>Hello, 
 I need to store some app configuration on the FLASH and I&amp;#39;d like to use the features of pstorage module.
I don&amp;#39;t understand the following thing ... 
 When the application starts, it uses the pstorage_register (after the pstorage_init of course</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 21 Sep 2015 12:44:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8646/retrieve-saved-info-on-restard-with-pstorage-module" /><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31680?ContentTypeID=1</link><pubDate>Mon, 21 Sep 2015 12:44:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e565c9c5-6f22-457d-82ee-fd5993cd3b5d</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;Solved inside the case.
Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31679?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2015 13:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbcf6305-66c5-4faa-89db-9800ef035166</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;Done. The case id is : 24234&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31678?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2015 12:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d6ef072-79e4-4b38-b1b1-2d4e45779a1a</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Can you please open a support ticket for it in &amp;quot;My Page&amp;quot; and then upload your full project there.
Then it is very safe and we are bound not to share any information regarding it. I will pick the files from that ticket. once you have uploaded it, let me know here.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31677?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2015 12:44:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0317a916-7c1f-407e-9440-88d4a2cf9e1c</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;Thank you very much for helping me.
I&amp;#39;d like to give you our project but I&amp;#39;d like to do that in private.
How can I reach you in private for sending it ?&lt;/p&gt;
&lt;p&gt;Paolo.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31676?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2015 11:16:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1511fb3b-a127-45ef-a0c3-4b397af2d287</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;im sorry, I painfully verified it again. it still works for me.
Give me your whole project, so that i can debug it. Else I think we have achieved the fact that pstorage works as it should in the given SDK and SD version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31675?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2015 10:05:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1db3387c-192c-4782-b164-ef8f8080bf08</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;I was wrong ... executing your code (your main.c file) the *ptr is 0 on reboot so it always executes the &amp;quot;save&amp;quot; and never &amp;quot;load&amp;quot;. So your main.c doesn&amp;#39;t work for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31674?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2015 10:01:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4870960f-5458-4e35-97ea-e6ff682ece83</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;Of course I removed the code to restart the board. I reset the board manually.
However my output is following :&lt;/p&gt;
&lt;p&gt;BLE ANCS
*prt = 0
rgr_cfg_save
pstorage_block_identifier_get err_code = 0
block_handle.block_id = 260096
pstorage_store err_code = 0
block_handle.block_i_handle=536885612, op_code=2, result=0, p_data=536890128, da
ta_len=4
p_data[0] = 16
p_data[1] = 32
p_data[2] = 48
p_data[3] = 64
d = 260096
BLE ANCS
*prt = 0
rgr_cfg_save
pstorage_block_identifier_get err_code = 0
block_handle.block_id = 260096
pstorage_store err_code = 0
block_handle.block_id p_handle=536885612, op_code=2, result=0, p_data=536890128,
data_len=4
p_data[0] = 16
p_data[1] = 32
p_data[2] = 48
p_data[3] = 64
= 260096&lt;/p&gt;
&lt;p&gt;It seems that *ptr is always 0 and save is always executed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31673?ContentTypeID=1</link><pubDate>Wed, 16 Sep 2015 09:52:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3edb9898-a055-42e3-a9a7-0095355be36d</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;I tried your main.c and it works. I did this simple test. I moved your code into files rgr_cfg.c and rgr_cfg.h and call rgr_cfg_init(); that execute your same code. Howerver it doesn&amp;#39;t work. Why ?
Can you execute a test with above files calling rgr_cfg_init(); from the main ?&lt;/p&gt;
&lt;p&gt;Thanks,
Paolo.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31672?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2015 13:31:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58f25226-f25c-4c81-b60f-accfaa70e79d</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;When I used your code I disabled all mine. However I&amp;#39;ll retry and come back to you. thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31656?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2015 13:29:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b665a32a-5bb0-4cbd-b8cc-dffdab147825</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I recommend that you starting commenting out unrelated code to pstorage and see if it is working.
I am guessing some code in your rgr_xxx function is causing the problem. I have disabled all that so probably that is why it works for me. See my attached main.c file uploaded on Aug12&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31671?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2015 13:16:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82f5c33b-4e51-45d4-8f2d-aab81393de96</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;Oh no it&amp;#39;s the original DK :-(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31670?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2015 13:11:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c9e644e-d0cb-452e-8470-cf1d4cdcc6cf</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I have also used the same clock with same calibration time.
I really cannot understand what else could change. Is this a custom board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31669?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2015 13:06:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20d0df58-8ac2-4d8a-8a9c-48afbb617c11</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;I started from ANCS example and I didn&amp;#39;t touch anything about S130 ... they are both selected (s130_hex and softdevice_hex).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31668?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2015 13:04:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43aee3a6-6b77-4932-837c-4a2093219097</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;Bad news for me ... just a point ... I excluded the 32 KHz external oscillator on the DK and using :&lt;/p&gt;
&lt;p&gt;SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_250MS_CALIBRATION, NULL);&lt;/p&gt;
&lt;p&gt;is there any relation with flash and pstorage ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31667?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2015 13:03:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae65fda0-bbd2-491a-8d41-7dcd4511c283</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;use the first one. I am not sure what softdevice_hex is!!!!!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31665?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2015 13:01:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:359ed0c0-3669-4cd3-825d-235f3fdd98cb</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;it works on PCA10028, SDK 8.1.1 and S130_v1.0.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31666?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2015 13:01:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1afbad1f-dcb3-4a31-871e-4998c630c00f</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;I can&amp;#39;t attach the screenshot however under Keil uVision, I click on Manage Run-Time Environment and select nRF_SoftDevice then I have three items selected :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;s130 ... version 1.0.0&lt;/li&gt;
&lt;li&gt;s130_hex ... version 1.0.0&lt;/li&gt;
&lt;li&gt;softdevice_hex ... version 1.1.3&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31664?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2015 12:58:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0aba6cf8-0716-4416-a1c2-d51ba45a7a23</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;where did you get that version S130v.1.1.3? I see only 1.0.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31663?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2015 12:33:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58cab8ba-0668-49cc-9a10-172cc232917a</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;I&amp;#39;m using S130 v. 1.1.3 ... I&amp;#39;d like to add a screenshot here as comment but I don&amp;#39;t know how :-(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31662?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2015 10:31:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e565866d-5503-4249-8b5d-3b86d95fe2a4</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I tried, i do not remember the outcome :) , which could be because it should have worked. Otherwise i would have digged into it. Anyways, I will try again, it is not time consuming. Which SD version did you use? that matters too. Ill wait for your answer as I do not want to try with all available SD.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31661?ContentTypeID=1</link><pubDate>Mon, 07 Sep 2015 07:43:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15c2e1c5-2338-4552-8e31-ce3024f6febc</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;Hi Aryan ... sorry but on August 18 I started my vacation. I&amp;#39;m came back now but the issue is the same. Did you try with SDK 8.1.1 (my current version) ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31660?ContentTypeID=1</link><pubDate>Tue, 18 Aug 2015 06:39:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33980434-1d3a-4cc3-bd88-9a50b39f85c4</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi ppatierno,
I am sorry for late reply, but i was sick and then had few days off.
Any progress in this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31659?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2015 13:07:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d716db21-1a99-42be-982f-a059107e0843</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;yes, i can do it, but not today, sorry, i will test this on SDK 8.1.1 tomorrow.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31658?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2015 13:07:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bff2ba6f-9cb2-46d1-a460-9e4b42f87a6f</guid><dc:creator>ppatierno</dc:creator><description>&lt;p&gt;I&amp;#39;m sorry I&amp;#39;m boring you but for me it doesn&amp;#39;t work. I have same &amp;quot;wrong&amp;quot; result as using my code.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m on SDK 8.1.1 can you test with it instead of 9 ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Retrieve saved info on restard with pstorage module</title><link>https://devzone.nordicsemi.com/thread/31651?ContentTypeID=1</link><pubDate>Wed, 12 Aug 2015 12:59:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:221f7e0c-31c5-456c-bff5-9e920ccd876c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;in the main.c file can you please change
volatile uint8_t *ptr = (uint8_t *)26009; to
volatile uint8_t *ptr = (uint8_t *)260096;
i dont know how it got removed in the file i sent you.
&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0272.Capture2.PNG" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>