sierrafoxtrot / srecord

SRecord github Mirror
https://srecord.sourceforge.net/
GNU General Public License v3.0
45 stars 22 forks source link

how to merge hex appoint address #73

Open JustQY opened 2 months ago

JustQY commented 2 months ago

i have 2 hex file,1.hex,2.hex(start address 0x8000) now i want merge 2.hex to 1.hex to appoint address ,i use the command below

srec_cat 1.hex -Intel 2.hex -Intel -offset 0x7C0000 -o app.hex -Intel it works ok,but the content of 2.hex start at 0x7C8000,i just want it start from 0x7C0000. can you please tell me how to resove this?

jtxa commented 2 months ago

As long as you now the addresses, simply make the offset smaller:

srec_cat 1.hex -Intel 2.hex -Intel -offset 0x7B8000 -o app.hex -Intel