<?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>how to compare two hex files</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39122/how-to-compare-two-hex-files</link><description>How can i compare two different versions of hex file related to nrf51?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Oct 2018 13:26:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39122/how-to-compare-two-hex-files" /><item><title>RE: how to compare two hex files</title><link>https://devzone.nordicsemi.com/thread/151465?ContentTypeID=1</link><pubDate>Wed, 03 Oct 2018 13:26:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:104a64b9-8374-4bd4-a024-7fa79c161b57</guid><dc:creator>ashokraj</dc:creator><description>&lt;p&gt;Thanks for the response. Reason for this question: There are two versions of the software. we wil have to upload only version 2 in the control box but not so sure which version of software is in the control box so I would like to compare and decide.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to compare two hex files</title><link>https://devzone.nordicsemi.com/thread/151300?ContentTypeID=1</link><pubDate>Tue, 02 Oct 2018 21:22:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95a08fca-5fff-43ca-b85f-84eaaf06bb73</guid><dc:creator>AmbystomaLabs</dc:creator><description>&lt;p&gt;There are many hex editing utilities out there that will let you compare two hex files and even edit them.&lt;/p&gt;
&lt;p&gt;One such utility is HxD: &lt;a href="https://mh-nexus.de/en/hxd/"&gt;https://mh-nexus.de/en/hxd/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The better question is, is it fruitful to compare two hex files.&amp;nbsp; Unless you know precisely which bits you want to twiddle the answer is no. Even two copies of the same compiler won&amp;#39;t produce the same output unless precisely everything is the same. Same versions of all libraries and supporting files, same settings, even the pathways can affect the output.&lt;/p&gt;
&lt;p&gt;So unless you are particularly talented at reading assembly you won&amp;#39;t find much there.&amp;nbsp; Hex files are just a bunch of opcodes, memory addresses and numbers. You can decompile the hex, but most of the readable structure won&amp;#39;t be there. You will end up with a vaguely C looking thing that will be very different looking than what you started with.&lt;/p&gt;
&lt;p&gt;Here is a fun link I found on the web, discusses the same as above but gives a real life example: &lt;a href="https://reverseengineering.stackexchange.com/questions/11650/how-can-i-decompile-an-arm-cortex-m0-hex-file-to-c"&gt;https://reverseengineering.stackexchange.com/questions/11650/how-can-i-decompile-an-arm-cortex-m0-hex-file-to-c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>