<?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 example for storage data in the FLASH</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45710/pstorage-example-for-storage-data-in-the-flash</link><description>I need to store a data base into an area of the FLASH. I understand I need to use the pstorage capability. All the reference I found about it , are just part of the code where the entire project is missing. For example, I need to use pstorage_init but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 May 2019 09:39:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45710/pstorage-example-for-storage-data-in-the-flash" /><item><title>RE: pstorage example for storage data in the FLASH</title><link>https://devzone.nordicsemi.com/thread/186623?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 09:39:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:441c8ae6-d78f-49f0-8686-04ab7de9189a</guid><dc:creator>awneil</dc:creator><description>[quote userid="8138" url="~/f/nordic-q-a/45710/pstorage-example-for-storage-data-in-the-flash/186532"]It would be really nice if these links actually worked[/quote]
&lt;p&gt;As &lt;a href="https://devzone.nordicsemi.com/members/edvin-holmseth"&gt;Edvin&lt;/a&gt; said, Nordic recently broke them.&lt;/p&gt;
&lt;p&gt;If you find other such broken links, you can report them here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/backstage/f/welcome-to-the-devzone/46958/broken-links-since-moving-back-to-infocentre-from-doclib"&gt;https://devzone.nordicsemi.com/backstage/f/welcome-to-the-devzone/46958/broken-links-since-moving-back-to-infocentre-from-doclib&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;(I&amp;#39;ve done these ones).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pstorage example for storage data in the FLASH</title><link>https://devzone.nordicsemi.com/thread/186562?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 07:35:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e184ac38-9367-4fbb-b9ae-f4eb79c91205</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Sorry. We had some issues with our documentation website, and moved back to the old one. These are the libraries that &lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt; linked to:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Flib_fstorage.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Flib_fstorage.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Flib_fds.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Flib_fds.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pstorage example for storage data in the FLASH</title><link>https://devzone.nordicsemi.com/thread/186532?ContentTypeID=1</link><pubDate>Sun, 12 May 2019 23:30:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ecd5a5f-e994-4685-9184-342c0d95fbbd</guid><dc:creator>Jordan Archer</dc:creator><description>&lt;p&gt;It would be really nice if these links actually worked.&amp;nbsp; What are the current links?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pstorage example for storage data in the FLASH</title><link>https://devzone.nordicsemi.com/thread/180223?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 09:16:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2180174f-95a6-4464-a6c9-ac24fc4069e2</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;these on flash storage might be helpful ...&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35843/flash-data-storage-fds-what-is-the-point-of-files-and-records"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/35843/flash-data-storage-fds-what-is-the-point-of-files-and-records&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35901/nrf5-sdk-v15-0-0-fds---is-alignment-still-required"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/35901/nrf5-sdk-v15-0-0-fds---is-alignment-still-required&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/35842/flash-data-storage-fds-what-is-the-page-size"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/35842/flash-data-storage-fds-what-is-the-page-size&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pstorage example for storage data in the FLASH</title><link>https://devzone.nordicsemi.com/thread/180174?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 07:44:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7dbf2b40-0c26-4502-b785-c83bd12c8bdd</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;FDS guide:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/lib_fds_usage"&gt;https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/lib_fds_usage&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;fstorage guide:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/lib_fstorage"&gt;https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-2-0/lib_fstorage&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pstorage example for storage data in the FLASH</title><link>https://devzone.nordicsemi.com/thread/180144?ContentTypeID=1</link><pubDate>Thu, 04 Apr 2019 05:58:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30968b5f-7a5a-4e6e-9deb-9b82e27794af</guid><dc:creator>Bar</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/edvin-holmseth"&gt;Edvin&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;I see the example of the FDS.&lt;/p&gt;
&lt;p&gt;I want to write a record which is a struct with a unique name so I can find it even on the next power up. As I look inside it is look that&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;ret_code_t fds_record_write(fds_record_desc_t * const p_desc, fds_record_t const * const p_record)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;do the job. If so I&amp;nbsp;still don&amp;#39;t know if the descriptor is written automatically by the file system or I need to give it the data like:&lt;/p&gt;
&lt;p&gt;file_id , key. For the p_data I assume this is a pointer to my data to store. Is there a specific structure need or any length just to be u32 size?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ANd how the rec can be const if I dynamically put data to?&lt;/p&gt;
&lt;p&gt;Is there a user guide explain the process for writing, reading &amp;amp; delete on that example?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Bar.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pstorage example for storage data in the FLASH</title><link>https://devzone.nordicsemi.com/thread/179964?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 11:27:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35fc255a-f903-40f8-b9d0-f3fc854ca304</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;As &lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt; says, fstorage is the new pstorage. It changed around SDK12 if I don&amp;#39;t remember wrong. Check out the examples SDK15.2.0\examples\peripheral\flash_fstorage or SDK15.2.0\examples\peripheral\flash_fds.&lt;/p&gt;
&lt;p&gt;fstorage is a very simple flash write library, where you have to manage the addresses yourself.&lt;/p&gt;
&lt;p&gt;FDS uses fstorage, and creates records that you can write, edit and delete. It ensures an even wear of the flash, and you don&amp;#39;t need to worry about where you want to put your records (addresses).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hint: If you want to update or delete something you write in flash, you can&amp;#39;t use the same address without deleting the entire flash page. This is what FDS handles for you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pstorage example for storage data in the FLASH</title><link>https://devzone.nordicsemi.com/thread/179954?ContentTypeID=1</link><pubDate>Wed, 03 Apr 2019 11:01:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e39e39f1-1234-4820-b3db-91c609411f27</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;For SDK 15, look at fstorage &amp;amp; FDS:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/lib_fstorage"&gt;https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/lib_fstorage&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/lib_fds"&gt;https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/lib_fds&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>