S-Record Format (SREC)

Abstract

SREC files represent binary object code in a printable ASCII format, making them easily transportable between different systems.

Aufbau und Inhalt

Lines in an SREC begin with a prefix such as S1 (header) or S9 (footer). The pertinent prefixes for the bootloaders are S1 and S2. An S1 line describes data stored in logical memory whereas an S2 line describes data held in global memory. However, S1 and S2 lines have the same template seen here:

Type Record Length Address Data Checksum