S-Record and Hex File Viewer questions & answers

A collection of powerful tools for manipulating EPROM load files
A
Question by amanning
137 views
July 18, 2023

I want to remove the last 4 bytes of an intel hex file using srec_cat.
I tried to use "srec_cat infile -crop 0 -maximum-addr infile -4" but this does not work.

Usha Kumari
Answer by Usha Kumari

Yes, SRecord can perform calculations on the command line. To remove the last 4 bytes of an Intel Hex file using srec_cat, the command should be modified to:
"srec_cat infile -crop 0 -maximum-addr infile -srec_len Intel -o outfile -Intel -crop 0 -maximum-addr infile -4

Ask a question about S-Record and Hex File Viewer

Alternative downloads

File Viewer Plus
rating

Universal file viewer, editor, and converter supporting 300 formats.

Hex Workshop
rating

It is a complete set of hexadecimal development tools.

DBF Viewer 2000
rating

View and edit DBF files and automate data editing using commandline.