<?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>Set device configuration defaults at manufacture</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80719/set-device-configuration-defaults-at-manufacture</link><description>I have a firmware which uses FDS to store configuration, and I want to set some defaults at manufacture. The data might be hundreds of bytes. I could write the data as a binary blob to flash using nrfjprog, and on first boot load this data into memory</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Oct 2021 14:12:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80719/set-device-configuration-defaults-at-manufacture" /><item><title>RE: Set device configuration defaults at manufacture</title><link>https://devzone.nordicsemi.com/thread/334393?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 14:12:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5795e5af-805c-4cf1-8188-b0d62c61b633</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Nick,&lt;/p&gt;
&lt;p&gt;In order to write to flash you can use FDS and FDS creates the format for all the records and file IDs. You do not have to provide page tags etc. But if you need to have more control over the data that you write, you could use the &lt;strong&gt;fstorage&lt;/strong&gt; instead of FDS.&lt;/p&gt;
&lt;p&gt;So&amp;nbsp;in case you require a simple and more abstract access to flash, use FDS but if you are sure of the flash addresses etc then go for fstorage.&lt;/p&gt;
&lt;p&gt;Also, in order to understand about both, kindly refer the infocenter: &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/lib_fds.html"&gt;FDS&lt;/a&gt; and &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.1.0%2Flib_fds_format.html&amp;amp;anchor=lib_fds_format_max_length"&gt;fstorage&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope this helps. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set device configuration defaults at manufacture</title><link>https://devzone.nordicsemi.com/thread/334389?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 13:56:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:227d8b0b-dcb1-4a83-80bd-67680ee32136</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Nick,&lt;/p&gt;
&lt;p&gt;Writing to flash in FDS format sounds good. But I am afraid there are no libraries relating to this and the page you referred is a good start.&lt;/p&gt;
&lt;p&gt;In order to store a large amount of data, you can just increase the&amp;nbsp;FDS_VIRTUAL_PAGE_SIZE&amp;nbsp;in the &amp;#39;&amp;#39;sdk_config.h&amp;#39;&amp;#39;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>