SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
The device can enter a lock state due to one of the following conditions:
In the lock state only a few commands are allowed. The list of the enabled commands follows:
Any other API issued in locked state returns one of the following error codes:
SL_RET_CODE_DEV_LOCKED (-2011L) //Device was found locked during its init, commands are blocked by the driver
SL_ERROR_NOT_ALLOWED_NWP_LOCKED (-14343L) //Device is currently locked
Recovery from the lock state depends on the reason for the lock. If the lock is due to processing the restore to factory function, then the device automatically unlocks when finished. In all other cases, to recover from the lock state the device can be programed or restored to factory image.