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.

请问CC3200读写文件的正确方法

Other Parts Discussed in Thread: CC3200

您好:

        我正在用CC3200开发一款产品,需要保存用户配置信息,现想要实现CC3200上电后从Flash中读取一文件,如果该文件不存在则创建,若存在则读取n个字节数据,同时可以在程序中随时向该文件写入一些数据。

       我参考的SDK中的file_operations例程,然后按需求改写,但是发现该程序如果直接调用ReadFileFromDevice()函数,会返回错误码,不能正确读出文件内容(但是Flash中已经存在该文件)。

      请问,如何设置参数才能按照我的需求来执行? 还有为什么在操作文件之前要调用sl_Start()和sl_WlanPolicySet()函数? 仿佛不调用它们就不能执行文件操作。

项目进展较慢,感谢工程师们的解答!!