<?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>merge into one hex</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70088/merge-into-one-hex</link><description>Hello, 
 I do my first project with nrf52. 
 I have great working app under the SES enviroment. App is downloaded to hardware under the Segger Studio and it works ok. And now I want to generate one hex file to program it via Jlink programmer. I have read</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Jan 2021 20:05:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70088/merge-into-one-hex" /><item><title>RE: merge into one hex</title><link>https://devzone.nordicsemi.com/thread/287580?ContentTypeID=1</link><pubDate>Tue, 05 Jan 2021 20:05:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db4899a7-c96a-4ba9-b680-87c7bd654af6</guid><dc:creator>xadmus</dc:creator><description>&lt;p&gt;Great thanks Amanda. Now its ok.:)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: merge into one hex</title><link>https://devzone.nordicsemi.com/thread/287424?ContentTypeID=1</link><pubDate>Tue, 05 Jan 2021 08:59:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24a7e2ac-463c-4cd2-907a-4e321f48a89d</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]what files should I merge to generate one hex file: app.hex, s132_nrf52_7.2.0_softdevice.hex is enough ? What about&amp;nbsp;mbr_nrf52_2.4.1_mbr.hex?&amp;nbsp; Is it needed ?[/quote]
&lt;p&gt;Because Softdevice has included MBR, you don&amp;#39;t need to merge MBR again.&amp;nbsp; &amp;nbsp;&lt;/p&gt;
[quote user=""]Merge is done. But when I try to load it to J-Flash v.6.92 i get error - &amp;quot;Areas overlap&amp;quot;. When I inspecting merged hex file it doesnet look good. In my opinion mergehex generates errnous output file. I have found this at line where Jflash show error:[/quote]
&lt;p&gt;&amp;nbsp;Try to also merge the hardware setting. I have tested&amp;nbsp;ble_app_blinky_pca10040_s132.hex with&amp;nbsp;&amp;nbsp;s132_nrf52_7.2.0_softdevice.hex with the following commands:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;nrfutil settings generate --family NRF52 --application ble_app_blinky_pca10040_s132.hex --application-version 1 --bootloader-version 2 --bl-settings-version 1 settings.hex
mergehex -m ble_app_blinky_pca10040_s132.hex settings.hex -o merged.hex
mergehex -m merged.hex s132_nrf52_7.2.0_softdevice.hex -o output.hex&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: merge into one hex</title><link>https://devzone.nordicsemi.com/thread/287328?ContentTypeID=1</link><pubDate>Mon, 04 Jan 2021 17:24:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f20ee86d-1ce7-42d1-908a-776013c408a7</guid><dc:creator>xadmus</dc:creator><description>&lt;p&gt;I use:&amp;nbsp;mergehex version: 10.12.1&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>