M-Boot ROM Description
600
SPRUHE8E – October 2012 – Revised November 2019
Copyright © 2012–2019, Texas Instruments Incorporated
ROM Code and Peripheral Booting
Table 6-8. M-Boot ROM Serial Boot Commands (continued)
Serial
No.
Command Name
Command Value
Description
COMMAND_RET_INVALID_CMD ( = 0x42)
COMMAND_RET_INVALID_ADD (= 0x43)
5.
COMMAND_SEND_DATA
0x24
This command should only follow a COMMAND_DOWNLOAD
command or another COMMAND_SEND_DATA command, if
more data is needed. Consecutive send data commands
automatically increment the address and continue programming
from the previous location. The transfer size is limited by the
maximum size of a packet, which allows up to 252 data bytes to
be transferred at a time. The command terminates programming
once the number of bytes indicated by the
COMMAND_DOWNLOAD command has been received. Each
time this function is called, it should be followed by a
COMMAND_GET_STATUS command to ensure that the data
was successfully programmed. If the bootloader sends a NAK to
this command, the bootloader will not increment the current
address which allows for retransmission of the previous data.
The format of the command is as follows:
unsigned char ucCommand[9];
ucCommand[0] = COMMAND_SEND_DATA
ucCommand[1] = Data[0];
ucCommand[2] = Data[1];
ucCommand[3] = Data[2];
ucCommand[4] = Data[3];
ucCommand[5] = Data[4];
ucCommand[6] = Data[5];
ucCommand[7] = Data[6];
ucCommand[8] = Data[7];
6.
COMMAND_RESET
0x25
This command is used to tell the bootloader to start the
application. The start address of application will be same as the
download address given by user when using the
COMMAND_DOWNLOAD command.
This command can be used by user to start the downloaded
application if the RUN address of the downloaded application is
same as the DOWNLOADED address.
If M-Boot ROM detects that there is no valid address for it to
start the application then it will return
COMMAND_RET_INVALID_ADR.
If the RUN address is different from DOWNLOADED address
then it is advised that user use the COMMAND_RUN command.
The format of the command is as follows:
unsigned char ucCommand[1];
ucCommand[0] = COMMAND_RESET;
Note:
The ACK and NAK byte packets are defined below:
ACK packet: byte0 will be 0x0 and byte1 will be 0xCC
NAK packet: byte0 will be 0x0 and byte1 will be 0x33
6.5.15.1.5 M-Boot ROM Serial Boot Load Functional Overview
The below function call sequence gives details of the flow when serial boot mode is selected on the
device.
•
ResetIsr()
•
mbrom_init_device()
•
mbrom_master_system_init ()
•
mbrom_control_system_init()