Boot Loader
COMMAND_GET_STATUS
= 0x23
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 suc-
cessful or, if unsuccessful, to properly respond to a failure. The
command requires one byte in the data of the packet and the
boot loader 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:
uint8_t pui8Command[1];
pui8Command[0] = COMMAND_GET_STATUS;
The following are the definitions for the possible status
values that can be returned from the boot loader when
COMMAND_GET_STATUS
is sent to the the microcontroller.
COMMAND_RET_SUCCESS
COMMAND_RET_UNKNOWN_CMD
COMMAND_RET_INVALID_CMD
COMMAND_RET_INVALID_ADD
COMMAND_RET_FLASH_FAIL
COMMAND_SEND_DATA
= 0x24
This command should only follow a
COMMAND_DOWNLOAD
com-
mand or another
COMMAND_SEND_DATA
command, if more data
is needed. Consecutive send data commands automatically in-
crement the address and continue programming from the previ-
ous 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 into the flash. If the boot
loader sends a NAK to this command, the boot loader will not in-
crement the current address which allows for retransmission of
the previous data.
The format of the command is as follows:
uint8_t pui8Command[9];
pui8Command[0] = COMMAND_SEND_DATA
pui8Command[1] = Data[0];
pui8Command[2] = Data[1];
pui8Command[3] = Data[2];
pui8Command[4] = Data[3];
pui8Command[5] = Data[4];
pui8Command[6] = Data[5];
pui8Command[7] = Data[6];
pui8Command[8] = Data[7];
April 8, 2013
11
Summary of Contents for Tiva TM4C123GH6PM
Page 26: ...Boot Loader 26 April 8 2013...
Page 68: ...Controller Area Network CAN 68 April 8 2013...
Page 122: ...Hibernation Module 122 April 8 2013...
Page 136: ...Inter Integrated Circuit I2C 136 April 8 2013...
Page 152: ...Memory Protection Unit MPU 152 April 8 2013...
Page 174: ...Pulse Width Modulator PWM Returns None 174 April 8 2013...
Page 196: ...Synchronous Serial Interface SSI 196 April 8 2013...
Page 222: ...System Control 222 April 8 2013...
Page 270: ...UART 270 April 8 2013...
Page 296: ...uDMA Controller 296 April 8 2013...
Page 351: ...April 8 2013 351...