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.

CC2640R2F osal_snv_write 和 osal_snv_read 函数跑出错

Other Parts Discussed in Thread: CC2640R2F

Hi TI JRs:

     请教一个 CC2640R2F  上关于 osal_snv_write 和 osal_snv_read 的问题。

     我现在想做一件事情,希望开机时能够修改 advertData 里的 Major 和 Minor 值,这也是 TI JR 告诉我的思路。

     我的思路是这样:通过 UART 写入 4 Byte 数值,然后调用 osal_snv_write 函数把值保存到 BLE_NVID_CUST_START 的区域里,然后再开机时用 osal_snv_read 函数读出 BLE_NVID_CUST_START 里的值,并写入到 advertData 里的 Major 和 Minor。

    我现在在 simple_broadcast project 里已经可以通过串口工具写值了,程序也收到值了,但是在调用 osal_snv_write 函数是发生 crash。

    所以请问下,osal_snv_write 和 osal_snv_read 函数使用有什么注意的吗?

谢谢