XC886/888CLM
Bootstrap Loader
User’s Manual
18-19
V1.3, 2010-02
Bootstrap Loader, V1.0
18.1.3.2
The Selection of Modes
When the LIN BSL routine enters Phase II, it first awaits for a 9-byte Header Block, from
the host which contains the information for the selection of the modes, as shown below.
Description:
•
NAD
: Node Address for Diagnostic
•
00
H
: The block type, which marks the block as a
Header Block
•
Mode
: The mode to be selected. Mode 0, 1, 2, 3, 4, 6, 8 and 9 are supported. See
•
Mode Data
: Five bytes of special information to activate corresponding mode.
•
Checksum
: The Programming Checksum or LIN Checksum of the header block.
Note: Mode 8 and Mode 9 support LIN Checksum while Mode 0 - 6 support
Programming Checksum.
18.1.3.3
The Activation of Modes 0, 2 and 8
Mode 0, as well as Mode 8, 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)
No. of Data Blocks
: Total number of Data Blocks to be sent, maximum 256 (0FF
H
). To
be verified when EOT Block is received. If number does not match, microcontroller will
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 00
H
and provide the start address of that wordline address
Block Type
00
H
(Header Block)
Mode
(1 byte)
Mode Data
(5 bytes)
Checksum
(1 byte)
Data Area
NAD
(1 byte)
00
H
(Header
Block)
Start
Addr
High
(1 byte)
Checksum
Mode Data
00
H
/02
H
/08
H
(Mode 0/2/8)
Fast_
Prog
(1 byte)
Not
Used
(1 byte)
Start
Addr
Low
(1 byte)
NAD
(1 byte)
No. of
Data
Blocks
(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...