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.

CC3200SDK: Corrupted file causing file system issues

Part Number: CC3200SDK
Other Parts Discussed in Thread: CC3200

We're having issues with an application running on the CC3200. We wish to overwrite a file on the onboard flash filesystem in order to perform an OTA. If the writing of this file is interrupted (e.g. by a power cycle) then the next time we attempt to open this file using sl_FsOpen we get a -3 error SL_FS_ERR_INVALID_MAGIC_NUM , to get around this issue we attempt to delete and recreate this file. When deleting the file using sl_FsDel we get the same -3 error and when we try to create a new file we get a -30 error SL_FS_ERR_NO_AVAILABLE_BLOCKS . I am guessing this last error is because we have less free blocks available than the size of the file. We can't easily free up more blocks since devices are already deployed to customers with only a few free blocks remaining.

Is there a way of working around this issue without consuming more blocks of flash?