器件型号:LAUNCHCC3220MODASF
工具/软件:
大家好:
我使用 UniFlash 9.1、并希望使用命令行工具 SLImageCreator 为 CC3220MODASF MCU 创建 UniFlash 映像。
在生成的 UniFlash-Image 中、必须禁用所有重置到出厂设置特定功能。
SinceI 找不到任何有关 TI 文档 SWRU469H 中提到的 JSON 配置文件的文档、我创建了一个具有所需设置的空 UniFLash 工程 MyProject、并将其导出为常规的 ZIP 文件格式。
我 从 ZIP 文件中提取了文件 MyProject.json。
此文件包含两个 JSON 密钥、其中包含字符串“Factory
“EnableReturnToFactory:“None",“,</s>、
“ReturnToFactoryGPIO":“:“1",“,</s>、
使用 SLImageCreator 命令行界面的后续步骤:
*基于上述提取的 JSON 文件创建新的 UniFlash 项目 MyProject
*添加一些证书文件
*添加并签署 MCU 文件
*添加服务包
*设置 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
该过程在没有错误的情况下结束。
生成的项目符合预期、但与“恢复到出厂“相关的条目已被覆盖且此功能已重新激活。
JSON 配置文件被第一条命令覆盖。
SLImageCreator 工程新工程--project_path %cd%\temp\projects - name MyProject - mode production --device CC3220SF --cfg_json MyProject.json --overwrite
如何使用 SLImageCreator.exe 和 JSON 文件创建一个禁用了重置到出厂设置的 UniFlash 工程?
是否有任何有关 JSON 配置文件中使用的密钥和值的文档?
非常感谢、
罗马