1srec_brecord(5)               File Formats Manual              srec_brecord(5)
2
3
4

NAME

6       srec_brecord - Freescale MC68EZ328 Dragonball bootstrap record format
7

DESCRIPTION

9       This data format is understood by Freescale MC68EZ328 Dragonball series
10       processors on their internal UART.
11
12   Lines
13       Each line contains hexadecimal data, each byte represented by two hexa‐
14       decimal  nybbles in upper case.  Characters not in this set, but larger
15       than 0x30 (e.g. lower case) will be ignored, less than 0x30 (e.g. CR or
16       LF) are considered record terminators.  Comments are problematic; don't
17       try this at home.
18
19   Fields
20       Each line contains a 4‐byte address (big endian), a 1‐byte  length‐and‐
21       mode,  and  then  data  bytes  as  dictated by the length.  There is no
22       checksum.  A zero length record is an execution start  address  record,
23       non‐zero length records are data.
24
25                 ┌──┬───┬───┬───┬───┬───┬───┬───┬───┬────┬─────┬───┐
26                 │1 │ 2 │ 3 │ 4 │ 5 │ 6 │ 7 │ 8 │ 9 │ 10 │ ... │ n
27                 ├──┴───┴───┴───┴───┴───┴───┴───┼───┴────┼─────┴───┤
28                 │           Address            │ Length │  Data   │
29                 └──────────────────────────────┴────────┴─────────┘
30       The length‐and‐mode byte is formatted as follows:
31
32                           ┌──┬───┬───┬───┬───┬───┬───┬───┐
33                           │7 │ 6 │ 5 │ 4 │ 3 │ 2 │ 1 │ 0 │
34                           ├──┴───┼───┼───┴───┴───┴───┴───┤
35                           │Mode  │ R │      Length       │
36                           └──────┴───┴───────────────────┘
37       Mode    These  bits  are  ignored by SRecord in input (00 = bytes, 01 =
38               half words, 10 is reserved, 11 = long words).  These  bits  are
39               always zero on output by SRecord.
40
41       R       This  bit  indicates  a  data  read  rather  than a data write;
42               SRecord does not accept input files with this bit set, and will
43               not set it on output.
44
45       Length  The  length of the records data bytes.  It does not include the
46               address or length bytes.  The maximum payload of a record is 31
47               bytes of data.
48
49   Size Multiplier
50       In  general,  binary  data  will expand in sized by at least 2.35 times
51       when represented with this format.
52

EXAMPLE

54       Here is an example b‐record format file.  It contains the data  “Hello,
55       World” to be loaded at address 0.
56              000000000D48656C6C6F2C20576F726C640A
57

SEE ALSO

59       http://www.freescale.com/files/32bit/doc/ref_manual/MC68VZ328UM.pdf
60
62       srec_cat version 1.55
63       Copyright  (C)  1998,  1999,  2000, 2001, 2002, 2003, 2004, 2005, 2006,
64       2007, 2008, 2009, 2010 Peter Miller
65
66       The srec_cat program comes with ABSOLUTELY NO WARRANTY; for details use
67       the 'srec_cat -VERSion License' command.  This is free software and you
68       are welcome to redistribute it under certain  conditions;  for  details
69       use the 'srec_cat -VERSion License' command.
70

AUTHOR

72       Peter Miller   E‐Mail:   pmiller@opensource.org.au
73       /\/\*             WWW:   http://miller.emu.id.au/pmiller/
74
75
76
77Reference Manual                    SRecord                    srec_brecord(5)
Impressum