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

--

--

--

I stare at screens for a living.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Last-Minute Touchups for Better Code Quality in Python

Coding: My Journey So Far

A Brute-Force Approach to Physically Based Rendering

TestNG ITestContext Usage

Speed up SSH connection in your Linux Server

ZeroDark — Responsive Project Management System

First Time Web Dev explains Agile in Layman’s Terms

Hard Graph

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
Abhishek Anand

Abhishek Anand

I stare at screens for a living.

More from Medium

Git & GitHub Tutorial for Beginners

12+1 = 13! — Quotidian — 013

How to contribute to Eclipse JKube?

Scrum — Team Workflow That Is on the Rise