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.

[参考译文] LAUNCHXL-CC2640R2:SNV 在回写操作中不工作

Guru**** 2578945 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/592386/launchxl-cc2640r2-snv-not-working-in-write-call-back

器件型号:LAUNCHXL-CC2640R2

您好!

我想将用户数据保存到非易失性存储器中。 我将在 WriteCB 中使用 SNV 写入、如下所示:

uint8_t SNV_id_app=0x8F;
uint8数据= 0x66;
status = osal_sv_write (sv_id_app、sizeof (uint8)、&data);
if (status =成功)

 退货状态;

状态  始终为 false。

我还在 SimpleBLEPeripheral_taskFxn 中使用 SNV、其工作原理正常。

您能告诉我问题出在哪呢?  

正在等待您的回复。

此致

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!

    如软件开发人员指南中所述、您无法阻止回调 Fxns 的呼叫。 尝试设置事件并从任务的上下文中处理 SNV 操作。

    祝你一切顺利