============================================== CC35xx OTA Example Application ============================================== [OTA] PSA FWU initialized TCPIP_IF_init:: cb_initCompleteInd [OTA] Select action: [1] Connect to WiFi [2] Show components in flash [3] Clean component Choice: ============================================== CC35xx OTA Example Application ============================================== [OTA] PSA FWU initialized TCPIP_IF_init:: cb_initCompleteInd [OTA] Select action: [1] Connect to WiFi [2] Show components in flash [3] Clean component Choice: [OTA] Select action: [1] Connect to WiFi [2] Show components in flash [3] Clean component Choice: 2 Components in flash: # Name State Primary Active Version ------------------------------------------------------------------------ 0 BL2_Slot_1 UPDATED Yes Yes 0.1.0.13 1 BL2_Slot_2 READY No No 0.0.0.0 2 Wireless_FW_Slot_1 UPDATED Yes Yes 0.1.8.0 3 Wireless_FW_Slot_2 READY No No 0.0.0.0 4 Vendor_Image_Slot_1 UPDATED Yes Yes 0.0.0.1 5 Vendor_Image_Slot_2 FAILED No No 0.0.1.0 [OTA] Select action: [1] Connect to WiFi [2] Show components in flash [3] Clean component Choice: 1 [OTA] Starting WiFi driver... cme: osi_ThreadCreate Event_Thread: thrd is running Hardware init DONE! Starting software download..... received ROM init complete..... -------------- Download First CMD -------------- Download IniParams -------------- Wait for IniParams complete TCPIP_IF_addInterface:: cb_addInterfaceDeferred cb_addInterfaceCompleteInd Default Interface Added Firmware version:1.7.0.298 Phy version:0.45.6.1.26.71 [TCPIP_IF_setInterfaceState] I/F - UP! cb_interfaceStatusInd STATUS:: IPv4: DOWN [OTA] IP lost cb_interfaceUpDeferred:: 2b [OTA] STA role up [OTA] Scanning for WiFi networks... # SSID RSSI Ch Security -------------------------------------------------------------- 1 xxxxxx -42 1 Open 2 xxxxxx -55 1 WPA2/WPA3 3 xxxxxx -62 1 Open 4 ziven_ap -38 1 WPA2 5 xxxxxx -55 1 WPA2/WPA3 6 xxxxxx -56 11 WPA2 7 xxxxxx -69 11 WPA/WPA2 8 xxxxxx -54 9 WPA/WPA2 9 xxxxxx -63 9 WPA2 Enter network number (1-9), or 0 to re-scan: 4 [OTA] Network is WPA/WPA2 — password required Enter WiFi password: 12345670 [OTA] Connecting to ziven_ap... [OTA] WLAN event: 0x7 [OTA] WLAN event: 0xa [OTA] Connected to AP: ziven_ap, BSSID: d2:c2:14:be:96:2a [TCPIP_IF_notifyLinkChange] I/F - CONNECTED (MAC LEVEL)! cb_linkStatusInd Link (st) is UP starting DHCPS DHCP is 0 cb_linkUpDeferred:: 2f cb_interfaceStatusInd STATUS:: IPv4: UP (ip 10.113.254.87, gw 10.113.254.159, mask 255.255.255.0) [OTA] IP acquired [OTA] WiFi connected with IP [OTA] System clock set for TLS validation [OTA] Server Connection Enter server base URL (e.g. https://192.168.50.100:8443): 10.113.254.223:8443 [OTA] Querying server: 10.113.254.223:8443/api/updates [HTTPS] Host: 10.113.254.223, Port: 8443, Path: /api/updates Found address 10.113.254.223 for url:10.113.254.223 [HTTPS] Resolved IP: 10.113.254.223 [HTTPS] Connecting to 10.113.254.223:8443... [HTTPS] TCP connected, starting TLS handshake... [HTTPS] TLS handshake complete SEND Get:GET /api/updates HTTP/1.1 Host: 10.113.254.223 Connection: close User-Agent: CC35xx-OTA/1.0 [HTTPS] GET request sent, waiting for response... [HTTPS] HTTP 200, Content-Length: 583 [HTTPS] Download complete: 583 bytes received [OTA] Received 583 bytes from server [OTA] Json: {"updates": [{"file": "primary_vendor_image.sign.0.1.bin", "component": "Vendor_Image", "slot1_id": 4, "slot2_id": 5, "version": "0.0.0.1", "size": 1096464, "url": "/primary_vendor_image.sign.0.1.bin"}, {"file": "primary_vendor_image.sign.1.0.bin", "component": "Vendor_Image", "slot1_id": 4, "slot2_id": 5, "version": "0.0.1.0", "size": 1096464, "url": "/primary_vendor_image.sign.1.0.bin"}, {"file": "primary_vendor_image.sign.1.1.bin", "component": "Vendor_Image", "slot1_id": 4, "slot2_id": 5, "version": "0.0.1.1", "size": 1096464, "url": "/primary_vendor_image.sign.1.1.bin"}]} [OTA] 0: primary_vendor_image.sign.0.1.bin,Vendor_Image,4,5,0.0.0.1,1096464, /primary_vendor_image.sign.0.1.bin [OTA] 1: primary_vendor_image.sign.1.0.bin,Vendor_Image,4,5,0.0.1.0,1096464, /primary_vendor_image.sign.1.0.bin [OTA] 2: primary_vendor_image.sign.1.1.bin,Vendor_Image,4,5,0.0.1.1,1096464, /primary_vendor_image.sign.1.1.bin Available updates from server: # Component Active (slot) Server Status -------------------------------------------------------------- [0] Vendor_Image 0.0.0.1 (S1) 0.0.0.1 [OK] [1] Vendor_Image 0.0.0.1 (S1) 0.0.1.0 [NEW] [2] Vendor_Image 0.0.0.1 (S1) 0.0.1.1 [NEW] [OTA] Download menu: [1] Re-query server [2] Download update [3] Install (stage candidates) [4] Show components in flash [5] Connect to server [6] Disconnect WiFi [7] Quit Choice: 2 Available updates: [0] Vendor_Image (version 0.0.0.1) [1] Vendor_Image (version 0.0.1.0) [2] Vendor_Image (version 0.0.1.1) Select update to download (0-2): 1 [OTA] Updating Vendor_Image -> component 5 (Vendor_Image_Slot_2) [OTA] Component 5 (Vendor_Image_Slot_2): state=FAILED, primary=No, version=0.0.1.0 [OTA] Component in FAILED state, erasing flash, please wait... [OTA] Done — component is now READY [OTA] 5: BaseUrl 10.113.254.223:8443, Path /primary_vendor_image.sign.1.0.bin [OTA] 5: FullUrl 10.113.254.223:8443/primary_vendor_image.sign.1.0.bin [OTA] Starting firmware download for component 5 (Vendor_Image_Slot_2)... [HTTPS] Host: 10.113.254.223, Port: 8443, Path: /primary_vendor_image.sign.1.0.bin Found address 10.113.254.223 for url:10.113.254.223 [HTTPS] Resolved IP: 10.113.254.223 [HTTPS] Connecting to 10.113.254.223:8443... [HTTPS] TCP connected, starting TLS handshake... [HTTPS] TLS handshake complete SEND Get:GET /primary_vendor_image.sign.1.0.bin HTTP/1.1 Host: 10.113.254.223 Connection: close User-Agent: CC35xx-OTA/1.0 [HTTPS] GET request sent, waiting for response... [HTTPS] HTTP 200, Content-Length: 1096464 [OTA] Manifest received (48 bytes), calling psa_fwu_start()... [OTA] 5: Z?hC趔A砍ぢG i [OTA] psa_fwu_start() OK, streaming image data... [OTA] Written 69632 bytes... [OTA] Written 135168 bytes... [OTA] Written 200704 bytes... [OTA] Written 266240 bytes... [OTA] Written 331776 bytes... [OTA] Written 397312 bytes... [OTA] Written 462848 bytes... [OTA] Written 528384 bytes... [OTA] Written 593920 bytes... [OTA] Written 659456 bytes... [OTA] Written 724992 bytes... [OTA] Written 790528 bytes... [OTA] Written 856064 bytes... [OTA] Written 921600 bytes... [OTA] Written 987136 bytes... [OTA] Written 1052672 bytes... [HTTPS] Download complete: 1096464 bytes received [OTA] Download complete: 1096464 bytes total [OTA] Calling psa_fwu_finish() for component 5... [OTA] psa_fwu_finish() OK — image is CANDIDATE [OTA] Use 'Install' to stage all candidates, then 'Request reboot' [OTA] Download menu: [1] Re-query server [2] Download update [3] Install (stage candidates) [4] Show components in flash [5] Connect to server [6] Disconnect WiFi [7] Quit Choice: 3 [OTA] Installing candidates... [OTA] Install OK — candidates are now STAGED [OTA] Updates staged. Select action: [1] Request reboot [2] Reject (undo install) [3] Show components in flash Choice: 1 [OTA] Requesting reboot... ============================================== CC35xx OTA Example Application ============================================== [OTA] PSA FWU initialized TCPIP_IF_init:: cb_initCompleteInd [OTA] TRIAL firmware detected: Component 5 (Vendor_Image_Slot_2): 0.0.1.0 [TRIAL] [OTA] Trial menu: [1] Run self-test (WiFi connectivity) [2] Accept (commit and reboot) [3] Reject (rollback and reboot) [4] Show components in flash [5] Continue to main menu Choice: 2 [OTA] Accepting trial firmware... [OTA] Rebooting to commit update... ============================================== CC35xx OTA Example Application ============================================== [OTA] PSA FWU initialized TCPIP_IF_init:: cb_initCompleteInd [OTA] Select action: [1] Connect to WiFi [2] Show components in flash [3] Clean component Choice: 2 Components in flash: # Name State Primary Active Version ------------------------------------------------------------------------ 0 BL2_Slot_1 UPDATED Yes Yes 0.1.0.13 1 BL2_Slot_2 READY No No 0.0.0.0 2 Wireless_FW_Slot_1 UPDATED Yes Yes 0.1.8.0 3 Wireless_FW_Slot_2 READY No No 0.0.0.0 4 Vendor_Image_Slot_1 FAILED No No 0.0.0.0 5 Vendor_Image_Slot_2 UPDATED Yes Yes 0.0.1.0 [OTA] Select action: [1] Connect to WiFi [2] Show components in flash [3] Clean component Choice: 1 [OTA] Starting WiFi driver... cme: osi_ThreadCreate Event_Thread: thrd is running Hardware init DONE! Starting software download..... received ROM init complete..... -------------- Download First CMD -------------- Download IniParams -------------- Wait for IniParams complete TCPIP_IF_addInterface:: cb_addInterfaceDeferred cb_addInterfaceCompleteInd Default Interface Added Firmware version:1.7.0.298 Phy version:0.45.6.1.26.71 [TCPIP_IF_setInterfaceState] I/F - UP! cb_interfaceStatusInd STATUS:: IPv4: DOWN [OTA] IP lost cb_interfaceUpDeferred:: 2b [OTA] STA role up [OTA] Scanning for WiFi networks... # SSID RSSI Ch Security -------------------------------------------------------------- 1 xxxxxx -55 1 WPA2/WPA3 2 ziven_ap -34 1 WPA2 3 xxxxxx -55 1 WPA2/WPA3 4 xxxxxx -41 1 Open 5 xxxxxx -62 1 Open 6 xxxxxx -52 11 WPA/WPA2 7 xxxxxx -69 11 WPA2 8 xxxxxx -52 11 WPA/WPA2 9 xxxxxx -58 11 WPA2 Enter network number (1-11), or 0 to re-scan: 2 [OTA] Network is WPA/WPA2 — password required Enter WiFi password: 12345670 [OTA] Connecting to ziven_ap... [OTA] WLAN event: 0x7 [OTA] WLAN event: 0xa [OTA] Connected to AP: ziven_ap, BSSID: d2:c2:14:be:96:2a [TCPIP_IF_notifyLinkChange] I/F - CONNECTED (MAC LEVEL)! cb_linkStatusInd Link (st) is UP starting DHCPS DHCP is 0 cb_linkUpDeferred:: 2f cb_interfaceStatusInd STATUS:: IPv4: UP (ip 10.113.254.87, gw 10.113.254.159, mask 255.255.255.0) [OTA] IP acquired [OTA] WiFi connected with IP [OTA] System clock set for TLS validation [OTA] Server Connection Enter server base URL (e.g. https://192.168.50.100:8443): 10.113.254.223:8443 [OTA] Querying server: 10.113.254.223:8443/api/updates [HTTPS] Host: 10.113.254.223, Port: 8443, Path: /api/updates Found address 10.113.254.223 for url:10.113.254.223 [HTTPS] Resolved IP: 10.113.254.223 [HTTPS] Connecting to 10.113.254.223:8443... [HTTPS] TCP connected, starting TLS handshake... [HTTPS] TLS handshake complete SEND Get:GET /api/updates HTTP/1.1 Host: 10.113.254.223 Connection: close User-Agent: CC35xx-OTA/1.0 [HTTPS] GET request sent, waiting for response... [HTTPS] HTTP 200, Content-Length: 583 [HTTPS] Download complete: 583 bytes received [OTA] Received 583 bytes from server [OTA] Json: {"updates": [{"file": "primary_vendor_image.sign.0.1.bin", "component": "Vendor_Image", "slot1_id": 4, "slot2_id": 5, "version": "0.0.0.1", "size": 1096464, "url": "/primary_vendor_image.sign.0.1.bin"}, {"file": "primary_vendor_image.sign.1.0.bin", "component": "Vendor_Image", "slot1_id": 4, "slot2_id": 5, "version": "0.0.1.0", "size": 1096464, "url": "/primary_vendor_image.sign.1.0.bin"}, {"file": "primary_vendor_image.sign.1.1.bin", "component": "Vendor_Image", "slot1_id": 4, "slot2_id": 5, "version": "0.0.1.1", "size": 1096464, "url": "/primary_vendor_image.sign.1.1.bin"}]} [OTA] 0: primary_vendor_image.sign.0.1.bin,Vendor_Image,4,5,0.0.0.1,1096464, /primary_vendor_image.sign.0.1.bin [OTA] 1: primary_vendor_image.sign.1.0.bin,Vendor_Image,4,5,0.0.1.0,1096464, /primary_vendor_image.sign.1.0.bin [OTA] 2: primary_vendor_image.sign.1.1.bin,Vendor_Image,4,5,0.0.1.1,1096464, /primary_vendor_image.sign.1.1.bin Available updates from server: # Component Active (slot) Server Status -------------------------------------------------------------- [0] Vendor_Image 0.0.1.0 (S2) 0.0.0.1 [OK] [1] Vendor_Image 0.0.1.0 (S2) 0.0.1.0 [OK] [2] Vendor_Image 0.0.1.0 (S2) 0.0.1.1 [NEW] [OTA] Download menu: [1] Re-query server [2] Download update [3] Install (stage candidates) [4] Show components in flash [5] Connect to server [6] Disconnect WiFi [7] Quit Choice: 2 Available updates: [0] Vendor_Image (version 0.0.0.1) [1] Vendor_Image (version 0.0.1.0) [2] Vendor_Image (version 0.0.1.1) Select update to download (0-2): 2 [OTA] Updating Vendor_Image -> component 4 (Vendor_Image_Slot_1) [OTA] Component 4 (Vendor_Image_Slot_1): state=FAILED, primary=No, version=0.0.0.0 [OTA] Component in FAILED state, erasing flash, please wait... [OTA] Done — component is now READY [OTA] 4: BaseUrl 10.113.254.223:8443, Path /primary_vendor_image.sign.1.1.bin [OTA] 4: FullUrl 10.113.254.223:8443/primary_vendor_image.sign.1.1.bin [OTA] Starting firmware download for component 4 (Vendor_Image_Slot_1)... [HTTPS] Host: 10.113.254.223, Port: 8443, Path: /primary_vendor_image.sign.1.1.bin Found address 10.113.254.223 for url:10.113.254.223 [HTTPS] Resolved IP: 10.113.254.223 [HTTPS] Connecting to 10.113.254.223:8443... [HTTPS] TCP connected, starting TLS handshake... [HTTPS] TLS handshake complete SEND Get:GET /primary_vendor_image.sign.1.1.bin HTTP/1.1 Host: 10.113.254.223 Connection: close User-Agent: CC35xx-OTA/1.0 [HTTPS] GET request sent, waiting for response... [HTTPS] HTTP 200, Content-Length: 1096464 [OTA] Manifest received (48 bytes), calling psa_fwu_start()... [OTA] 4: ? ?? jO{?翯 i [OTA] psa_fwu_start() OK, streaming image data... [OTA] Written 69632 bytes... [OTA] Written 135168 bytes... [OTA] Written 200704 bytes... [OTA] Written 266240 bytes... [OTA] Written 331776 bytes... [OTA] Written 397312 bytes... [OTA] Written 462848 bytes... [OTA] Written 528384 bytes... [OTA] Written 593920 bytes... [OTA] Written 659456 bytes... [OTA] Written 724992 bytes... [OTA] Written 790528 bytes... [OTA] Written 856064 bytes... [OTA] Written 921600 bytes... [OTA] Written 987136 bytes... [OTA] Written 1052672 bytes... [HTTPS] Download complete: 1096464 bytes received [OTA] Download complete: 1096464 bytes total [OTA] Calling psa_fwu_finish() for component 4... [OTA] psa_fwu_finish() OK — image is CANDIDATE [OTA] Use 'Install' to stage all candidates, then 'Request reboot' [OTA] Download menu: [1] Re-query server [2] Download update [3] Install (stage candidates) [4] Show components in flash [5] Connect to server [6] Disconnect WiFi [7] Quit Choice: 4 Components in flash: # Name State Primary Active Version ------------------------------------------------------------------------ 0 BL2_Slot_1 UPDATED Yes Yes 0.1.0.13 1 BL2_Slot_2 READY No No 0.0.0.0 2 Wireless_FW_Slot_1 UPDATED Yes Yes 0.1.8.0 3 Wireless_FW_Slot_2 READY No No 0.0.0.0 4 Vendor_Image_Slot_1 CANDIDATE No No 0.0.1.1 5 Vendor_Image_Slot_2 UPDATED Yes Yes 0.0.1.0 [OTA] Download menu: [1] Re-query server [2] Download update [3] Install (stage candidates) [4] Show components in flash [5] Connect to server [6] Disconnect WiFi [7] Quit Choice: 3 [OTA] Installing candidates... [OTA] Install OK — candidates are now STAGED [OTA] Updates staged. Select action: [1] Request reboot [2] Reject (undo install) [3] Show components in flash Choice: 3 Components in flash: # Name State Primary Active Version ------------------------------------------------------------------------ 0 BL2_Slot_1 UPDATED Yes Yes 0.1.0.13 1 BL2_Slot_2 READY No No 0.0.0.0 2 Wireless_FW_Slot_1 UPDATED Yes Yes 0.1.8.0 3 Wireless_FW_Slot_2 READY No No 0.0.0.0 4 Vendor_Image_Slot_1 STAGED No No 0.0.1.1 5 Vendor_Image_Slot_2 UPDATED Yes Yes 0.0.1.0 [OTA] Updates staged. Select action: [1] Request reboot [2] Reject (undo install) [3] Show components in flash Choice: 1 [OTA] Requesting reboot... ============================================== CC35xx OTA Example Application ============================================== [OTA] PSA FWU initialized TCPIP_IF_init:: cb_initCompleteInd [OTA] WARNING: STAGED updates found after unexpected reboot. [OTA] These updates cannot be applied and will be removed. [OTA] Rejecting and cleaning up, please wait... [OTA] Done. Please re-download and install the updates. [OTA] Select action: [1] Connect to WiFi [2] Show components in flash [3] Clean component Choice: 2 Components in flash: # Name State Primary Active Version ------------------------------------------------------------------------ 0 BL2_Slot_1 UPDATED Yes Yes 0.1.0.13 1 BL2_Slot_2 READY No No 0.0.0.0 2 Wireless_FW_Slot_1 UPDATED Yes Yes 0.1.8.0 3 Wireless_FW_Slot_2 READY No No 0.0.0.0 4 Vendor_Image_Slot_1 READY No No 0.0.0.0 5 Vendor_Image_Slot_2 UPDATED Yes Yes 0.0.1.0 [OTA] Select action: [1] Connect to WiFi [2] Show components in flash [3] Clean component Choice: