CC3120 Flash is used to store file data which is used in communication.
To write the file have used below API and its respective comments of the simplelink stack.
- sl_FsOpen((_u8 *)file_name, SL_FS_CREATE| SL_FS_OVERWRITE | SL_FS_CREATE_MAX_SIZE( LEN_128KB ), NULL)
- sl_FsWrite(FileHandle, u32MovingOffset, u8buff, i32Length)
- sl_FsClose(FileHandle, NULL, NULL, 0)
- sl_FsDel((_u8 *)file_name,NULL)
For the first time it works but if i want to delete the same file and write the same "sl_FsOpen" returns the error code shown below.
#define SL_ERROR_FS_FILE_SYSTEM_IS_LOCKED (-10299L)
How to fix this error?
My application needs to delete the file and create new file with same name, but the interval is during firmware update each time this activity will be preformed. Due to the above error my Firmware update activity is stoped. And WiFi chip gets disconnected. I will have to remove the CC3120 from the device and replace the new chip due to the File System lock issue.
With regards,
Anuj Shah