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/LAUNCHXL-CC2640R2: Flash Read/Write with osal_snv

Part Number: LAUNCHXL-CC2640R2


Tool/software: Code Composer Studio

Hi,

for my current Project, I have to store always 4 bytes of data into the flash, if a user presses a button. This means, the total amount of bytes inside the flash will increase each time of a button press. 

If there is a BLE connection, the data should be read out of the flash and then erased. 

With osal_snv_write it is only possible to store the whole array at once at one SNV_ID. The maximum length on an array for one SNV_ID is 255 bytes?!

Is there a better way to only append 4 bytes into the flash per button press or do I have to write always the whole array?

Thank you

Christian

  • Basic flash write need to do with whole page so it won't do only 4 bytes write in operation. However, osal_snv_write would take care of this so it's no problem for application to do 4 bytes write with osal_snv_write.