toolbelt recover¶
Note
On the E20 (and other gateways) when issuing the recovery commands you may need to use sudo `which snap`
to
provide sudo the full path to where SNAPtoolbelt is installed:
sudo `which toolbelt` recover erase-script SM220
Note
In addition to the full SNAP module names (e.g. SM220UF1
, RF520UF1
, SN220
) you can also use the following module categories:
2xx
oratmel
for all ATmega128RFA1-based modules5xx
ormg
for all Mighty Gecko-based modules
toolbelt recover reset¶
Description¶
Just reset the connected module. On the SNAPconnect E12 and SNAPconnect E20, use the built-in GPIO to reset the SNAP module. For the SN132 SNAPstick and SN220 SNAPstick, use the appropriate FTDI commands to reset the SNAP module. Attempts a DTR-based reset otherwise.
Usage¶
- toolbelt [global options] recover reset
toolbelt recover erase-script¶
Description¶
Erase any script on the connected module
Usage¶
- toolbelt [global options] recover erase-script [-h] <module>
Positional Arguments¶
- module
The type of SNAP module
Examples¶
Erase any script on the connected SN220 SNAPstick module:
toolbelt recover erase-script SN220
toolbelt recover default-nvparam¶
Description¶
Restore the NV Params to the factory defaults on the connected module
Usage¶
- toolbelt [global options] recover default-nvparam [-h] <module>
Positional Arguments¶
- module
The type of SNAP module
Examples¶
Factory default the NV Params on the connected SS200 module:
toolbelt recover default-nvparam SS200
toolbelt recover unbrick¶
Description¶
Erase script and restore the NV Params to the factory defaults on the connected module.
Usage¶
- toolbelt [global options] recover unbrick [-h] <module>
Positional Arguments¶
- module
The type of SNAP module
Examples¶
Factory default the NV Params on the connected SS200 module:
toolbelt recover default-nvparam SS200
toolbelt recover firmware¶
Description¶
Load the specified firmware on the connected module via the bootloader
Usage¶
- toolbelt [global options] recover firmware [-h] <module> <fw>
Positional Arguments¶
- module
The type of SNAP module
- fw
The SNAPcore file to load (SFI for Atmel-based, or GBL for Mighty Gecko-based).
Examples¶
To load SNAPcore 2.8.2 on an SN220:
toolbelt recover firmware SN220 ./sfifiles/SN220_AES128_SnapV2.8.2.sfi
toolbelt recover script¶
Description¶
Load the specified script on the connected module via the bootloader
Note
This function is currently supported only for Atmel-based modules.
Usage¶
- toolbelt [global options] recover script [-h] <module> <spy>
Positional Arguments¶
- module
The type of SNAP module
- spy
The SNAPpy image (SPY file) to load.
Examples¶
To load the uut.spy
SNAPpy image on an SN220 via the bootloader:
toolbelt recover script SN220 uut.spy