This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC1310: Saving the public key in the flash

Part Number: CC1310


Tool/software: Code Composer Studio

I am working on a sub GHz communication between two CC1310 where the data exchanged is secured using the AES module and I implemented the key exchanging mechanism as in the aeskeyagreement example, but now I have an issue which is the key is exchanged and generated only once at the first of the program. So, if I need to reset one board, I have to reset the other too to agree on the same generated shared secret key.

I thought of saving the received public key from the other board in the flash so whenever I reset one of the boards, the other checks if the received public key is changed by comparing it to the value in the flash. If so, it generates the shared secret again and initializes the key again. I have two issues:

1. when I tried to initialize the key for two consecutive times the function (ECC_ECDH_computeSharedSecret) does not return the second time.
2. in the related question, they said that I must enable the NV_RESTORE to keep the data stored in the flash even after reset, and I cannot find this flag at all. So, where to find it to enable it?

PS. I am still at the beginning to implement the flash idea and I will start with the nvs internal example