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.

CC2650 osal_snv

Other Parts Discussed in Thread: CC2640, CC2650

Hi, 

I need help to save values in memory flash. 

I read the datasheet development but i don't understand how to save values in flash memory. 

I code this : 

   //*******OSAL_SNV************//
    	uint8 Item_id = 0x80; //This is in bcomdef.h
    	uint8 snv_status;

    	/*Save*/
    	snv_status = osal_snv_write(BLE_NVID_THOMAS,sizeof(value), value);

		/**Control save**/
		if ( snv_status == 0) //Sauvegarde Ok
			SensorTag_blinkLed(Board_LED2, 5);//G
		else //Sauvegarde PAS OK
			SensorTag_blinkLed(Board_LED1, snv_status);//R
	//***************************//

But my LED1 blink two like snv-status, thus it return "OSAL_SNV Value = 2" if we understand the "3.10.4 Using Simple NV" in the datasheet development. I tryed to erase memory with 

"osal_snv_iinit(void)" but it doesn't work.

Thanks,