M-Boot Rom Serial Boot Commands - Texas Instruments Concerto F28M35 Series Technical Reference Manual

Table of Contents

Advertisement

M-Boot ROM Description
The following commands are used by the custom protocol:
Serial
Command Name
No.
1.
COMMAND_PING
2.
COMMAND_DOWNLOAD
3.
COMMAND_RUN
4.
COMMAND_GET_STATUS
556
ROM Code and Peripheral Booting
Table 6-11. M-Boot ROM Serial Boot Commands
Command Value
0x20
0x21
0x22
0x23
Copyright © 2012–2019, Texas Instruments Incorporated
Description
This command is used to receive an acknowledge from the
bootloader indicating that communication has been established.
This command is a single byte.
The format of the command is as follows:
unsigned char ucCommand[1];
ucCommand[0] = COMMAND_PING;
This command is sent to the bootloader to indicate where to
store data and how many bytes will be sent by the
COMMAND_SEND_DATA commands that follow. The command
consists of two 32-bit values that are both transferred MSB 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. This command should be followed by a
COMMAND_GET_STATUS to ensure that the program address
and program size were valid for the microcontroller running the
bootloader.
The format of the command is as follows:
unsigned char ucCommand[9];
ucCommand[0] = COMMAND_DOWNLOAD;
ucCommand[1] = Program Address [31:24];
ucCommand[2] = Program Address [23:16];
ucCommand[3] = Program Address [15:8];
ucCommand[4] = Program Address [7:0];
ucCommand[5] = Program Size [31:24];
ucCommand[6] = Program Size [23:16];
ucCommand[7] = Program Size [15:8];
ucCommand[8] = Program Size [7:0];
This command is sent to the bootloader to transfer execution
control to the specified address. The command is followed by a
32-bit value, transferred MSB first, that is the address to which
execution control is transferred.
The format of the command is as follows:
unsigned char ucCommand[5];
ucCommand[0] = COMMAND_RUN;
ucCommand[1] = Run Address [31:24];
ucCommand[2] = Run Address [23:16];
ucCommand[3] = Run Address [15:8];
ucCommand[4] = Run Address [7:0];
This command returns the status of the last command that was
issued. Typically, this command should be received after every
command is sent to ensure that the previous command was
successful or, if unsuccessful, to properly respond to a failure.
The command requires one byte in the data of the packet and
the bootloader should respond by sending a packet with one
byte of data that contains the current status code
The format of the command is as follows:
unsigned char ucCommand[1];
ucCommand[0] = COMMAND_GET_STATUS;
The following are the definitions for the possible status values
that can be returned from the bootloader when
COMMAND_GET_STATUS is sent to the microcontroller.
COMMAND_RET_SUCCESS (= 0x40)
COMMAND_RET_UNKNOWN_CMD (= 0x41)
SPRUH22I – April 2012 – Revised November 2019
www.ti.com
Submit Documentation Feedback

Advertisement

Table of Contents
loading

Table of Contents