Download XC16x CAN Bootstrap Loader

Transcript
CAN Bootstrap Loader for XC16x
Downloading User Code with CAN Bootstrap Loader
Init output P9.4 =high
prepare CAN
Com m unication with
sending init. fram e
(M 1: Tx M SG ID=0x555
M 0: Rx accept. disable)
the inti. fram e:
ID= 0x555,
Data register 0 low = BTL,
Data register 0 high = ACK_ID=0x1554,
Data register 1 low = M SG _CNT = 0xFF
Init. phase
the ack. fram e:
ID= AC K_ID = 0x554
Data register 0 low = BTL,
Data register 0 high = ACK_ID=0x1554
Com m unication ready
M O 1: ID reconfiguration
Entering TwinCAN BSL
Ack. phase
Data fram e:
ID= xxx, with 8 bytes
m ax CAN m essages = 255
Data phase
prepare send data , set
TxRQ up to max M SG
num ber.
Figure 6
output P9.4=low after
correct transmission
C AN BSL is transfer to
norm al m ode.
Loaded code is
executing
H ost B oard
(SW flow chart)
Slave B oard
(C A N B SL)
Date Communication on the CAN Bus
Application Note
19
V 1.1, 2009-01