【嵌入式常用工具】Srecord使用
- 文件格式
- -Intel 表示hex格式
- -Motorola 表示S19格式
- -BINary 表示bin格式
- 截取指定地址段
srec_cat input.s19 -Motorola -crop 0x80010000 0x80380000 -output output.s19 -Motorola -address-length=4
- 填充指定地址段
srec_cat input.s19 -Motorola -fill 0xFF 0x100 0x200 -output output.s19 -Motorola -address-length=4
用0xFF 填充 0x100-0x200,不包括0x200的字节
- 删除指定地址段
srec_cat input.s19 -Motorola -exclude 0x80010000 0x80380000 -output output.s19 -Motorola -address-length=4
- 地址偏移
srec_cat input.s19 -Motorola -offset -0x11 -output output.s19 -Motorola -address-length=4
地址整体减小0x11
- 合并
srec_cat input.s19 -Motorola input2.s19 -Motorola -output output.s19 -Motorola -address-length=4
https://gitcode.com/open-source-toolkit/6b787/?utm_source=tools_gitcode&index=top&type=card&webUrl=