Can SRecord do calculations on the command line?

0 votes
asked by about S-Record and Hex File Viewer

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.

1 Answer

0 votes
answered by (99.9k points)

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

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register
...