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.

CC2652R: BLE5-Stack中,osal_snv_read返回出错的问题

Part Number: CC2652R


假如调用osal_snv_write(0x101, 5, "abcde")函数,在SNV中写入编号为0x101的内容为“abcde”共5个字符,

osal_snv_read(0x101, 5, tmp)是能够正确读出数据的。

但是如果我调用osal_snv_read函数时,读取的字节数大于5,则返回0x05的错误,即为NVINTF_BADLENGTH,表示错误的长度。

疑问:难道在调用osal_snv_read读取存储在SNV中的数据时,需要知道此条目保存的数据的准确字节数吗?