<?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>FDS - How can I write binary data to flash while receiving via BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26603/fds---how-can-i-write-binary-data-to-flash-while-receiving-via-ble</link><description>Hi community, 
 for our application (nrf52832 / SDK 12.2) we need to store data received via BLE. The received data is a 25 kB binary blob which by design will be chopped in 20 B chunks to be sent and received via BLE. 
 Now my question is if somehow</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Nov 2017 08:34:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26603/fds---how-can-i-write-binary-data-to-flash-while-receiving-via-ble" /><item><title>RE: FDS - How can I write binary data to flash while receiving via BLE</title><link>https://devzone.nordicsemi.com/thread/104636?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2017 08:34:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18b027ad-bf77-44a0-9890-7cea8827e8f4</guid><dc:creator>emdi</dc:creator><description>&lt;p&gt;fds is more like a library to manage a collection of relatively small pieces of data, i.e. records. I don&amp;#39;t believe it might be feasible to use a 25k RAM buffer and write it all at once in fds, in order to do that you&amp;#39;d have to use a virtual page of at least 28k in size and fds would need two of such pages, one for data and one to use as swap.&lt;/p&gt;
&lt;p&gt;I would stick to fstorage for this, it has a simple API and is much more suited for your requirements.
There is an example in SDK 14.1 under examples/peripheral/flash_fstorage.&lt;/p&gt;
&lt;p&gt;Regards,
emdi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS - How can I write binary data to flash while receiving via BLE</title><link>https://devzone.nordicsemi.com/thread/104639?ContentTypeID=1</link><pubDate>Mon, 06 Nov 2017 01:34:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7d7d43b-b0a6-41c2-8d50-061ed46000be</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;On further inspection of the documentation, nodic says the following:
&amp;quot;To store larger data, increase the virtual page size or use the Experimental: Flash Storage module instead of FDS.&amp;quot;&lt;/p&gt;
&lt;p&gt;I think your application falls into this description.  You just have to decide how risk adverse you are to using experimental modules.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS - How can I write binary data to flash while receiving via BLE</title><link>https://devzone.nordicsemi.com/thread/104638?ContentTypeID=1</link><pubDate>Sun, 05 Nov 2017 22:49:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b66e3eb-2711-42a6-b57a-d77d1707df0c</guid><dc:creator>chrizz</dc:creator><description>&lt;p&gt;This was my first thought too Andrew. But since I&amp;#39;m running a freertos based system with a micropython stack I&amp;#39;m afraid of getting in trouble doing it this way. Nevertheless I need to analyze the memory of the system if its possible theoretically.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: FDS - How can I write binary data to flash while receiving via BLE</title><link>https://devzone.nordicsemi.com/thread/104637?ContentTypeID=1</link><pubDate>Sun, 05 Nov 2017 17:59:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e3b11af-fe26-47d0-bcbe-f57f6cc1817f</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;The easiest way and likely fastest/safest way, is to allocate a 25k buffer in RAM and after you have all the data, just let the FDS churn through all of it at once.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>