We are seeing a consistent issue with the CC3200 module file system flash being corrupted.
The issue seems to only happen when we have an active wifi connection as follows:
- Startup SimpleLink (sl_Start, …)
- Connect Wifi as station to an access point
- Disconnect power or reset the CC3200 via Reset button on dev board
- On reboot, all sl_Fs* functions return error -49. Cannot create, read, open, query any files.
- In order to recover, the flash must be formatted using the CCS Uniflash utility
NOTE: I have never seem this issue if there is no active Wifi connection (In this case SimpleLink is up with sl_Start, but there is no connection to an access point)
My understanding is that we need to shutoff SimpleLink (sl_Stop) prior to shutting down, but I have no way of detecting when the reset button might get pressed.
In referencing this app note : http://processors.wiki.ti.com/index.php/CC3100_%26_CC3200_SFlash_Recommendations#S-flash_access_by_the_WiFi_system
It appears this is a problem and can only be remedied by using the CCS Uniflash utility, and there is no option to format the filesystem flash from code. This presents a real problem if this happens with end user devices.
Is there a known workaround?
Also, cross reference this user post with the same issue and no answer from TI: