M-Boot Rom Can Boot Commands - Texas Instruments Concerto F28M36 Series Technical Reference Manual

Table of Contents

Advertisement

www.ti.com
Serial
Command Name
No.
1.
LM_API_UPD_PING
2.
LM_API_UPD_DOWNLOAD
3.
LM_API_UPD_SEND_DATA
4.
LM_API_UPD_RESET
SPRUHE8E – October 2012 – Revised November 2019
Submit Documentation Feedback
Table 6-9. M-Boot ROM CAN Boot Commands
Command Value Description
0x1F020000
0x1F020040
0x1F020080
0x1F0200C0
Copyright © 2012–2019, Texas Instruments Incorporated
This command is used to receive an acknowledge
command from the bootloader indicating that
communication has been established. This command has
no data. If the device is present it will respond with an
acknowledgment back to the sender.
This command sets the base address for the download as
well as the size of the data to write to the device. This
command should be followed by a series of
LM_API_UPD_SEND_DATA that send the actual image to
be programmed to the device. The command consists of
two 32-bit values that are transferred LSB first.
The first 32-bit value is the address to start programming
data into, while the second is the 32-bit size of the data
that will be sent.
The format of the command is as follows:
unsigned char ucData[8];
ucData[0] = Download Address [7:0];
ucData[1] = Download Address [15:8];
ucData[2] = Download Address [23:16];
ucData[3] = Download Address [31:24];
ucData[4] = Download Size [7:0];
ucData[5] = Download Size [15:8];
ucData[6] = Download Size [23:16];
ucData[7] = Download Size [31:24];
This command should only follow a
LM_API_UPD_DOWNLOAD command or another
LM_API_UPD_SEND_DATA command when more data is
needed. Consecutive send data commands automatically
increment the address and continue programming from the
previous location.
The transfer size is limited to 8 bytes at a time based on
the maximum size of an individual CAN transmission. The
command terminates programming once the number of
bytes indicated by the LM_API_UPD_DOWNLOAD
command have been received. The CAN bootloader will
send a LM_API_UPD_ACK in response to each send data
command to allow the CAN update application to throttle
the data going to the device and not overrun the bootloader
with data.
The format of the command is as follows:
unsigned char ucData[8];
ucData[0] = Data[0];
ucData[1] = Data[1];
ucData[2] = Data[2];
ucData[3] = Data[3];
ucData[4] = Data[4];
ucData[5] = Data[5];
ucData[6] = Data[6];
ucData[8] = Data[7];
This command is used to tell the M-Boot ROM CAN
bootloader to start the application that is just downloaded
on to the RAM. The application RUN ADDRESS is same
as the application DOWNLOADED address, when using
this command to start the application.
If the application RUN address is different from application
start address, then it is recommended to use
"LM_API_UPD_RUN" command instead.
ROM Code and Peripheral Booting
M-Boot ROM Description
605

Advertisement

Table of Contents
loading

Table of Contents