Intel HEX file manipulator - v1.0.1
git clone https://github.com/ctarsjp/ihex
cd ihex
make build# Add new data (fails if overlaps)
ihex add <input.hex> <address> <bytes> -o <output.hex>
# Patch existing data (fails if not present)
ihex patch <input.hex> <address> <bytes> -o <output.hex>
# Version
ihex --versionihex add input.hex 0x1000 A1B2C3 -o output.hex
ihex patch app.hex 4096 "A1 B2 C3" -o out.hex
ihex add fw.hex 0x2000 "0xA1,0xB2,0xC3" -o out.hex
ihex patch firmware.hex 0x3000 "a1:b2:c3:d4" -o patched.hexA1B2C3"A1 B2 C3""0xA1,0xB2,0xC3""a1:b2:c3"
- Hex:
0x1000 - Decimal:
4096