Datasheet
HH
VS1053B OGG VORBIS ENCODER VSMPG
4.2 How to Load an .IMG File
The VS1053 image format is a bootable / loadable binary format with a three-byte
header, followed by one or more boot records. The default image file suffix is “.IMG”.
The 3-byte header is shown below:
VS1053 Boot Header, begins the file
Name Bytes Description
HEADER 3 “P&H” (0x50, 0x26, 0x48)
A boot record is shown below:
VS1053 Boot Record, from 1 to n, last is always TYPE = Execute
Name Bytes Description
TYPE 1 0 = Instruction memory
1 = X data memory
2 = Y data memory
3 = Execute
L1 L0 2 LEN = 256×L1 + L0
A1 A0 2 ADDR = 256×A1 + A0
D1 D0 LEN DATA = 256×D1 + D0, repeat LEN/2 times
The last boot record is always with TYPE = Execute. When an execute record is found,
ADDR is the start address of the application.
The VS1053 boot sequence will skip any unknown records.
Rev. 1.70c 2012-11-16
Page 32(39)