srec_brecord(5)
π NAME π
okay bestie, this is the manual page for srec_brecord(5) from the File Formats Manual β and it's literally the Freescale MC68EZ328 Dragonball bootstrap record format. We're gonna understand it together, periodt. π
β¨ DESCRIPTION β¨
This data format is understood by Freescale MC68EZ328 Dragonball series processors on their internal UART. Tiny embedded main-character energy, no cap. π¦
π Lines π
Each line contains hexadecimal data, each byte represented by two hexadecimal nybbles in upper case. Characters not in this set, but larger than 0x30 (e.g. lower case) will be ignored, less than 0x30 (e.g. CR or LF) are considered record terminators. Comments are problematic; don't try this at home. π
bestie, that's a warning, not a challenge: Comments are problematic; don't try this at home. π
π§© Fields π§©
Each line contains a 4-byte address (big endian), a 1-byte length-and-mode, and then data bytes as dictated by the length. There is no checksum. A zero length record is an execution start address record, non-zero length records are data. β¨
βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬βββββ¬ββββββ¬ββββ
β 1 β 2 β 3 β 4 β 5 β 6 β 7 β 8 β 9 β 10 β ... β n β
βββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββ΄ββββΌββββ΄βββββΌββββββ΄ββββ€
β Address β Length β Data β
βββββββββββββββββββββββββββββββββ΄βββββββββ΄ββββββββββ
The length-and-mode byte is formatted as follows:
βββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ¬ββββ
β 7 β 6 β 5 β 4 β 3 β 2 β 1 β 0 β
βββββ΄ββββΌββββΌββββ΄ββββ΄ββββ΄ββββ΄ββββ€
β Mode β R β Length β
βββββββββ΄ββββ΄ββββββββββββββββββββ
- Mode β These bits are ignored by SRecord in input (
00= bytes,01= half words,10is reserved,11= long words). These bits are always zero on output by SRecord. - R β This bit indicates a data read rather than a data write; SRecord does not accept input files with this bit set, and will not set it on output.
- Length β The length of the records data bytes. It does not include the address or length bytes. The maximum payload of a record is
31bytes of data.
π Size Multiplier π
In general, binary data will expand in sized by at least 2.35 times when represented with this format. (yes, that's the original wording, bestie β we keep the details π)
πΈ EXAMPLE πΈ
Here is an example b-record format file. It contains the data βHello, Worldβ to be loaded at address 0. π
000000000D48656C6C6F2C20576F726C640A
π SEE ALSO π
Β©οΈ COPYRIGHT Β©οΈ
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
Reference Manual Β· SRecord Β· srec_brecord(5) Β· srec_cat version 1.65 β that's the footer, bestie πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: srecord 1.65.0-bp160.1.12 Β· GPL-3.0-or-later
- opensuse-leap 16.0: srecord 1.65.0-bp160.1.12 Β· GPL-3.0-or-later
- opensuse-leap 16.0: srecord 1.65.0-bp160.1.12 Β· GPL-3.0-or-later
- opensuse-leap 16.0: srecord 1.65.0-bp160.1.12 Β· GPL-3.0-or-later
- Copyright (C) 2007-2011 Peter Miller
- Copyright (C) 1998, 2006-2009, 2014 Peter Miller
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms