使用osal_snv_write依次写入数据后,FLASH内容如上图,第二个框(第6列 即数字全是11)是数据分割符吗?不同芯片,该参数是不是不同?
第四个大框里面的内容是CRC还是长度?
Flash都是0x96作为结束符的?
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.
使用osal_snv_write依次写入数据后,FLASH内容如上图,第二个框(第6列 即数字全是11)是数据分割符吗?不同芯片,该参数是不是不同?
第四个大框里面的内容是CRC还是长度?
Flash都是0x96作为结束符的?
您好,久等了。
使用 OSAL Simple NV (OSAL SNV) 时,必须仅使用 osal_snv_read() 和 osal_snv_write() 函数进行读取和写入,如the Non Volatile Storage with the BLE-Stack section of the User's Guide.指定的那样。 读取函数应该处理获取数据并以与写入时相同的形式将其呈现给用户。
链接如下,
希望能对您的问题有所帮助。
您好,就在以上链接中,为您粘贴复制如下:
The item header (defined by NVOCMP_itemHdr_t
) contains status information required to traverse packed data items in the flash page. An example of the NV item memory layout storing a single byte of data is illustrated below.
NV Item Header:
Field |
Size (bits) |
Purpose |
System ID |
6 |
Indicates the system component identifier |
Item ID |
10 |
Indicates the item data identifier |
Sub ID |
10 |
Identifier of the sub-data related to the NV item |
Length |
12 |
Length of the data block |
CRC |
8 |
CRC value of NV item |
Status Bits |
2 |
Indicates CRC integrity and if item is active |
Signature |
8 |
Used to detect presence of a NV item in flash |
希望能对您有所帮助。