srec_motorola(5) | File Formats Manual | srec_motorola(5) |
srec_motorola - Motorola S‐Record hexadecimal file format
This format is also known as the Exorciser, Exormacs or Exormax format.
Motorola's S‐record format allows binary files to be uploaded and downloaded between two computer systems. This type of format is widely used when transferring programs and data between a computer system (such as a PC, Macintosh, or workstation) and an emulator or evaluation board for Motorola microcontrollers and microprocessors.
Most S‐Record file contain only S‐Record lines (see the next section), which always start with a capital S character. Some systems generate various “extensions[rq] which usually manifest as lines which start with something else. These “extension[rq] lines may or may not break other systems made by other vendors. Caveat emptor.
The S‐Record format consists of 5 fields. These are the type field, length field, address field, data field, and the checksum. The lines always start with a capital S character.
S | Type | Record Length | Address | Data | Checksum |
This record is optional, you do not have to use it. Nobody knows if you can have more than one in a file; and if you do, nobody knows whether or not the line count resets after each one.
The srec_cat command will only ever use one, provided the number of lines fits in 16 bits, otherwise it will use S6.
This record is optional, you do not have to use it. Nobody knows if you can have more than one in a file; and if you do, nobody knows whether or not the line count resets after each one.
Nobody knows what happens if you mix S5 and S6 records in a file.
The srec_cat command will only ever use one, provided the number of lines fits in 24 bits.
In general, binary data will expand in sized by approximately 2.4 times when represented with this format.
Here is an example S‐Record file. It contains the data “Hello, World[rq] to be loaded at address 0.
S00600004844521B S110000048656C6C6F2C20576F726C640A9D S5030001FB S9030000FC
srec_cat version 1.64
Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
2008, 2009, 2010, 2011, 2012, 2013, 2014 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.
Scott Finneran | E‐Mail: | scottfinneran@yahoo.com.au |
Peter Miller | E‐Mail: | pmiller@opensource.org.au |
SRecord | Reference Manual |