SWCU193A April 2023 – August 2024 CC2340R2 , CC2340R5 , CC2340R5-Q1
This command should only follow a BLDR_CMD_DOWNLOAD command or another BLDR_CMD_SEND_DATA command, if more data is needed.
Consecutive send data commands automatically increment the address and continue programming from the previous location. The caller should allow the device to finish the flash programming before issuing another command in order to avoid overflowing the input buffers of the serial interface. The command terminates programming once the number of bytes indicated by the BLDR_CMD_DOWNLOAD command has been received. Each time this function is called, it should be followed by a BLDR_CMD_GET_STATUS command to ensure that the data was successfully programmed into the flash.
If the bootloader responds with a NACK to this command, the bootloader does not increment the current address to allow re-transmission of the previous data.
A maximum of 253 bytes of data can be sent per BLDR_CMD_SEND_DATA command.
Byte | Field | Description |
---|---|---|
0 | cmdId | BLDR_CMD_SEND_DATA command ID |
1 | download_image[0] | Consecutive bytes of the image to be downloaded |
.... | .... | |
X <= 252 | download_image[X <= 252] |