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.

cc2530 Nv每个Item能存多大数据

我定义了两个NV Items:#define ZCD_NV_APP_TEST1                  0x0201
#define ZCD_NV_APP_TEST2                  0x0202    

我想知道一个Item能有多少存储空间,如果一个Item存储了几k的数据这样两个相邻的Item会不会有影响。

  • 关于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方面的分享

  • 谢谢啦,很有用。。

  • TI的员工也是,讲了半天没讲出个啥?到底每个ITEM的大小是多少字节?只知道让我们看链接,给个准确答案就得了。飞比那个帖子也是,啥也没讲出来。

    醉了

  • 您好,我看了您旧的帖子,我希望向您请教一下加密的问题,这个是我的qq:2251569880,,希望到时候您能加我一下,谢谢了