<?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 linux</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4507/mergehex-linux</link><description>Hey,
I don&amp;#39;t find a solution to &amp;quot;mergehex&amp;quot; the softdevice with my application in linux. Is there any way to do this in Linux?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Jan 2024 08:01:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4507/mergehex-linux" /><item><title>RE: mergehex linux</title><link>https://devzone.nordicsemi.com/thread/464303?ContentTypeID=1</link><pubDate>Tue, 16 Jan 2024 08:01:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a72a568b-b8c4-4f37-a3de-4a7133040a85</guid><dc:creator>namdosan1409</dc:creator><description>&lt;p&gt;I&amp;#39;d&amp;nbsp;do&amp;nbsp;`make&amp;nbsp;flash_softdevice` or verify that the&amp;nbsp;mergehex&amp;nbsp;command is including the correct&amp;nbsp;SoftDevice.&lt;span style="color:#ffffff;"&gt; &lt;a style="color:#ffffff;" href="https://cargames.one"&gt;car games&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mergehex linux</title><link>https://devzone.nordicsemi.com/thread/407962?ContentTypeID=1</link><pubDate>Fri, 03 Feb 2023 10:20:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c17a45e0-445e-4b1c-ba41-29ed02e62a39</guid><dc:creator>ginanichols</dc:creator><description>&lt;p&gt;This link doesn&amp;#39;t seem to work anymore. Can you give me another link. I really need them.&lt;/p&gt;
&lt;p style="text-align:right;"&gt;&lt;span style="color:#e3e3e3;font-size:75%;"&gt;&lt;a style="color:#e3e3e3;" href="https://geometrydashmeltdown.com"&gt;geometry dash meltdown&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;div id="gtx-trans" style="left:-120px;position:absolute;top:48px;"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mergehex linux</title><link>https://devzone.nordicsemi.com/thread/15998?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2016 12:36:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba3999cb-6b19-4e7f-b32a-ec3511a869ae</guid><dc:creator>gamnes</dc:creator><description>&lt;p&gt;mergehex utility is now provided along with the nRF5x-Command-Line-Tools release for Windows, Linux, and OSX.
&lt;a href="http://www.nordicsemi.com/eng/nordic/Products/nRF51-DK/nRF5x-Command-Line-Tools-Linux64/51392"&gt;www.nordicsemi.com/.../51392&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mergehex linux</title><link>https://devzone.nordicsemi.com/thread/15997?ContentTypeID=1</link><pubDate>Wed, 13 May 2015 08:49:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9f995ba-d221-4684-a6ae-cceb225b9b35</guid><dc:creator>Michael Antwih</dc:creator><description>&lt;p&gt;If you are on linux just use the above script provided and then use the IntelHex tools to convert the created bin to hex. Tool set provides hex2bin and bin2hex.&lt;/p&gt;
&lt;p&gt;FYI you could use the IntelHex tool to merge hex files as well with the hexmerge script.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://pypi.python.org/pypi/IntelHex/2.0"&gt;pypi.python.org/.../2.0&lt;/a&gt; (note python script)&lt;/p&gt;
&lt;p&gt;Example: hexmerge.py applicationname.hex softdevice.hex -o outfile.hex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mergehex linux</title><link>https://devzone.nordicsemi.com/thread/15996?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2015 22:25:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14379129-16b4-4123-926f-76f7a5fb1fbb</guid><dc:creator>maxpaynner</dc:creator><description>&lt;p&gt;Any updates on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mergehex linux</title><link>https://devzone.nordicsemi.com/thread/15995?ContentTypeID=1</link><pubDate>Sun, 04 Jan 2015 22:45:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:85518cfa-e806-4be7-936a-e5c04f4837a0</guid><dc:creator>Kramer</dc:creator><description>&lt;p&gt;I also need help in this issue.
I use RedBear nRF51822 and I want to be able to merge s110 hex file &amp;amp; app hex file to get an hex output file.
In your solution it creates a combined bin file.
Tried modifing it to output hex file with no luck.&lt;/p&gt;
&lt;p&gt;Any help will be appriciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: mergehex linux</title><link>https://devzone.nordicsemi.com/thread/15994?ContentTypeID=1</link><pubDate>Tue, 18 Nov 2014 19:36:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc83b891-ca40-4e43-8df6-f3be3c4a24bf</guid><dc:creator>Charles Manning</dc:creator><description>&lt;p&gt;The reason you don&amp;#39;t need a utility is that standard Linux tools+ scripting do this sort of thing very well.&lt;/p&gt;
&lt;p&gt;Try something like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#! /bin/sh
#
# Combines the Nordic s120 stack and app hex files and generate a
# combined binary.
# Stack at 0k, app at 96k
set -e -x

STACK_HEX=s120.hex
STACK_BIN=s120.bin
APP_HEX=app.hex
APP_BIN=app.bin
COMBINED_BIN=app.bin
objcopy -O binary -I ihex $STACK_HEX $STACK_BIN
objcopy -O binary -I ihex $APP_HEX $APP_BIN
dd if=/dev/zero ibs=1024 count=128 | tr &amp;quot;\000&amp;quot; &amp;quot;\377&amp;quot; &amp;gt; $COMBINED_BIN
dd if=$STACK_BIN of=$COMBINED_BIN  bs=1024 seek=0 conv=notrunc
dd if=$APP_BIN of=$COMBINED_BIN bs=1024 seek=96 conv=notrunc
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>