Other Parts Discussed in Thread: TIMAC
Hi TI,
I was confused about the NV memory, I found the NV is not in the certain place of flash, and I don't now how to check the certain NV is stored right or wrong.
because I just save one NV, and the NV ID is 0x0402 like below:
#define WTM_IN_TIMAC_OR_ZSTACK_MODE 0x0401
#define WTM_SENSOR_ID 0x0402
osal_nv_item_init(WTM_SENSOR_ID, 1, NULL);
osal_nv_read(WTM_SENSOR_ID, 0, 1, &sensor_id);
some time after reset, the value will go to 0xFF, I don't know why? because before this I set to 0x01.
my version is statck v1.2.2a
and I also don't know below two questions:
1:
#ifdef NV_RESTORE
osal_nv_init(NULL);/*this function excute time is 21.85ms*/
#endif
if I don't call this function, if I want to save the consuming current in the startup time, whether it is ok or not?
2: due to reduce the consuming current in the startup time, our project has conbine the TIMAC and Zstack firmware.
and if sometime the project run the TIMAC, we don't call zgInit(); /*consume 51ms*/, and if run the ZSTACK code, it will call zgInit(); function. it will influence the NV ID of WTM_SENSOR_ID's value or not?
thank you