<?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>Mergehex: Overlapping segments detected at address 4096</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75586/mergehex-overlapping-segments-detected-at-address-4096</link><description>Hi! Thanks for reading this post. I&amp;#39;m having an issue creating a firmware package for our manufacturer. I&amp;#39;m using a nRF52832 with SDK version 15.3.0_59ac345. Whenever I merge try to merge everything together I am getting an error indicating that segments</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 26 May 2021 12:17:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75586/mergehex-overlapping-segments-detected-at-address-4096" /><item><title>RE: Mergehex: Overlapping segments detected at address 4096</title><link>https://devzone.nordicsemi.com/thread/311780?ContentTypeID=1</link><pubDate>Wed, 26 May 2021 12:17:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71f87a96-99a9-4f3c-9003-f6e6ab47dce4</guid><dc:creator>Jur</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;br /&gt;&lt;br /&gt;10.11.1 works fine indeed! Consider this solved, I&amp;#39;ll update to 10.12.2 later when the links are fixed.&lt;br /&gt;Thanks a lot for the help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mergehex: Overlapping segments detected at address 4096</title><link>https://devzone.nordicsemi.com/thread/311770?ContentTypeID=1</link><pubDate>Wed, 26 May 2021 11:55:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65bd963c-69c4-42e2-9545-19546c484d8d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry about that. Download does not work for any of the new variants it seems. I&amp;#39;m looking into it now.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Edit: &lt;/strong&gt;you may try version 10.11.x while I try to figure this out. The merghex bug is only present in version 10.12.0-2&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mergehex: Overlapping segments detected at address 4096</title><link>https://devzone.nordicsemi.com/thread/311763?ContentTypeID=1</link><pubDate>Wed, 26 May 2021 11:46:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f1207e8-b3ef-4d6c-a298-daaa669433dc</guid><dc:creator>Jur</dc:creator><description>&lt;p&gt;Hi, that sounds really promising. I&amp;#39;m running Linux however and the link &lt;a href="https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-command-line-tools/sw/Versions-10-x-x/10-12-2/nRF-Command-Line-Tools_10_12_2_Linux-amd64.zip"&gt;https://www.nordicsemi.com/-/media/Software-and-other-downloads/Desktop-software/nRF-command-line-tools/sw/Versions-10-x-x/10-12-2/nRF-Command-Line-Tools_10_12_2_Linux-amd64.zip&lt;/a&gt; 404&amp;#39;s for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mergehex: Overlapping segments detected at address 4096</title><link>https://devzone.nordicsemi.com/thread/311760?ContentTypeID=1</link><pubDate>Wed, 26 May 2021 11:43:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b01444f0-07a4-4040-b07f-1cf0486108ac</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please try with version 10.12.2. It was just released and includes a fix for mergehex.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1622029405429v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download#infotabs"&gt;https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Command-Line-Tools/Download#infotabs&lt;/a&gt; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mergehex: Overlapping segments detected at address 4096</title><link>https://devzone.nordicsemi.com/thread/311759?ContentTypeID=1</link><pubDate>Wed, 26 May 2021 11:40:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd6638a0-8fa2-434d-b2a5-6458152be0d1</guid><dc:creator>Jur</dc:creator><description>&lt;p&gt;Hi Vidar! Thanks for your reply. Im using: &lt;code&gt;mergehex version: 10.12.1. I&amp;#39;m starting to think the output of nRF Connect (in my second update) gives a better explanation of what is going wrong.&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mergehex: Overlapping segments detected at address 4096</title><link>https://devzone.nordicsemi.com/thread/311757?ContentTypeID=1</link><pubDate>Wed, 26 May 2021 11:33:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2777c3ce-cfb8-4e11-95c9-eaecf0f4527e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;From&amp;nbsp; SDK 15.3.0 and later, we started to store the bootloader start and MBR params page address at 0xff8 and 0xffc inside the MBR region. We used UICR registers for this previously (address 0x10001014 and 0x10001018), but we changed to using the addresses in the MBR as an extra security measure because the UICR register could not be protected with BPROT/ACL. Anyway. This does not explain the merge conflict. What version of mergehex.exe are you using (mergehex --version)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mergehex: Overlapping segments detected at address 4096</title><link>https://devzone.nordicsemi.com/thread/311706?ContentTypeID=1</link><pubDate>Wed, 26 May 2021 09:38:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:300ffe75-0366-4323-a9e0-7eb4dbe2b6a1</guid><dc:creator>Jur</dc:creator><description>&lt;p&gt;After some more Googling I figured 0x00000FF8 is the location of UICR. I was able to merge the file and flash it like this:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;# Erase chip&lt;/code&gt;&lt;br /&gt;&lt;code&gt;nrfjprog -f NRF52 -e&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;# Merge softdevice and bootloader&lt;/code&gt;&lt;br /&gt;&lt;code&gt;mergehex -m ./Libraries/nRF5_SDK_15.3.0_59ac345/components/softdevice/s132/hex/s132_nrf52_6.1.1_softdevice.hex ./Bootloader/Bootloader.hex -o _build/Merged_BL_SD.hex&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;# Generate bootloader settings&lt;/code&gt;&lt;br /&gt;&lt;code&gt;nrfutil settings generate --family NRF52 --application _build/App.hex --application-version 0 --bootloader-version 0 --bl-settings-version 2 _build/App_BLs.hex&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;# Merge app and bootloader settings with softdevice + bootloader&lt;/code&gt;&lt;br /&gt;&lt;code&gt;mergehex -m _build/Merged_BL_SD.hex _build/App.hex&amp;nbsp; _build/App_BLs.hex -o _build/Full_firmware.hex&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;# Write to chip&lt;/code&gt;&lt;br /&gt;&lt;code&gt;nrfjprog -f NRF52 --program _build/Full_firmware.hex&lt;/code&gt;&lt;br /&gt;&lt;code&gt;nrfjprog -f NRF52 --reset&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;The firmware works as expected, however when trying to view this &amp;quot;&lt;code&gt;Full_firmware.hex&lt;/code&gt;&amp;quot; in nRF connect I am still getting the following error:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;img alt="nrfconnect_error" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-2021_2D00_05_2D00_26-at-11.37.32.png" /&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mergehex: Overlapping segments detected at address 4096</title><link>https://devzone.nordicsemi.com/thread/311579?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 16:27:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73390a77-90fb-4656-a18f-5e9584af8d3a</guid><dc:creator>Jur</dc:creator><description>&lt;p&gt;Update, it seems like the data at 0x00000FF8 in the first image is not the MBR but something else. The Softdevice hex seems to contain the MBR:&lt;br /&gt;&lt;img alt="softdevice" src="https://devzone.nordicsemi.com/resized-image/__size/223x240/__key/communityserver-discussions-components-files/4/Screenshot-2021_2D00_05_2D00_25-at-18.24.50.png" /&gt;&lt;br /&gt;So the two hex files do actually overlap like reported:&lt;br /&gt;&lt;img alt="overlap" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Screenshot-2021_2D00_05_2D00_25-at-18.25.54.png" /&gt;&lt;br /&gt;So the new question is: What is the data at 0x00000FF8 and how to move it? &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>