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使用中读写问题

在使用NV相关操作过程中对osal_nv_write、osal_nv_read函数的使用,其中他们可操作的最大长度是多少?

NV条目在 0x0201~0x0FFF  是用户使用的ID,假如

#define A_ID                   0x0401

#define B_ID                   0x0402

osal_nv_write( A_ID, 0, 100, &chan ); 会不会将B_ID的内容改变

  • 这个ID仅仅是是个ID号而已,不是Flash中直接寻址的映射。

    NV操作的机制是追加的方式,也就是每次写数据,都把数据写到之前写数据的后面。目的是为了不经常擦鞋Flash,保证Flash的寿命。