|
NAMEsrec_motorola - Motorola S‐Record hexadecimal file formatDESCRIPTIONThis 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. The LinesMost 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 FieldsThe 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.
Record Types
An optional record containing the number of S1, S2 and S3
records transmitted in a particular block. The count appears in the
two‐byte address field. There is no data field.
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.
An optional record containing the number of S1, S2 and S3
records transmitted in a particular block. The count appears in the
three‐byte address field. There is no data field.
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.
Size MultiplierIn general, binary data will expand in sized by approximately 2.4 times when represented with this format.EXAMPLEHere is an example S‐Record file. It contains the data “Hello, World[rq] to be loaded at address 0.S00600004844521B S110000048656C6C6F2C20576F726C640A9D S5030001FB S9030000FC COPYRIGHTsrec_cat version 1.64Copyright (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.
MAINTAINER
Visit the GSP FreeBSD Man Page Interface. |