在 Texas Instruments CC3220SF-LAUNCHXL 上安装初始版本的固件 - FreeRTOS
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 AWS 服务入门

在 Texas Instruments CC3220SF-LAUNCHXL 上安装初始版本的固件

编写以下步骤时,假定您已经按照在 Texas Instruments CC3220SF-LAUNCHXL 上下载、构建、刷写并运行 FreeRTOS OTA 演示 中的说明,构建了 aws_demos 项目。

  1. 在 Texas Instruments CC3220SF-LAUNCHXL 上,将 SOP 跳线放在中间一组针脚(位置 = 1)上,然后重置主板。

  2. 下载并安装 TI Uniflash 工具

  3. 启动 Uniflash。从配置列表中选择 CC3220SF-LAUNCHXL,然后选择 Start Image Creator (启动映像创建器)

  4. 选择 New Project (新项目)

  5. Start new project (启动新项目) 页面上,输入项目名称。对于 Device Type (设备类型),选择 CC3220SF。对于 Device Mode (设备模式),选择 Develop (开发)。选择 Create Project (创建项目)

  6. 断开终端模拟器。

  7. 在 Uniflash 应用程序窗口的右侧,选择 Connect (连接)

  8. Advanced (高级)Files (文件) 下,选择 User Files (用户文件)

  9. File (文件) 选择器窗格中,选择 Add File (添加文件) 图标

  10. 浏览至 /Applications/Ti/simplelink_cc32xx_sdk_version/tools/cc32xx_tools/certificate-playground 目录,选择 dummy-root-ca-cert,然后依次选择 Open (打开)Write (写入)

  11. File (文件) 选择器窗格中,选择 Add File (添加文件) 图标

  12. 浏览至创建代码签名证书和私有密钥的工作目录,选择 tisigner.crt.der,然后依次选择 Open (打开)Write (写入)

  13. Action (操作) 下拉列表中,选择 Select MCU Image (选择 MCU 映像),然后选择 Browse (浏览) 以选择要写入设备的固件映像 (aws_demos.bin)。此文件位于 freertos/vendors/ti/boards/cc3220_launchpad/aws_demos/ccs/Debug 目录中。选择 Open (打开)

    1. 在“File (文件)”对话框中,确认文件名设置为 mcuflashimg.bin

    2. 选中 Vendor (供应商) 复选框。

    3. File Token (文件令牌) 下,键入 1952007250

    4. Private Key File Name (私有密钥文件名称) 下,选择 Browse (浏览),然后从创建代码签名证书和私有密钥的工作目录中选择 tisigner.key

    5. Certification File Name (认证文件名称) 下,选择 tisigner.crt.der

    6. 选择 Write (写入)

  14. 在左侧窗格的 Files (文件) 下,选择 Service Pack

  15. Service Pack File Name (Service Pack 文件名称) 下,选择 Browse (浏览),浏览至 simplelink_cc32x_sdk_version/tools/cc32xx_tools/servicepack-cc3x20,选择 sp_3.7.0.1_2.0.0.0_2.2.0.6.bin,然后选择 Open (打开)

  16. 在左侧窗格的 Files (文件) 下,选择 Trusted Root-Certificate Catalog (受信任的根证书目录)

  17. 清除 Use default Trusted Root-Certificate Catalog (使用默认的受信任的根证书目录) 复选框。

  18. Source File (源文件) 下,选择 Browse (浏览),选择 simplelink_cc32xx_sdk_version/tools/cc32xx_tools/certificate-playground/certcatalogPlayGround20160911.lst,然后选择 Open (打开)

  19. Signature Source File (签名源文件) 下,选择 Browse (浏览),选择 simplelink_cc32xx_sdk_version/tools/cc32xx_tools/certificate-playground/certcatalogPlayGround20160911.lst.signed_3220.bin,然后选择 Open (打开)

  20. 选择 按钮保存项目。

  21. 选择 按钮。

  22. 选择 Program Image (Create and Program) (编程映像 (创建和编程))

  23. 编程过程完成之后,将 SOP 跳线放在第一组针脚(位置 = 0)上,重置主板,然后重新连接终端模拟器,以确保输出与使用 Code Composer Studio 调试演示代码时是相同的。记下终端输出中的应用程序版本号。稍后可以使用此版本号验证固件是否已通过 OTA 更新进行了更新。

    终端应显示类似于以下内容的输出。

    0 0 [Tmr Svc] Simple Link task created Device came up in Station mode 1 369 [Tmr Svc] Starting key provisioning... 2 369 [Tmr Svc] Write root certificate... 3 467 [Tmr Svc] Write device private key... 4 568 [Tmr Svc] Write device certificate... SL Disconnect... 5 664 [Tmr Svc] Key provisioning done... Device came up in Station mode Device disconnected from the AP on an ERROR..!! [WLAN EVENT] STA Connected to the AP: Guest , BSSID: 11:22:a1:b2:c3:d4 [NETAPP EVENT] IP acquired by the device Device has connected to Guest Device IP Address is 111.222.3.44 6 1716 [OTA] OTA demo version 0.9.0 7 1717 [OTA] Creating MQTT Client... 8 1717 [OTA] Connecting to broker... 9 1717 [OTA] Sending command to MQTT task. 10 1717 [MQTT] Received message 10000 from queue. 11 2193 [MQTT] MQTT Connect was accepted. Connection established. 12 2193 [MQTT] Notifying task. 13 2194 [OTA] Command sent to MQTT task passed. 14 2194 [OTA] Connected to broker. 15 2196 [OTA Task] Sending command to MQTT task. 16 2196 [MQTT] Received message 20000 from queue. 17 2697 [MQTT] MQTT Subscribe was accepted. Subscribed. 18 2697 [MQTT] Notifying task. 19 2698 [OTA Task] Command sent to MQTT task passed. 20 2698 [OTA Task] [OTA] Subscribed to topic: $aws/things/TI-LaunchPad/jobs/$next/get/accepted 21 2699 [OTA Task] Sending command to MQTT task. 22 2699 [MQTT] Received message 30000 from queue. 23 2800 [MQTT] MQTT Subscribe was accepted. Subscribed. 24 2800 [MQTT] Notifying task. 25 2801 [OTA Task] Command sent to MQTT task passed. 26 2801 [OTA Task] [OTA] Subscribed to topic: $aws/things/TI-LaunchPad/jobs/notify-next 27 2814 [OTA Task] [OTA] Check For Update #0 28 2814 [OTA Task] Sending command to MQTT task. 29 2814 [MQTT] Received message 40000 from queue. 30 2916 [MQTT] MQTT Publish was successful. 31 2916 [MQTT] Notifying task. 32 2917 [OTA Task] Command sent to MQTT task passed. 33 2917 [OTA Task] [OTA] Set job doc parameter [ clientToken: 0:TI-LaunchPad ] 34 2917 [OTA Task] [OTA] Missing job parameter: execution 35 2917 [OTA Task] [OTA] Missing job parameter: jobId 36 2918 [OTA Task] [OTA] Missing job parameter: jobDocument 37 2918 [OTA Task] [OTA] Missing job parameter: ts_ota 38 2918 [OTA Task] [OTA] Missing job parameter: files 39 2918 [OTA Task] [OTA] Missing job parameter: streamname 40 2918 [OTA Task] [OTA] Missing job parameter: certfile 41 2918 [OTA Task] [OTA] Missing job parameter: filepath 42 2918 [OTA Task] [OTA] Missing job parameter: filesize 43 2919 [OTA Task] [OTA] Missing job parameter: sig-sha1-rsa 44 2919 [OTA Task] [OTA] Missing job parameter: fileid 45 2919 [OTA Task] [OTA] Missing job parameter: attr 47 3919 [OTA] [OTA] Queued: 1 Processed: 1 Dropped: 0 48 4919 [OTA] [OTA] Queued: 1 Processed: 1 Dropped: 0 49 5919 [OTA] [OTA] Queued: 1 Processed: 1 Dropped: 0