<?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>nrfjprog programming custom flash regions</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18369/nrfjprog-programming-custom-flash-regions</link><description>Lets assume i have 3 hex files: 
 
 
 softdevice.hex (addresses 0x0 to 0x1f000) 
 
 
 mySoft1.hex (addresses 0x1f000 to (0x1f000 + size of my program) and 0x7ff00 to 0x7ff80) 
 
 
 mySoft2.hex (addresses from 0x7ff80 to 0x80000) 
 
 
 I would</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Dec 2016 12:50:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18369/nrfjprog-programming-custom-flash-regions" /><item><title>RE: nrfjprog programming custom flash regions</title><link>https://devzone.nordicsemi.com/thread/70911?ContentTypeID=1</link><pubDate>Tue, 13 Dec 2016 12:50:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a0bd2b4-5bb5-4c63-8043-3bdcb5bdb138</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can use &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.tools/dita/tools/nrf5x_command_line_tools/nrf5x_mergehex.html?cp=5_0_2"&gt;mergehex&lt;/a&gt; for this. With mergehex you can merge up to three hex files into a single hex file.&lt;/p&gt;
&lt;p&gt;With this command:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;mergehex -m file1.hex file2.hex file3.hex -o output_file.hex
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;the file1.hex, file2.hex and file3.hex will be merged into the output_file.hex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>