Restore to Factory
130
SWRU455A – February 2017 – Revised March 2017
Copyright © 2017, Texas Instruments Incorporated
File System
ExtendedStatus = (_u16)slRetVal& 0xFFFF;
break
;
}
//Reset
sl_Stop(10);
sl_Start(NULL, NULL, NULL);
8.13.2 Restore to Factory by Using the SOP
To trigger the restore the factory image by SOP, follow the methods outlined in the following sections.
8.13.2.1 CC3120
The recommended method for the CC3120 device is to invoke the restore to factory by the host, because
restore to factory by the SOP requires POR (see Step 1) and it is not a good practice to reset the device
while the host is still running.
The following steps are required:
1. Set the SOP to 011(SOP2=0, SOP1=1, SOP0=1) and perform POR (power on reset). This initiates the
restore to factory operation.
2. Revert the SOP to 000.
3. When the restore-to-factory operation is done, the device sends Init complete event with a
Factory restored indication.
4. Perform a POR to clear the SOP indication in the host.
If the user pressed the POR during Step 3, the restore process continues and the device automatically
triggers an additional hibernate-reset when finished.
5. The device sends an Init complete event to the host.
8.13.2.2 CC3220/R/S/F
The recommended method for the CC3220 device is to invoke the restore to factory by the host, because
restore to factory by the SOP requires POR (see Step 1) and it is not a good practice to reset the device
while the host is still running.
The following steps are required:
1. Set the SOP to 011(SOP2=0, SOP1=1, SOP0=1) and perform POR. This initiates the restore to factory
operation (the LaunchPad has a button for it).
2. Revert the SOP to 000 (the host SOP indication is not yet cleared).
3. When the restore to factory operation is done, the device initiates a hibernate-cycle and the host
application starts.
4. When the host program detects the SOP indication, the host program requests the user to POR (it
must not call sl_Start beforehand).
5. Perform a POR to clear the SOP indication in the host.
If the user pressed the POR during Step 3, the restore process continues and the device automatically
triggers an additional hibernate-reset when finished.
NOTE:
While the restore to factory function is in process, the networking subsystem is in lock state.
CC3220: On Step 4, detection of the SOP indication(011) : (HWREG(0x4402FC18) & 0x80)
CC3220: If the user sets the SOP to 010 in Step 2, the scenario described in Step 5 will not
work.