SWCU191 February 2022 CC1311P3 , CC1311R3 , CC2651P3 , CC2651R3 , CC2651R3SIPA
Key Store error generation is implemented for debugging purposes. In normal or specified operation, the crypto core Key Store writes and reads must not trigger any errors. A bus error is the only exceptional case that can result in a Key Store write error.
The Key Store module checks that the keys are properly written to the Key Store RAM. When a key write error occurs, the KEY_ST_WR_ERR flag is asserted in the IRQSTAT register. In this case, the key is not stored. The host must check the status of the KEY_ST_WR_ERR flag and ensure that the corresponding RAM area is not used for AES operations.
If the host tries to use a key from a nonwritten RAM area (due to software malfunction), the Key Store module generates a read error. In this case, the KEY_ST_RD_ERR flag is asserted in the IRQSTAT register. The host must check the status of this flag and ensure that all remaining steps for the AES operation are not performed.
In case of a read error, the Key Store writes a key with all bytes set to 0 to the AES engine.