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的值,为什么是我一开始附的值,而不是NV区域里的值呢?

请问下我执行下面两个语句,为什么取出来的值是1?

  static uint8 count = 1;

  osal_nv_read(TEST_NV,0,1,&count);

我在前面并没有执行:

osal_nv_item_init(TEST_NV,1,NULL);
osal_nv_write(TEST_NV,0,1,&count);

就是想咨询下,这个原理是什么啊?直接read为啥是我定义的值,而不是那个区域原本的值呢?