<?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>Pstorage and flash crash</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19678/pstorage-and-flash-crash</link><description>Hi Nordic team, 
 This problem bothers me for a very long time. I cannot find the root cause. I used nRF51822 IC. It uses SDK11 with softdevice S130 and bootloader (but I use it as a peropheral). I used pstorage to save device name, name length and os</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Feb 2017 12:02:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19678/pstorage-and-flash-crash" /><item><title>RE: Pstorage and flash crash</title><link>https://devzone.nordicsemi.com/thread/76545?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2017 12:02:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edc33bb3-e111-4dec-91b9-4bb93e2d8a9a</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It doesn&amp;#39;t make sense to continue this publically when some of the information is private, please reply on MyPage. In the reply, please add some context to what the flash dump is showing. You have assigned Fstorage and Pstorage to use the same area of flash. Please continue this on MyPage, or else this will get very messy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pstorage and flash crash</title><link>https://devzone.nordicsemi.com/thread/76544?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2017 04:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be288fb6-1362-4afc-be83-be51f83170ce</guid><dc:creator>Ted</dc:creator><description>&lt;p&gt;Hi Petter Myhre, Please see err2.png. The data seems FSTORAGE&amp;#39;s structure. Why FSTORAGE destorys my PSTORAGE? Is it correct what I say?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pstorage and flash crash</title><link>https://devzone.nordicsemi.com/thread/76543?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2017 07:51:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4198a956-30ee-4263-b6c9-e3054dca8c08</guid><dc:creator>Ted</dc:creator><description>&lt;p&gt;I have uploaded complete project to MyPage. My name is Ted Wu, user ID is lerry_wu. Please help me to find the root cause. Thank you very much.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pstorage and flash crash</title><link>https://devzone.nordicsemi.com/thread/76542?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2017 02:57:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e452fee4-778c-4df8-b9db-f639da40e027</guid><dc:creator>Ted</dc:creator><description>&lt;p&gt;I cannot login Mypage by my user ID and password it is used at Nordic develpoer zone. Do I need to register a new account at MyPage? I don&amp;#39;t know when the issue happens. Not every set has this iuuse, it has only 5% of our porduct happen this iuuse. The pstorage is modified even if I don&amp;#39;t write any data into pstorage. It occurs occasionally. I dump the hex code of crash sets. The data of all set at 0x3B800 to 0x3B813 has the same, after address of 0x3B814 are random. (please see the attach file off err.png) Is it significant?  I need to ask my supervisor if I can upload the complete project or not.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pstorage and flash crash</title><link>https://devzone.nordicsemi.com/thread/76541?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2017 08:45:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55eaaa8d-3957-4d0a-b24c-af35f8f24efd</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You can upload it privately through your MyPage at nordicsemi.com. When does this happen? Just after programming?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pstorage and flash crash</title><link>https://devzone.nordicsemi.com/thread/76540?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2017 06:04:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:743b2ca1-4938-467c-afdb-6f036e58d0ed</guid><dc:creator>Ted</dc:creator><description>&lt;p&gt;Our product has been proceeding in mass production. This issue is about 5% of the defect rate. It occurs occasionally. How to upload complete project in secret? Our project has many files.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pstorage and flash crash</title><link>https://devzone.nordicsemi.com/thread/76546?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2017 13:55:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:622d5cb0-d4df-4905-988a-acfb7331aa55</guid><dc:creator>gorazd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;i had similair issues. The following lines worked for me:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; pg_size = NRF_FICR-&amp;gt;CODEPAGESIZE;
 pg_num  =  BLE_FLASH_PAGE_END-2; //NRF_FICR-&amp;gt;CODESIZE-1;  
 // start address:
 start_address = (uint32_t *)(pg_size * pg_num);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I read like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t tmp   = *start_address;
uint32_t tmp2 = *(start_address+1);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I write like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; sd_flash_page_erase(pg_num)
 nrf_delay_ms(500);   // wait for few ms or better wait for event
 sd_flash_write(start_address, (uint32_t*)&amp;amp;flash, flash_size)
 nrf_delay_ms(500);  // wait for few ms or better wait for event
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I got a nice  answer from &lt;a href="https://devzone.nordicsemi.com/question/113356/nrf52-flash-erase-problem/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;
Also, use #include &amp;quot;ble_flash.h&amp;quot;. And check functions for NRF_SUCCESS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Pstorage and flash crash</title><link>https://devzone.nordicsemi.com/thread/76539?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2017 13:24:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cff72d27-97c3-4e35-9365-fd67646b49eb</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Could you upload your complete project so I can test it here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>