Part Number: LAUNCHCC3220MODASF
Tool/software:
Hello all,
I use UniFlash 9.1 and want to create a UniFlash Image for the CC3220MODASF MCU using the command line tool SLImageCreator.
In the resulting UniFlash-Image all Reset-To-Factory specific features must be disabled.
SinceI could not find any documentation about the JSON configuration file mentioned in the TI documentation SWRU469H, I created an empty UniFLash Project myProject with the desired settings and exported it as the usual ZIP-File.
I extracted the file myproject.json from the ZIP file.
This file contains two JSON keys that contain the string "Factory"
"EnableReturnToFactory":"none",
"ReturnToFactoryGPIO":"1",
Next steps using the SLImageCreator command line interface:
* creation of a new UniFlash project myproject based on that mentioned extracted JSON file
* add some certificate files
* add and signs mcu file
* add service pack
* set the TI Dummy certstore
SLImageCreator project new --project_path %cd%\temp\projects --name myproject --device CC3220SF --cfg_json myproject.json --overwrite SLImageCreator project add_file --project_path %cd%\temp\projects --name myproject --file %cd%\vendor\cert_rootca --fs_path "cert_rootca" --overwrite SLImageCreator project add_file --project_path %cd%\temp\projects --name myproject --file %cd%\vendor\cert_codesign --fs_path "cert_codesign" --overwrite SLImageCreator project add_file --project_path %cd%\temp\projects --name myproject --file %cd%\mybin.bin --mcu --priv %cd%\vendor\cert_rootca_key.pem --cert cert_rootca --overwrite SLImageCreator project set_certstore --project_path %cd%\temp\projects --name myproject --file %cd%\vendor\my_catalogue.lst --sign %cd%\vendor\my_catalogue.lst.signed.bin SLImageCreator.exe project set_sp --project_path %cd%\temp\projects --name myproject --file %cd%\sp_3.21.0.1_2.7.0.0_2.2.0.7.bin SLImageCreator project export --project_path %cd%\temp\projects --name myproject --file %cd%\myproject.zip
The process ends without errors.
The resulting project is as expected, with the exception that the entries relating to Restore-to-Factory have been overwritten and this functionality has been reactivated.
The JSON configuration files is overwritten by the first command.
SLImageCreator project new --project_path %cd%\temp\projects --name myproject --mode production --device CC3220SF --cfg_json myproject.json --overwrite
How can I create a UniFlash Project with the Reset-To-Factory settings disabled using the SLImageCreator.exe in combination with the JSON file?
Is there any documentation about the keys and values used in the JSON configuration file?
Many thanks,
Roman