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.
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
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.
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