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.

CC3220SF:uniflash读取文件系统中的用户文件

Other Parts Discussed in Thread: UNIFLASH, CC3220SF

我通过TI的文件系统API,打开--->创建---->写入“helloworld”   ,我可以通过uniflash 看到该文件确实是存在了,但是由于安全锁的原因,需要输入令牌,导致我无法获取里面的内容,我该如何从CC3220SF中获取这个文件呢?附上我的部分代码:

    DeviceFileHandle =  sl_FsOpen((unsigned char *)DeviceFileName,
                                 ( SL_FS_CREATE|SL_FS_OVERWRITE | SL_FS_CREATE_SECURE | SL_FS_CREATE_NOSIGNATURE | SL_FS_CREATE_MAX_SIZE( MaxSize )),
                                  &MasterToken);
    Offset = 0;
    //Preferred in secure file that the Offset and the length will be aligned to 16 bytes.
    RetVal = sl_FsWrite( DeviceFileHandle, Offset, (unsigned char *)"HelloWorld", strlen("HelloWorld"));
    RetVal = sl_FsClose(DeviceFileHandle, NULL, NULL , 0);

我的问题:

1. 我如何获取通过文件系统创建的文件数据?(我从uniflash获取时总是要输入令牌,但我并不知道令牌是多少)

2. 感激不尽