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.

CC2530: my osal_nv_xxxx not working right why?

Part Number: CC2530

hi

i have this code

  osal_nv_item_init(0x0500,1,NULL);
  osal_nv_read(0x0500,0,1,&Iscc2530Configured);
  if(Iscc2530Configured != '1'){
    osal_nv_write(0x0500,0,1,"1");
}

first it init in 0x500 with null 

then read it and it is 0xff

then check if its not '1' then write to it with paameter '1'

nest time that cc2530 reset it should be '1' and if wont be excuted anymore . right?

after cc2530 its value is not saved and it return me on first read on line 2 with 0xFF