SWCU193A April 2023 – August 2024 CC2340R2 , CC2340R5 , CC2340R5-Q1
This command is sent to the bootloader to calculate a CRC32 for a specified memory area. The command consists of three 32-bit values that are each transferred MSB first.
The Memory address must be sector aligned. Only memory addresses within the main flash region or the CCFG_BASE address itself are valid.
The Size must be sector aligned or (sector - 4 bytes) aligned.
The combination of memory address and size cannot go outside of either the main flash region or the CCFG region. If the parameters are valid, the command only reports if the expected CRC matches the calculated CRC. Follow up this command with the BLDR_CMD_GET_STATUS to read the result of the CRC comparison.
Byte | Field | Description |
---|---|---|
0 | cmdId | BLDR_CMD_CRC32 command ID |
1 | Memory Address [31:24] | Memory Address to start the CRC calculation |
2 | Memory Address [23:16] | |
3 | Memory Address [15:8] | |
4 | Memory Address [7:0] | |
5 | Memory Area Size [31:24] | Number of bytes to run the CRC calculation over |
6 | Memory Area Size [23:16] | |
7 | Memory Area Size [15:8] | |
8 | Memory Area Size [7:0] | |
9 | Expected CRC [31:24] | The CRC value the host is expecting the CRC calculation results in |
10 | Expected CRC [23:16] | |
11 | Expected CRC [15:8] | |
12 | Expected CRC [7:0] |