srec_tektronix_extended(5)

πŸŽ€ srec_tektronix_extended(5) β€” Tektronix Extended hexadecimal file format πŸŽ€

okay so bestie, this page lives in the File Formats Manual section and it's all about srec_tektronix_extended, the Tektronix Extended hexadecimal file format. Manual name folded in near the top, slay. πŸ’…


πŸ’– NAME πŸ’–

<pink>srec_tektronix_extended</pink> β€” Tektronix Extended hexadecimal file format. Periodt.


πŸ¦‹ DESCRIPTION πŸ¦‹

This format lets binary files be uploaded and downloaded between two computer systems β€” typically between a computer system (such as a PC, Macintosh, or workstation) and an emulator or evaluation board for microcontrollers and microprocessors. It's giving "moving bytes between two vibes" and honestly? Iconic. ✨

🌸 The Lines 🌸

Lines always start with a percent (%) character. No cap.

Each line consists of 5 fields. These are the length field, the type field, the checksum, the address field (including address length), and the data field.

β”Œβ”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”
β”‚ % β”‚ Length β”‚ Type β”‚ Checksum β”‚ Address β”‚ Data β”‚
β””β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”˜

πŸ’œ The Fields πŸ’œ

πŸ“ Record Length

The record length field is a 2 character (1 byte) field that specifies the number of characters (not bytes) in the record, excluding the percent.

🧚 Type

The type field is a 1 character field that specifies whether the record is data (6) or termination (8).

🌈 Checksum

The checksum is a 2 character (1 byte) field that represents the sum of all the nibbles on the line, excluding the checksum.

⭐ Address

This is a 9 character field. The first character is the address size; it is always 8. The remaining 8 characters are the 4-byte address that specifies where the data is to be loaded into memory.

πŸŽ€ Data

The data field contains the executable code, memory-loadable data or descriptive information to be transferred.

πŸ”₯ Record Types πŸ”₯

  • 6 β€” a record containing data. The data is placed at the address specified.
  • 8 β€” a termination record. The address field may optionally contain the address of the instruction to which control is passed. There is no data field.

πŸ‘‘ Size Multiplier πŸ‘‘

In general, binary data will expand in size by approximately 2.5 times when represented with this format.


πŸ’€ EXAMPLE πŸ’€

Here is an example Tektronix extended file. It contains the data β€œHello, World” to be loaded at address 0x006B.

%256D980000006B48656C6C6F2C20576F726C64210A
%09819800000000

srec_cat version 1.65

Copyright (C) 1998... Peter Miller

The srec_cat program comes with ABSOLUTELY NO WARRANTY; for details use the 'srec_cat -VERSion License' command. This is free software and you are welcome to redistribute it under certain conditions; for details use the 'srec_cat -VERSion License' command.


🌈 MAINTAINER 🌈

  • Scott Finneran β€” E-Mail: scottfinneran@yahoo.com.au
  • Peter Miller β€” E-Mail: pmiller@opensource.org.au

okay bestie, cute sign-off time πŸ’– the footer says Reference Manual for source/version SRecord, with page srec_tektronix_extended(5) β€” and there's literally no date printed in that footer, so no date to spill. Bye bestie! βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from