Part Number: CC2530
Other Parts Discussed in Thread: Z-STACK,
I have project of reccomend version of IAR for cc2530. To my project add on MT-interface. Version of Z-Stack is 3.0.1
In tge my prodramm i write to NV-memory. when i write to memory on my ID - the 0xf0b and 0xf05 all wrote fine. But if i try to ID 0x24(ZCD_NV_POLL_RATE) this no wrrite right data.. I try to write from Z-Tool and by my programm - the resualt is same.
unsigned char Buf[2]={any variables},test;
test=osal_nv_item_init( 0xf0b, 2,Buf );
if (test== NV_ITEM_UNINIT) //in this case all good!
{
osal_nv_write( 0xf0b, 0, 2, Buf );
}
Buf[0]=0;
Buf[1]=0;
test=osal_nv_item_init( 0x24, 2,Buf );
if (test== NV_ITEM_UNINIT) //in this case all NO good!
{
osal_nv_write( 0x24, 0, 2, Buf );//Try to write in two case!!! Try to clear of ZCD_NV_POLL_RATE
}
else
{
osal_nv_write( 0x24, 0, 2, Buf );//Try to write in two case!!!
}
If I try to write by Z-Tool I get succsess return code
