请教,NV用户区读写,0x201读写正确,0X202以后的区域读写失败?但偶尔也能成功,这是怎么回事?
uchar i = 0xA5;
uchar temp;
osal_nv_item_init(0x0202+i,1,NULL);
osal_nv_write(0x0202,0,1,&i);
osal_nv_read(0x0202,0,1,&temp);
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.
请教,NV用户区读写,0x201读写正确,0X202以后的区域读写失败?但偶尔也能成功,这是怎么回事?
uchar i = 0xA5;
uchar temp;
osal_nv_item_init(0x0202+i,1,NULL);
osal_nv_write(0x0202,0,1,&i);
osal_nv_read(0x0202,0,1,&temp);
建议您使用 0x0401--0x0FFF
参考ZComDef.h可知
// NV Items Reserved for applications (user applications)
// 0x0401 ?0x0FFF