SWCU193A April 2023 – August 2024 CC2340R2 , CC2340R5 , CC2340R5-Q1
This command is sent to the bootloader to indicate where to store data, how many bytes are to be sent by the BLDR_CMD_SEND_DATA commands that follow and the CRC32 value covering all the bytes.
The command consists of three 32-bit values that are all transferred MSB first. The first 32-bit value is the address to start programming data into, the second is the 32-bit size of the data that is to be sent and the third is the 32-bit CRC expected value.
This command should be followed by a BLDR_CMD_GET_STATUS to ensure that the program address and program size were valid for the device running the bootloader.
Byte | Field | Description |
---|---|---|
0 | cmdId | BLDR_CMD_DOWNLOAD_CRC command ID |
1 | Program Address [31:24] | Start address of the download |
2 | Program Address [23:16] | |
3 | Program Address [15:8] | |
4 | Program Address [7:0] | |
5 | Program Size [31:24] | Number of bytes (length of the download) |
6 | Program Size [23:16] | |
7 | Program Size [15:8] | |
8 | Program Size [7:0] | |
9 | Expected CRC [31:24] |
The expected CRC calculation over the completed download image. If the CRC calculation fails, the download is considered a failure and the content that was downloaded is immediately erased. |
10 | Expected CRC [23:16] | |
11 | Expected CRC [15:8] | |
12 | Expected CRC [7:0] |