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.

CC2640: Question about OSAL_SNV=2

Part Number: CC2640

Hello TI,

According to "SWRU393_CC2640_BLE_Software_Developer's_Guide.pdf", page 51, table 3-2,

if set OSAL_SNV =2, SNV data is protected against power-loss during compaction,

can you tell us some information about how does TI SNV protection method works?  

Thank you,

  • Hi,

    When OSAL_SNV is set to 2, two SNV pages are allocated to bonding information storage. In that case, when a compaction is required, all the data stored on one page are first copied to the other SNV page. After this the compaction (i.e. page erase, and page re-write) is performed. This means that we always have a non-altered copy of the data stored on a non-volatile support - hence data is protected against power-loss during compaction

    On the other side, if only one SNV page is used, a copy of the bonding information is stored in RAM during compaction. As a consequence, at one point the bonding information is only stored in RAM and a power loss will lead to lose the data.

    I hope this answers your question,

    Best regards,