<?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>Secure DFU: Bootloader Settings</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68022/secure-dfu-bootloader-settings</link><description>Hi, 
 
 I am trying to create a combined Bootloader + Bootloader Settings + Application hex file to flash the same into the devices during the production. 
 Bootloader Project: 
 pca10056_uart 
 Bootloader Settings: 
 
 Please note that I didn&amp;#39;t give</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Jan 2021 16:55:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68022/secure-dfu-bootloader-settings" /><item><title>RE: Secure DFU: Bootloader Settings</title><link>https://devzone.nordicsemi.com/thread/290600?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 16:55:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74ba8f3a-10ea-4665-9d5d-9a04b68c5c73</guid><dc:creator>RVM</dc:creator><description>&lt;p&gt;Thanks Vidar&lt;/p&gt;
&lt;p&gt;That makes perfect sense.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;RMV&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Bootloader Settings</title><link>https://devzone.nordicsemi.com/thread/290398?ContentTypeID=1</link><pubDate>Thu, 21 Jan 2021 07:23:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85fa6d5f-97fc-4355-b0b6-5cbbd3bb839a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Your understanding is correct, the &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s132/SDS/s1xx/mbr_bootloader/mbr_bootloader.html"&gt;MBR &lt;/a&gt;is included in the Softdevice binary (0x0 - 0x1000), and it&amp;#39;s never rewritten during DFU. OP had an application that didn&amp;#39;t use the Softdevice, and therefore had to program our standalone MBR binary to support DFU.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Bootloader Settings</title><link>https://devzone.nordicsemi.com/thread/290357?ContentTypeID=1</link><pubDate>Wed, 20 Jan 2021 19:38:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9221518-db34-479a-9081-1e72b5a426d5</guid><dc:creator>RVM</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I do not understand why the proposed solution &amp;#39;fixes the original problem&amp;#39;.&lt;/p&gt;
&lt;p&gt;My understanding is that if I program a softdevice to the board, it should ALSO program the MBR at address 0x0.&lt;br /&gt;And it is also my understanding that one does NOT need to rewrite this MBR to support a secure bootloader/DFU module placed at another location in the flash memory map.&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;RMV&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Bootloader Settings</title><link>https://devzone.nordicsemi.com/thread/279189?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 10:40:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dc61cbe-b355-4965-a606-36c154a4f2a0</guid><dc:creator>tejaChintalapati</dc:creator><description>&lt;p&gt;Thanks Vidar. Indeed, this is the problem.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s how I fixed the problem:&lt;/p&gt;
&lt;p&gt;Merging MBR, BL Settings and BL Hex files&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mergehex -m mbr_nrf52_2.4.1_mbr.hex bootloader_settings.hex secure_bootloader_uart_mbr_pca10056.hex -o bl_mbr_blSettings.hex&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Merging the App with BL&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;mergehex -m bl_mbr_blSettings.hex Firmware_PD52840V1R1.hex -o combinedHex.hex&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;After flashing the combinedHex.hex, nRF is booting up as expected. Thanks for the help. I appreciate the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Bootloader Settings</title><link>https://devzone.nordicsemi.com/thread/279129?ContentTypeID=1</link><pubDate>Tue, 10 Nov 2020 07:32:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6449774-5fb7-477d-87a3-cc258b21e457</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The combinedHex.hex did not include the MBR section. Here&amp;#39;s how I checked it with nrfjprog:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;$ nrfjprog --program combinedHex.hex --chiperase -r&lt;br /&gt;Parsing hex file.&lt;br /&gt;Erasing user available code and UICR flash areas.&lt;br /&gt;Applying system reset.&lt;br /&gt;Checking that the area to write is not protected.&lt;br /&gt;Programming device.&lt;br /&gt;Applying system reset.&lt;br /&gt;Run.&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;$ nrfjprog --memrd 0&lt;br /&gt;0x00000000: FFFFFFFF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |....|&amp;nbsp; &lt;span style="color:rgba(0, 128, 0, 1);"&gt;/* Flash at address 0x0 is erased */&lt;/span&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;/p&gt;
&lt;p&gt;The MBR hex file can be found in &amp;lt;sdk_root&amp;gt;\components\softdevice\mbr\hex\&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Bootloader Settings</title><link>https://devzone.nordicsemi.com/thread/279076?ContentTypeID=1</link><pubDate>Mon, 09 Nov 2020 15:43:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af324bfa-91c8-4683-9d5a-d02c2981fc70</guid><dc:creator>tejaChintalapati</dc:creator><description>&lt;p&gt;Thanks Vidar.&lt;/p&gt;
&lt;p&gt;I believe the merged hex contains MBR at the address 0x000000 as shown in the hex files shown. Can you please have a look and see if the hex files are merged correctly?&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nRF52840_5F00_Combined_5F00_Hex.rar"&gt;devzone.nordicsemi.com/.../nRF52840_5F00_Combined_5F00_Hex.rar&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU: Bootloader Settings</title><link>https://devzone.nordicsemi.com/thread/278772?ContentTypeID=1</link><pubDate>Fri, 06 Nov 2020 12:40:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c359cbe5-d9b5-434e-90d1-16e254aa75a8</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Looks like you are doing everything correctly, but I can&amp;#39;t tell if the merged hex includes the MBR at the beginning of flash or not, does it (&lt;span&gt;&lt;a title="Memory layout" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_bootloader.html?cp=7_1_3_5_0_7#lib_bootloader_memory"&gt;Memory layout&lt;/a&gt;&lt;/span&gt;)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>