Combine blocks of a Motorola S Record file into a single continuous address space and insert CRC

path/to/hexview.exe path/to/source_file/sourceFile.srec /s /XN -o path/to/destination_file/intermediateFile.bin
path/to/hexview.exe path/to/source_file/intermediateFile.bin /s /XS:32 -o path/to/destination_file/cleanSrecFile.srec
path/to/hexview.exe path/to/source_file/cleanSrecFile.srec /s /remap:BankStartAddress-BankEndAddress,LinearBaseAddress,BankSize,BankIncrement /XS:32 -o path/to/destination_file/cleanSrecFile_remaped.srec
path/to/hexview.exe path/to/source_file/cleanSrecFile.srec /s /remap:0x0–0x3bffff,0x80040000,0x3C0000,0x10000 /XS:32 -o path/to/destination_file/cleanSrecFile_remaped.srec
path/to/hexview.exe path/to/source_file/cleanSrecFile_remaped.srec /s /CS9:@0x803FFFFC;0x80040000–0x803FFFFB /XS:32 -o path/to/destination_file/cleanSrecFile_remaped_CRC.srec
  1. To convert the file to binary : File > Export > Export Binary-Data

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store