<?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>arm-none-eabi-objcopy generates different hex files</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/117764/arm-none-eabi-objcopy-generates-different-hex-files</link><description>Hi, 
 I have a makefile generating an elf and then a hex and bin file for a nrf52 project. Now I builded up a zip file for bootloading. Which works as well. 
 Now in our CI System we checked if we could generate the hex file back from the bin file. This</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Jan 2025 14:23:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/117764/arm-none-eabi-objcopy-generates-different-hex-files" /><item><title>RE: arm-none-eabi-objcopy generates different hex files</title><link>https://devzone.nordicsemi.com/thread/519106?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2025 14:23:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e2c0af0-6abe-4eb6-b8ca-54663b504196</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi!&lt;br /&gt;Try&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;--&lt;/span&gt;&lt;span&gt;change&lt;/span&gt;&lt;span&gt;-&lt;/span&gt;&lt;span&gt;&lt;span&gt;start or&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;--&lt;/span&gt;&lt;span&gt;change&lt;/span&gt;&lt;span&gt;-&lt;/span&gt;&lt;span&gt;addresses&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: arm-none-eabi-objcopy generates different hex files</title><link>https://devzone.nordicsemi.com/thread/518521?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2025 20:41:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e08ded0-6ab7-4cf3-a9cc-ef61c75f8c19</guid><dc:creator>Constantin</dc:creator><description>&lt;p&gt;Okay I see. How do I tell objcpy about the offset?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: arm-none-eabi-objcopy generates different hex files</title><link>https://devzone.nordicsemi.com/thread/517079?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2025 16:42:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88101530-a24f-43c7-ad14-9daea7f9ab22</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you elaborate on which parts of the hex-files are different between the commands? .bin files does not contain any information about memory offsets, in comparison to ihex format. If your application is based on nRF5 SDK examples and using a softdevice, the application is typically offset to make room for the softdevice in start of flash. If you don&amp;#39;t tell objcopy about the offset, it will likely just place code at the start of the bin file, and then the placement information is lost when converting from bin to ihex.&lt;/p&gt;
&lt;p&gt;I tested your commands on my end, and the only difference I can see is that the first line (offset) is removed, and the checksums are different.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>