meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| sw:srecord [2017/09/18 12:43] – created niziak | sw:srecord [2020/07/03 10:27] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== srecord srec_cat ====== | ||
| + | |||
| ====== Convert ====== | ====== Convert ====== | ||
| <code bash> | <code bash> | ||
| Line 10: | Line 12: | ||
| </ | </ | ||
| + | ====== Crop ====== | ||
| + | |||
| + | Cut block of data in middle of input, and output it from offset zero. NOTE: offset parameter is negative | ||
| + | <code bash> | ||
| + | srec_cat $@.org -Bin -crop $(BOOTINFO_OFFSET) $$(($(BOOTINFO_OFFSET) + $(BOOTINFO_LEN))) \ | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | |||
| + | |||
| + | ====== CRC16 ====== | ||
| + | |||
| + | Make CRC16 Kermit over some subblock of code and insert calculated value at specified offset: | ||
| + | <code bash> | ||
| + | srec_cat $@.org -Bin -crop $(BOOTINFO_OFFSET) $$(($(BOOTINFO_OFFSET) + $(BOOTINFO_LEN))) \ | ||
| + | | ||
| + | -crop $(BOOTINFO_CRC_OFFSET) $$(($(BOOTINFO_CRC_OFFSET) + $(BOOTINFO_CRC_SIZE))) \ | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | 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 | ||
| + | </ | ||