srec_cat mumble.hex -intel -o mumble.bin -binary srec_cat mumble.bin -binary -o mumble.hex -intel
srec_cat mumble.bin -binary -o - -hex_dump
Cut block of data in middle of input, and output it from offset zero. NOTE: offset parameter is negative
srec_cat $@.org -Bin -crop $(BOOTINFO_OFFSET) $$(($(BOOTINFO_OFFSET) + $(BOOTINFO_LEN))) \ -offset -$(BOOTINFO_OFFSET) \ -Output $@.bi -Bin
Make CRC16 Kermit over some subblock of code and insert calculated value at specified offset:
srec_cat $@.org -Bin -crop $(BOOTINFO_OFFSET) $$(($(BOOTINFO_OFFSET) + $(BOOTINFO_LEN))) \ -Little_Endian_CRC16 $(BOOTINFO_CRC_OFFSET) -XMODEM -Least_To_Most \ -crop $(BOOTINFO_CRC_OFFSET) $$(($(BOOTINFO_CRC_OFFSET) + $(BOOTINFO_CRC_SIZE))) \ $@.org -Bin -exclude $(BOOTINFO_CRC_OFFSET) $$(($(BOOTINFO_CRC_OFFSET) + $(BOOTINFO_CRC_SIZE))) \ -Output $@ -Bin
srec_cat $@.org -Bin -crop $(BOOTINFO_OFFSET) $$(($(BOOTINFO_OFFSET) + $(BOOTINFO_LEN))) \ -Big_Endian_CRC16 $(BOOTINFO_CRC_OFFSET) \ -crop $(BOOTINFO_CRC_OFFSET) $$(($(BOOTINFO_CRC_OFFSET) + $(BOOTINFO_CRC_SIZE))) \ -Output - -hex-dump