<?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>which bootloader flash region can be writed?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81971/which-bootloader-flash-region-can-be-writed</link><description>Hi Nordic, 
 
 I want to write a value from the application layer to the bootloader flash region through uart, and use this value to replace the button 4&amp;#39;s function of entering DFU mode. 
 which bootloader flash region can be writed? 
 or which flash</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Nov 2021 12:32:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81971/which-bootloader-flash-region-can-be-writed" /><item><title>RE: which bootloader flash region can be writed?</title><link>https://devzone.nordicsemi.com/thread/340905?ContentTypeID=1</link><pubDate>Fri, 26 Nov 2021 12:32:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2eba8146-6e8f-4fa2-9200-50e69b702302</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Leo,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can add either FDS or Fstorage depending upon your comfort. However, I would suggest to use FDS as it is a bit easier to implement. You can refer the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.1.0%2Ffds_example.html"&gt;FDS example&lt;/a&gt; to do this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Swathy&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: which bootloader flash region can be writed?</title><link>https://devzone.nordicsemi.com/thread/340751?ContentTypeID=1</link><pubDate>Thu, 25 Nov 2021 13:34:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbd5a1ac-66d6-4fb6-a277-3f1bc460431f</guid><dc:creator>Leo Lin</dc:creator><description>&lt;p&gt;Hi SwRa,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thank you for your quick reply.&lt;/p&gt;
&lt;p&gt;I am trying FDS and fstorage.&lt;/p&gt;
&lt;p&gt;So I should add FDS or fstorage to the source code of application and bootloader, because my bootloader must use FDS or fstorage to read the value written to flash. right?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Leo.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: which bootloader flash region can be writed?</title><link>https://devzone.nordicsemi.com/thread/340711?ContentTypeID=1</link><pubDate>Thu, 25 Nov 2021 12:09:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:637ffb92-7799-4d5c-af6a-150b95a13ee0</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi Leo,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can use either FDS or fstorage to do this as both works fine. When using fstorage, you can use&amp;nbsp;any available flash pages i.e., the ones that are not used by softdevice, application and bootloader. Using FDS will be&amp;nbsp;easier&amp;nbsp;and you need not worry about the available flash pages as&amp;nbsp;FDS only uses the flash pages that are allocated to it in the config.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Swathy&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: which bootloader flash region can be writed?</title><link>https://devzone.nordicsemi.com/thread/340632?ContentTypeID=1</link><pubDate>Thu, 25 Nov 2021 05:29:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cba5a293-dbe9-4a7c-b5aa-dc6e39fd693b</guid><dc:creator>Leo Lin</dc:creator><description>&lt;p&gt;Hi SwRa,&lt;/p&gt;
&lt;p&gt;thank you for your reply.&lt;/p&gt;
&lt;p&gt;I have already seen this&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Flib_bootloader.html&amp;amp;resultof=%22%62%6f%6f%74%6c%6f%61%64%65%72%22%20%22%62%6f%6f%74%6c%6f%61%64%22%20"&gt;memory layout&lt;/a&gt;&amp;nbsp;but I still don&amp;rsquo;t know where in the flash (or which page) can be written.&lt;/p&gt;
&lt;p&gt;Should I see the status of flash usage to decide? If there is a page that is empty, it can be written.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Another question is should I use Flash Data Storage (FDS) or Flash Storage (fstorage) for writing API?&amp;nbsp;Or is there any other better API?&lt;br /&gt;I only need to write a value to flash, this value can be written from the application, and the value can be read by the bootloader.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank in advance.&lt;/p&gt;
&lt;p&gt;Leo.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: which bootloader flash region can be writed?</title><link>https://devzone.nordicsemi.com/thread/340248?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 07:59:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3048e2fb-df47-41cb-ba4e-cf509e6f9e0d</guid><dc:creator>SwRa</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Kindly take a look at the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Flib_bootloader.html&amp;amp;resultof=%22%62%6f%6f%74%6c%6f%61%64%65%72%22%20%22%62%6f%6f%74%6c%6f%61%64%22%20"&gt;memory layout&lt;/a&gt; of different nRF52 chips to get an idea of the flash storage space available to store data.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Swathy&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>