<?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>Using pstorage for large, non-fixed size buffers</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7605/using-pstorage-for-large-non-fixed-size-buffers</link><description>In my application I need to use the whole flash memory available (128 KB of the nRF51422 QFAC). My data is first stored on a 2KB buffer and once the buffer is full, data is compressed to another buffer and then saved to nvram. Depending on my data, compression</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Oct 2015 12:35:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7605/using-pstorage-for-large-non-fixed-size-buffers" /><item><title>RE: Using pstorage for large, non-fixed size buffers</title><link>https://devzone.nordicsemi.com/thread/27128?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2015 12:35:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8056682-d68d-418e-a547-c9e90bf1aff8</guid><dc:creator>BodyBeacon</dc:creator><description>&lt;p&gt;What kind of application is this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using pstorage for large, non-fixed size buffers</title><link>https://devzone.nordicsemi.com/thread/27127?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2015 12:39:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc92ef28-3ee7-4ba8-a704-f10dc55ba93b</guid><dc:creator>Victor Nascimento</dc:creator><description>&lt;p&gt;Hello Hung,
Thanks for the answer. By 128KB I mean the space I have left after flashing the SD v8 and my application code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using pstorage for large, non-fixed size buffers</title><link>https://devzone.nordicsemi.com/thread/27126?ContentTypeID=1</link><pubDate>Mon, 15 Jun 2015 11:39:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5f45768-4661-46e5-bbf0-6afa90501e82</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Victor: QFAC is the 256kB flash chip variant.
I think for your application where you dynamically register blocks, it&amp;#39;s better to not using pstorage &amp;#39;s modules and blocks but access the flash in pstorage raw mode.&lt;/p&gt;
&lt;p&gt;If you use SDK v7.x and ealier there is raw APIs in the pstorage.c library. If you use SDK v8.x, the raw mode is remove from the default pstorage library, you have to use pstorage_raw.c located in the same folder as pstorage.c. You can refer to the dfu example to know how we used it.&lt;/p&gt;
&lt;p&gt;You would need to maintain a database to keep track of your compressed data blocks&amp;#39; size and their address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>