XC886/888CLM
Bootstrap Loader
User’s Manual
18-10
V1.3, 2010-02
Bootstrap Loader, V1.0
18.1.2.2
The Selection of Modes
When UART BSL routine enters Phase II, it first awaits for an 8-byte Header Block, from
the host which contains the information for the selection of the modes, as shown below.
Description:
•
00
H
: The block type, which marks the block as a
Header Block
•
Mode
: The mode to be selected. Mode 0 - 6 are supported. See
•
Mode Data
: Five bytes of special information to activate corresponding mode.
•
Checksum
: The checksum of the header block. XOR of all 7 bytes.
18.1.2.3
The Activation of Modes 0 and 2
Mode 0 and Mode 2 are used to transfer a user program from the host to the XRAM and
Flash of the microcontroller respectively. The header block has the following structure:
The Header Block
Mode Data Description:
Start Addr High, Low
: 16-bit Start Address, which determines where to copy the
received program code in the XRAM/Flash
1)
Block_Length
: The whole length (block type, data area and checksum) of the following
Data or EOT Blocks.
2)3)
1) Flash address must be aligned to the wordline address, where DPL is 00
H
/40
H
/80
H
/C0
H
for P-Flash and
00
H
/20
H
/40
H
/60
H
/80
H
/A0
H
/C0
H
/E0
H
for D-Flash. If the data starts in a non-wordline address, PC Host needs to
fill up the beginning vacancies with 00H and provide the start address of that wordline address. For example,
if data starts in 0F82
H
, the PC Host will fill up the addresses 0F80
H
and 0F81
H
with 00H and provide the Start
Address 0F80
H
to
µ
C. And if data is only 8 bytes, the PC Host will also fill up the remaining addresses with
00H and transfer 64 bytes.
2) When the Block_Length is defined in Header Block, the subsequent Data or EOT Block must be of this length.
To redefine the Block_Length, it must be accompanied by a new Header Block.
Block Type
00
H
(Header Block)
Mode
(1 byte)
Mode Data
(5 bytes)
Checksum
(1 byte)
Data Area
00
H
(Header
Block)
StartAddr
High
(1 byte)
Checksum
Mode Data
00
H
/02
H
(Mode 0/2)
Block_
Length
(1 byte)
Not Used
(2 bytes)
StartAddr
Low
(1 byte)
*
Содержание XC886CLM
Страница 1: ...User s Manual V1 3 2010 02 Microcontrollers 8 Bit XC886 888CLM 8 Bit Single Chip Microcontroller...
Страница 3: ...User s Manual V1 3 2010 02 Microcontrollers 8 Bit XC886 888CLM 8 Bit Single Chip Microcontroller...
Страница 324: ...XC886 888CLM Serial Interfaces User s Manual 12 52 V1 3 2010 02 Serial Interfaces V 1 0...
Страница 663: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG...