I'm trying to understand how best to recover the CC3220SF after the device is locked due to too many security alerts. I understand that the device needs to be restored to factory, and that this can be accomplished either via the SOP pins or via software. Focusing on the software route, I have implemented a SimpleLinkGeneralEventHandler(..) to handle the the SL_DEVICE_EVENT_ERROR and to perform a factory reset via software, and this seems to work. My question though is what options are there if the device doesn't actually get factory reset by this sequence, and the next time it boots it is already over the security alert threshold?
The documentation seems to indicate that I should expect sl_Start(..) to return SL_ERROR_FS_ALERT_ERR, but at least when I run through this situation in the debugger it looks like sl_Start(..) is returning SL_API_ABORTED instead. In addition, the subsequent call to query the number of security alerts sl_FsCtl(SL_FS_CTL_GET_STORAGE_INFO, ..) fails as well, as does any further attempt to request a factory reset.
When I get myself into this situation in a production environment, it seems like the CPU doesn't even boot at all.
So what should I expect to still work if the CPU is booted after too many security alerts? Is it still possible to request a factory reset via software? Or is the only option at this point a factory reset via SOP?
Thanks,
AJ