TI中文支持网
TI专业的中文技术问题搜集分享网站

CC2640R2F: 调用NVS_write函数一直返回NVS_STATUS_INV_WRITE(-7)错误

Part Number:CC2640R2F

部分代码如下所示:

WriteAddrBkp= 0x1000  +((num-1)%256)*32;

NVS_write(nvsHandle, WriteAddrBkp, (void *) rBuffera, 32,
NVS_WRITE_PRE_VERIFY | NVS_WRITE_POST_VERIFY);

返回:NVS_STATUS_INV_WRITE(-7)

Nick Sun:

您好,

您可以参考根据api文档(https://dev.ti.com/tirex/explore/content/simplelink_cc13xx_cc26xx_sdk_6_20_00_29/docs/drivers/doxygen/html/group___n_v_s___s_t_a_t_u_s.html#gad8da7024d67625daf4347c22d50fdb4b),如图

赞(0)
未经允许不得转载:TI中文支持网 » CC2640R2F: 调用NVS_write函数一直返回NVS_STATUS_INV_WRITE(-7)错误
分享到: 更多 (0)