<?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>DFU and settings</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74365/dfu-and-settings</link><description>Hello, 
 I have reserved an area in my flash mapping for settings (0x2000 length). I would like to update it (without application) with DFU / secured bootloader / nRF toolbox on Android. Is that possible ? If yes, what are the settings to generate the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Apr 2021 13:01:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74365/dfu-and-settings" /><item><title>RE: DFU and settings</title><link>https://devzone.nordicsemi.com/thread/306546?ContentTypeID=1</link><pubDate>Fri, 23 Apr 2021 13:01:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d4bf8a9-8bf2-44b2-9cb7-79214b70e0ce</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Fabien,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The bootloader is designed so that an application update will always resign in the predefined location (right after the softdevice). This explain why when you update your setting data it doesn&amp;#39;t work.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For your purpose, if you don&amp;#39;t want to modify the bootloader I would suggest you can think of sending/receiving the setting data in your application and then store it to where you need.&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s ok to modify the bootloader then you can think of either define a new type of image see dfu_fw_type_t inside dfu-cc.pb.h&lt;/p&gt;
&lt;p&gt;Or you can re-use&amp;nbsp;DFU_FW_TYPE_EXTERNAL_APPLICATION , but you define a special location that you will store the image. When an image is generated as&amp;nbsp;&lt;span&gt;DFU_FW_TYPE_EXTERNAL_APPLICATION&amp;nbsp; (in nrfutil you use --external-app) the bootloader will only store it in the swap bank (bank 1) and won&amp;#39;t replace the application with the new image.&amp;nbsp;&lt;br /&gt;&lt;/span&gt;So in your case, you just need to modify the bootloader so that when it receive the&amp;nbsp;&lt;span&gt;DFU_FW_TYPE_EXTERNAL_APPLICATION&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;it will store the image in the data location that you selected instead of bank1 location. Doing this you don&amp;#39;t need to modify the nrfutil or the app on the phone for the task.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>