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.

Write and Read values to SNV memory is failed when Observer mode on CC2640

Other Parts Discussed in Thread: CC2640

Hi,

I'm using the SimpleBLEObserver Project.

I tried to write and read some values to SNV memory but failed with return value of FAILURE / INVALID PARAMETER.

But in SimpleBLECentral project, it is working which means writing and reading to SNV memory is OK.

Is there any limitation on SNV api with SimpleBLEObserver project?

Environment

TI-RTOS version : 2.13.00.06

BLE SDK version no. : 2.01.00.44423

MCU : CC2640

Test codes

void snv_test(void)

{

uint8_t snv_test_wb[5]={1,}, snv_test_rb[5]={0,};
uint8_t get_result;

static uint8_t sample_data=1;

snv_test_wb[0] = sample_data;

get_result = osal_snv_write(0x81, sizeof(snv_test_wb), snv_test_wb);

get_result = osal_snv_read(0x81, sizeof(snv_test_rb), snv_test_rb);

sample_data++;


}