XC886/888CLM
Bootstrap Loader
User’s Manual
18-3
V1.3, 2010-02
Bootstrap Loader, V1.0
18.1.1
Communication Protocol
Once baud rate is established, the host sends a block of information to the
microcontroller to select the desired mode. All blocks follow the specified block structure
as shown in
microcontroller respond to host by sending specific response code as shown in
.
18.1.1.1
UART Transfer Block Structure
A UART transfer block consists of three parts:
•
Block Type
: the type of block, which determines how the data area is interpreted.
Implemented block types are:
00
H
type “
HEADER
”
Header Block has a fixed length of 8 bytes. Special information is
contained in the data area of the Header Block, which is used to select
different modes.
01
H
type “
DATA
”
Data Block is used in Mode 0 and Mode 2 to transfer a portion of
program code. The program code is in the data area of the Data Block.
1)
1)
The length of Data and EOT Blocks is defined as Block_Length in the Header Block.
02
H
type “
END OF TRANSMISSION” (EOT)
EOT Block is the last block in data transmission in Mode 0 and Mode 2.
The last program code to be transferred is in the data area of the EOT
Block.
•
Data Area
: Data size is 6 bytes for Header Block and cannot exceed 96 bytes for
both Data and EOT Blocks.
2)
2)
The length of data area is always 64 bytes for Mode 2 when targeting P-Flash since the P-Flash is written by
a wordline of 64 bytes each time. For D-Flash, the length of data area can range from 32 to 96 bytes but always
in multiples of 32 since D-Flash is written by a wordline of 32 bytes each time. If there is less than one wordline
to be programmed to Flash, the host needs to fill up vacancies with 00
H
and transfer Flash data in length of
32, 64 and 96 bytes, depending on the Flash type.
•
Checksum
: the XOR checksum of the block type and data area sent by the host.
BSL routine calculates the checksum of the received bytes (block type and data
area) and compares it with received checksum.
Block Type
(1 byte)
Data Area
(XX bytes)
Checksum
(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...