SWCU193A April 2023 – August 2024 CC2340R2 , CC2340R5 , CC2340R5-Q1
Program all or a part of one MAIN sector (see Chapter 7).
The programming starts when the specified number of bytes (padded to a whole number of words) has been received by SACI.
These conditions must be true:
The sector can be protected by:
Words | Bits | Field | Value | Description |
---|---|---|---|---|
0 | 7:0 | cmdId | 0x0E | Command ID |
15:8 | respSeqNumber | User defined | Optional response sequence number, included in the response header | |
31:16 | byteCount | - | Number of bytes to program. If 0, the command has no effect. | |
1 | 31:0 | key | 0xB7E3A08F | Flash operation key (magic number) |
2 | 31:0 | firstByteAddr | - | Address of the first byte to be programmed |
3+ | 31:0 | data | User defined |
Bytes to be programmed:
|
Words | Bits | Field | Value | Description |
---|---|---|---|---|
0 | 7:0 | cmdId | 0x0E | Command ID, copied from the first command parameter word |
15:8 | respSeqNumber | User defined | Optional sequence number, copied from the first command parameter word | |
23:16 | result | - |
Command result. One of the common results, or:
|
|
31:24 | dataWordCount | 0 | Size of additional response data, in number of 32-bit words |
These checks are performed before command execution, in the indicated order: