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.

[参考译文] CC3100:_ReadStatFile:sl_FsOpen 中出现错误、STATUS=-11

Guru**** 2553450 points


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

https://e2e.ti.com/support/wireless-connectivity/wi-fi-group/wifi/f/wi-fi-forum/566098/cc3100-_readstatfile-error-in-sl_fsopen-status--11

器件型号:CC3100

你(们)好  

我尝试使用 主机 MCU 启动 OTA 过程、并获取错误状态为-11

出什么问题了?

_i32 _ReadStatFile (_u8 * buf、_i32 buf_len)
{
_i32 lFileHandle;
_u32 ulToken;
_i32状态;

状态= sl_FsOpen (((_u8 *) OTAST_FILENAME、FS_MODE_OPEN_READ、&ulToken、&lFileHandle);
如果(状态< 0)
{
报告("_ReadStatFile:sl_FsOpen 中的错误、status=%d\r\n"、status);
返回 OTA_STATUS_ERROR;
}

} 

#define OTA_VENDOR_string        "Vid01_Pid01_Ver0000"

OTA_SERVER_REST_HDR_VAL       "具有有效令牌"

Dropbox

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

    此错误表示文件不存在(sl_FS_ERR_file_no_exists =-11)。 您无法读取未存储在文件系统中的文件。 首先、您需要创建此文件。

    1月
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    在 processors.wiki.ti.com/.../CC31xx_OTA_Sample_Application 中 、创建文件的位置是什么?
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!

    我使用不同的方法进行 OTA 更新、但我无法为您提供帮助。 我只说什么是 sl_ API sl_FsOpen()中的错误代码-11。

    1月