Other Parts Discussed in Thread: CC2530, Z-STACK
Hi! I am using Z-Stack with CC2530 and want to store some data.
But i am having problem even in osal_nv_init().
Here is what i am doing, this function i called before everything related to NV, and i am debuggind and using printf() to show if an error has ocurred. In application, it tests the return of this below function, and if it is different than SUCCESS, it prints an error msg.
uint8 initNVIndex() {
if((SUCCESS != osal_nv_item_init(NV_DAY_ID_INDEX, sizeof(uint16), NULL)) ||
(SUCCESS != osal_nv_item_init(NV_MEASURE_ID_INDEX, sizeof(uint16), NULL)) ||
(SUCCESS != osal_nv_item_init(ALL_ITENS_INITIALIZED_ID, sizeof(boolean), NULL)))
return NV_OPER_FAILED; }
else return SUCCESS;
The error msg is always printed.. what could i be doing wrong?
Thanks,
Daniel.
*boolean is a uint8