Incorrect Extended Tektronix Hexadecimal File Format
Brought to you by:
pmiller,
scottfinneran
The extended Tektronix hexadecimal file format is incorrectly specified in the SRecord documentation and consequently the source code. The definition of the record length field of the file format is wrong. SRecord defines record length as “a 2 character (1 byte) field that specifies the number of characters (not bytes) in the record, excluding the percent, the length field, the type field and the checksum.” However, Texas Instruments, IBM, and Data I/O documentation define record length as “the number of characters in the record, minus the percent.” Both the extended Tektronix hexadecimal input and output filters need to be modified to account for the length field, type field and checksum in the record length.
Extended Tektronix Hexadecimal file format descriptions
The implementation is correct however the documentation is indeed wrong. I've made the suggested changes to the docs and they'll be updated in v1.64.
Thanks also for the docs. Very handy external reference.