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.

CC2640R2F: osal_snv_read never fails

Part Number: CC2640R2F
Other Parts Discussed in Thread: UNIFLASH

Hello everyone...

I am using the oad_offchip project. In a new task I try to use osal_snv_read but it never fails.

uint8_t status = SUCCESS;
uint8_t temp_value[10];

status = osal_snv_read(0x80, 10, (uint8_t*)temp_value);
        if(status != SUCCESS) {
            // never reach here
            memcpy( temp_value, myConst, 10);
            status = osal_snv_write(0x80, 10, (uint8_t *)temp_value);
        }

SimpleProfile_SetParameter(5, 10, temp_value); // here temp_value has random value.

I already erase all flash with Uniflash, it seems 0x80 ID SNV always is initialized.

Can anyone help me?

Best regards.