我定义了两个NV Items:#define ZCD_NV_APP_TEST1 0x0201
#define ZCD_NV_APP_TEST2 0x0202
我想知道一个Item能有多少存储空间,如果一个Item存储了几k的数据这样两个相邻的Item会不会有影响。
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数据是保存在flash的最后8个page中,在程序里面都有定义的
#define OSAL_NV_PAGE_SIZE HAL_FLASH_PAGE_SIZE
包括从哪里开始,哪里结束,每一个item都有一个
typedef struct
{
uint16 id;
uint16 len; // Enforce Flash-WORD size on len.
uint16 chk; // Byte-wise checksum of the 'len' data bytes of the item.
uint16 stat; // Item status.
} osalNvHdr_t;
用来保存每一个item的信息,你可以了解下,具体怎么样去保存,怎么样去查找的。
http://www.feibit.com/forum.php?mod=viewthread&tid=133
你也可以了解下NV方面的分享