Install the initial version of firmware on the Texas Instruments CC3220SF-LAUNCHXL - FreeRTOS

Install the initial version of firmware on the Texas Instruments CC3220SF-LAUNCHXL

Important

This reference integration is hosted on the Amazon-FreeRTOS repository which is deprecated. We recommend that you start here when you create a new project. If you already have an existing FreeRTOS project based on the now deprecated Amazon-FreeRTOS repository, see the Amazon-FreeRTOS Github Repository Migration Guide.

These steps are written with the assumption that you have already built the aws_demos project, as described in Download, build, flash, and run the FreeRTOS OTA demo on the Texas Instruments CC3220SF-LAUNCHXL.

  1. On your Texas Instruments CC3220SF-LAUNCHXL, place the SOP jumper on the middle set of pins (position = 1) and reset the board.

  2. Download and install the TI Uniflash tool.

  3. Start Uniflash. From the list of configurations, choose CC3220SF-LAUNCHXL, and then choose Start Image Creator.

  4. Choose New Project.

  5. On the Start new project page, enter a name for your project. For Device Type, choose CC3220SF. For Device Mode, choose Develop. Choose Create Project.

  6. Disconnect your terminal emulator.

  7. On the right side of the Uniflash application window, choose Connect.

  8. Under Advanced, Files, choose User Files.

  9. In the File selector pane, choose the Add File icon .

  10. Browse to the /Applications/Ti/simplelink_cc32xx_sdk_version/tools/cc32xx_tools/certificate-playground directory, select dummy-root-ca-cert, choose Open, and then choose Write.

  11. In the File selector pane, choose the Add File icon .

  12. Browse to the working directory where you created the code-signing certificate and private key, choose tisigner.crt.der, choose Open, and then choose Write.

  13. From the Action drop-down list, choose Select MCU Image, and then choose Browse to choose the firmware image to use write to your device (aws_demos.bin). This file is located in the freertos/vendors/ti/boards/cc3220_launchpad/aws_demos/ccs/Debug directory. Choose Open.

    1. In the file dialog box, confirm the file name is set to mcuflashimg.bin.

    2. Select the Vendor check box.

    3. Under File Token, type 1952007250.

    4. Under Private Key File Name, choose Browse, and then choose tisigner.key from the working directory where you created the code-signing certificate and private key.

    5. Under Certification File Name, choose tisigner.crt.der.

    6. Choose Write.

  14. In the left pane, under Files, choose Service Pack.

  15. Under Service Pack File Name, choose Browse, browse to simplelink_cc32x_sdk_version/tools/cc32xx_tools/servicepack-cc3x20, choose sp_3.7.0.1_2.0.0.0_2.2.0.6.bin, and then choose Open.

  16. In the left pane, under Files, choose Trusted Root-Certificate Catalog.

  17. Clear the Use default Trusted Root-Certificate Catalog check box.

  18. Under Source File, choose Browse, choose simplelink_cc32xx_sdk_version/tools/cc32xx_tools/certificate-playground/certcatalogPlayGround20160911.lst, and then choose Open.

  19. Under Signature Source File, choose Browse, choose simplelink_cc32xx_sdk_version/tools/cc32xx_tools/certificate-playground/certcatalogPlayGround20160911.lst.signed_3220.bin, and then choose Open.

  20. Choose the button to save your project.

  21. Choose the button.

  22. Choose Program Image (Create and Program).

  23. After the programming process is complete, place the SOP jumper onto the first set of pins (position = 0), reset the board, and reconnect your terminal emulator to make sure the output is the same as when you debugged the demo with Code Composer Studio. Make a note of the application version number in the terminal output. You use this version number later to verify that your firmware has been updated by an OTA update.

    The terminal should display output like the following.

    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