<?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>Reading flash with pstorage module</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19202/reading-flash-with-pstorage-module</link><description>I am using a nrf52832 with SDK 11.0.0 and sd132. I need to add in-flash storage to my application so I&amp;#39;m looking at the NVMEM documentation and the pstorage module. I understand that writing to flash has some limitations as you can only write zeros and</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Jan 2017 09:19:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19202/reading-flash-with-pstorage-module" /><item><title>RE: Reading flash with pstorage module</title><link>https://devzone.nordicsemi.com/thread/74387?ContentTypeID=1</link><pubDate>Fri, 27 Jan 2017 09:19:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:153f5eab-ebe0-4792-a094-14530793151d</guid><dc:creator>genis</dc:creator><description>&lt;p&gt;Ok thank you Petter. I am using the FDS library now. Indeed, when a record in FDS is oven via fds_record_open() a pointer to a memory position that maps to flash memory is return as record data. Thanks for your support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading flash with pstorage module</title><link>https://devzone.nordicsemi.com/thread/74386?ContentTypeID=1</link><pubDate>Wed, 25 Jan 2017 10:11:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfe1e2f8-8451-4a71-8884-eaadbbf1437d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Yes, as far as I know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading flash with pstorage module</title><link>https://devzone.nordicsemi.com/thread/74385?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 16:50:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6861f6d8-b786-4c11-88d3-be881ca01c5b</guid><dc:creator>genis</dc:creator><description>&lt;p&gt;Ok I was looking at the store operation instead of the update operation in pstorage. It looks like the update operation does copy block contents in a swap area.&lt;/p&gt;
&lt;p&gt;Anyway, should I be able to read from flash memory as it was from RAM memory? That is, given a pointer to a region that maps to flash, could I read from where it points to, as with any other regular pointer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading flash with pstorage module</title><link>https://devzone.nordicsemi.com/thread/74384?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 14:39:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7f29565-9e14-457b-b8f1-45e27448fd01</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I don&amp;#39;t think it is strictly necessary, have you tried?&lt;/p&gt;
&lt;p&gt;If you want to update, you can use pstorage_update().&lt;/p&gt;
&lt;p&gt;When using the update routine, the Persistent Storage Manager will use a swap flash area to conserve the blocks not affected. The data page is backed up in the swap area before it is erased, then the non affected blocks are copied back before the updated block is stored.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>