Other Parts Discussed in Thread: UNIFLASH
Tool/software: TI-RTOS
Hi there,
I am using the CC3220modasf-Launchpad for my development. I am trying to use the Local OTA to update the firmware of my MCU. So for this, I have used the LOCAL OTA application given by the TI. I am using the latest SDK i.e. 3.10.00.04 and uniflash version 5.0.0.2289 (latest). I have imported the uniflash .zip project in the uniflash and compiled binary and flash the MCU with this application. So I can able to see the logs on the terminal.
Now I have used the given .tar file which is the SDK as an example_tar. I have input this file to update the firmware using local OTA. everything works fine and at last when the device gets restart and try to write the flash image I the flash, its gets fail and the device gets restart and shows me failure message on the webpage.
And the device again boots with the old image. I am not getting why this is happening.
Can anyone help me in this regards
I have attached the terminal logs with this post. Have a look into this. You will get an idea about what I want to say.
Thanks.
Anand Kalode.
�[Local ota task] pinging to gateway failed, no response
[Local ota task] Handle LocalOtaEvent_Restart in state=3, next=0
[Common] CC32xx MCU reset request
=================================================
local ota Example Ver. 1.00.00.12
=================================================
[Local ota task] Woken up from Hibernate
[Local ota task] ConfigureHttpServer for secured mode...
[Local ota task] HTTP Server Stopped
[Local ota task] HTTP Server Re-started
[Local ota task] Device is configured in default state
[Local ota task] SimpleLinkInitCallback: started in role 0
[Provisioning task] detected device is CC3220SF
[Local ota task] Host Driver Version: 3.0.1.51
Build Version 3.11.0.6.31.2.0.0.0.2.2.0.6
[Local ota task] WlanConnect SSID=hello
[WLAN EVENT] STA Connected to the AP: hello ,BSSID: 38:37:8b:c2:d1:56
[NETAPP EVENT] IP Acquired: IP=192.168.43.14 , Gateway=192.168.43.1
[Local ota task] Pinging gateway, please wait...
[Local ota task] pinging to gateway failed, no response
[Local ota task] Handle LocalOtaEvent_Restart in state=3, next=0
[Common] CC32xx MCU reset request
=================================================
local ota Example Ver. 1.00.00.12
=================================================
[Local ota task] Woken up from Hibernate
[Local ota task] ConfigureHttpServer for secured mode...
[Local ota task] HTTP Server Stopped
[Local ota task] HTTP Server Re-started
[Local ota task] Device is configured in default state
[Local ota task] SimpleLinkInitCallback: started in role 0
[Provisioning task] detected device is CC3220SF
[Local ota task] Host Driver Version: 3.0.1.51
Build Version 3.11.0.6.31.2.0.0.0.2.2.0.6
[Local ota task] WlanConnect SSID=hello
[WLAN EVENT] STA Connected to the AP: hello ,BSSID: 38:37:8b:c2:d1:56
[NETAPP EVENT] IP Acquired: IP=192.168.43.14 , Gateway=192.168.43.1
[Local ota task] Pinging gateway, please wait...
[Local ota task] pinging to gateway succeeded
[Local ota task] waiting for new ota upload...
[Link local task] HTTP GET Request
[Link local task] characteristic is: macaddress
[Link local task] characteristic is: ipaddress
[Link local task] characteristic is: ssid
[Provisioning task] detected device is CC3220SF
[Link local task] HTTP GET Request
[Link local task] characteristic is: version
[Link local task] HTTP GET Request
[Link local task] characteristic is: ipaddress
[Provisioning task] detected device is CC3220SF
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
[Link local task] HTTP PUT Request
[Link local task] characteristic is: filename
[Link local task] value is: cc3220sf_local_ota_tirtos_ota.tar
[Provisioning task] detected device is CC3220SF
[Link local task] Received OTA filename cc3220sf_local_ota_tirtos_ota.tar, len = 337920
[OtaArchive_Init] OTA archive version = OTA_ARCHIVE_2.0.0.4
[ OtaArchive_CheckVersion] current version str = 20180503150640, decimal = -1548173264
[ OtaArchive_CheckVersion] new version str = cc3220sf_local, decimal = 0
[ OtaArchive_CheckVersion] older version update - cc3220sf_local
[_BundleCmdFile_Parse] bundle cmd file=/sys/mcubootinfo.bin, sig_len=0, SHA_256_Digets=ca07d9c0c8cf718e227cc62a5198025728005c056ab53b5c8242af364fa437ed, cert=, secured=1, bundle=1
[_BundleCmdFile_Parse] bundle cmd file=/sys/mcuflashimg.bin, sig_len=256, SHA_256_Digets=6f1d7e6c40428ca2c7ff326f826da834eadad69a8fef238284445e91b1837797, cert=dummyt-root-ca-cert, secured=1, bundle=1
[_BundleCmdFile_Parse] bundle cmd file=/www/css/style.css, sig_len=0, SHA_256_Digets=40269725b8af3f678e58444efc21de7640988932ca891432bf699d26dc73b65f, cert=, secured=0, bundle=1
[_BundleCmdFile_Parse] bundle cmd file=/www/help.html, sig_len=0, SHA_256_Digets=3e3b36240749d60e5fd1ecf4b8737f3df155a2b91eb4e8a267a4653b6a58d9ba, cert=, secured=0, bundle=1
[_BundleCmdFile_Parse] bundle cmd file=/www/images/icons/help.png, sig_len=0, SHA_256_Digets=81d79e4b38391e7d3bbbe825d639ca9a4bae777bb1f792d6805e8616a3c7d71d, cert=, secured=0, bundle=1
[_BundleCmdFile_Parse] bundle cmd file=/www/images/icons/menu.png, sig_len=0, SHA_256_Digets=ec6173aa201099907edf035e11fd23462499f0642e8aaa967838fddad332c3be, cert=, secured=0, bundle=1
[_BundleCmdFile_Parse] bundle cmd file=/www/images/icons/wireless.png, sig_len=0, SHA_256_Digets=e04e33b015cf29d69124eb970d410f21c96d72776131bff908fa41ded2b8f65f, cert=, secured=0, bundle=1
[ota report task] OTA progress 1%
[_BundleCmdFile_Parse] bundle cmd file=/www/images/icons/wirelessfull.png, sig_len=0, SHA_256_Digets=5ea6198e7f4d1ea4d4a6317696a5d10e602797904b3a00262e02323999d7b3c4, cert=, secured=0, bundle=1
[_BundleCmdFile_Parse] bundle cmd file=/www/images/tilogo.gif, sig_len=0, SHA_256_Digets=3e59f665ba3876aafbc0b124459df996dc85c9bc7533df63b670ba19228e2d1e, cert=, secured=0, bundle=1
[_BundleCmdFile_Parse] bundle cmd file=/www/index.html, sig_len=0, SHA_256_Digets=d7bf04dad7a65d22ff3d44d5d0caadb4da79ffa838efa2a9bbed6deaa2a3ca4e, cert=, secured=0, bundle=1
[_BundleCmdFile_Parse] bundle cmd file=/www/js/jquery.min.js, sig_len=0, SHA_256_Digets=22642f202577f0ba2f22cbe56b6cf291a09374487567cd3563e0d2a29f75c0c5, cert=, secured=0, bundle=1
[_BundleCmdFile_Parse] bundle cmd file=/www/js/scripts.js, sig_len=0, SHA_256_Digets=499033372e66443a41a9d407717ed82da66550b1ff067549cfe88b0c058e1f9b, cert=, secured=0, bundle=1
[_BundleCmdFile_Parse] bundle cmd file=/www/ota.html, sig_len=0, SHA_256_Digets=d37906f095315cef812fd491f6406725816b0684adb2734604bd332c700c15e7, cert=, secured=0, bundle=1
[_BundleCmdFile_Parse] bundle cmd file=/www/settings.html, sig_len=0, SHA_256_Digets=a7ef881e185e778773b9f56379e8b5d19181ce35fb33f714ffa57b8d8d30b2b9, cert=, secured=0, bundle=1
[_BundleCmdFile_Parse] bundle cmd file=dummyt-root-ca-cert, sig_len=0, SHA_256_Digets=34941765501d16a4ab776c3a74d89945f1a2575c5893069f62ffbe803f344549, cert=, secured=0, bundle=0
[_BundleCmdFile_Parse] bundle cmd file=/sys/servicepack.ucf, sig_len=256, SHA_256_Digets=f0fa2b885052a65fb79004a6e70e37db6cce075ad6d4b24bcf2cf447f4e5d95b, cert=, secured=1, bundle=1
[OtaArchive_RunParseTar] Create/Open for write file dummyt-root-ca-cert
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
Hash verification succeeded.
Total archive file bytes 9679.
OtaArchive_RunParseTar: 1 files that are mentioned in the ota.cmd were saved
[OtaArchive_RunParseTar] Downloading File Completed - Size=975
[OtaArchive_RunParseTar] Create/Open for write file /sys/mcubootinfo.bin
Hash verification succeeded.
Total archive file bytes 10256.
OtaArchive_RunParseTar: 2 files that are mentioned in the ota.cmd were saved
[OtaArchive_RunParseTar] Downloading File Completed - Size=16
[OtaArchive_RunParseTar] Create/Open for write file /sys/mcuflashimg.bin
[ota report task] OTA progress 3%
[ota report task] OTA progress 6%
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
[SOCK ERROR] - close socket (7) operation failed to transmit all queued packets
[ota report task] OTA progress 9%
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
[ota report task] OTA progress 14%
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
[ota report task] OTA progress 18%
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
[ota report task] OTA progress 22%
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
[ota report task] OTA progress 30%
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
Hash verification succeeded.
Total archive file bytes 122500.
OtaArchive_RunParseTar: 3 files that are mentioned in the ota.cmd were saved
[OtaArchive_RunParseTar] Downloading File Completed - Size=111236
[OtaArchive_RunParseTar] Create/Open for write file /www/css/style.css
[ota report task] OTA progress 36%
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
[SOCK ERROR] - close socket (4) operation failed to transmit all queued packets
[ota report task] OTA progress 41%
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
Hash verification succeeded.
Total archive file bytes 152954.
OtaArchive_RunParseTar: 4 files that are mentioned in the ota.cmd were saved
[OtaArchive_RunParseTar] Downloading File Completed - Size=29562
[OtaArchive_RunParseTar] Create/Open for write file /www/help.html
Hash verification succeeded.
Total archive file bytes 154401.
OtaArchive_RunParseTar: 5 files that are mentioned in the ota.cmd were saved
[OtaArchive_RunParseTar] Downloading File Completed - Size=801
[OtaArchive_RunParseTar] Create/Open for write file /www/images/icons/help.png
Hash verification succeeded.
Total archive file bytes 156425.
OtaArchive_RunParseTar: 6 files that are mentioned in the ota.cmd were saved
[ota report task] OTA progress 45%
[OtaArchive_RunParseTar] Downloading File Completed - Size=1289
[OtaArchive_RunParseTar] Create/Open for write file /www/images/icons/menu.png
Hash verification succeeded.
Total archive file bytes 158159.
OtaArchive_RunParseTar: 7 files that are mentioned in the ota.cmd were saved
[OtaArchive_RunParseTar] Downloading File Completed - Size=975
[OtaArchive_RunParseTar] Create/Open for write file /www/images/icons/wireless.png
Hash verification succeeded.
Total archive file bytes 159896.
OtaArchive_RunParseTar: 8 files that are mentioned in the ota.cmd were saved
[OtaArchive_RunParseTar] Downloading File Completed - Size=1176
[OtaArchive_RunParseTar] Create/Open for write file /www/images/icons/wirelessfull.png
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
Hash verification succeeded.
Total archive file bytes 161848.
OtaArchive_RunParseTar: 9 files that are mentioned in the ota.cmd were saved
[OtaArchive_RunParseTar] Downloading File Completed - Size=1080
[OtaArchive_RunParseTar] Create/Open for write file /www/images/tilogo.gif
[ota report task] OTA progress 49%
Hash verification succeeded.
Total archive file bytes 169998.
OtaArchive_RunParseTar: 10 files that are mentioned in the ota.cmd were saved
[OtaArchive_RunParseTar] Downloading File Completed - Size=7182
[OtaArchive_RunParseTar] Create/Open for write file /www/index.html
Hash verification succeeded.
Total archive file bytes 172018.
OtaArchive_RunParseTar: 11 files that are mentioned in the ota.cmd were saved
[OtaArchive_RunParseTar] Downloading File Completed - Size=1010
[OtaArchive_RunParseTar] Create/Open for write file /www/js/jquery.min.js
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
[ota report task] OTA progress 53%
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
[ota report task] OTA progress 57%
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
[ota report task] OTA progress 61%
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
[ota report task] OTA progress 68%
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
[ota report task] OTA progress 73%
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
Hash verification succeeded.
Total archive file bytes 256924.
OtaArchive_RunParseTar: 12 files that are mentioned in the ota.cmd were saved
[OtaArchive_RunParseTar] Downloading File Completed - Size=84380
[OtaArchive_RunParseTar] Create/Open for write file /www/js/scripts.js
Hash verification succeeded.
Total archive file bytes 260098.
OtaArchive_RunParseTar: 13 files that are mentioned in the ota.cmd[ota report task] OTA progress 76%
were saved
[OtaArchive_RunParseTar] Downloading File Completed - Size=2562
[OtaArchive_RunParseTar] Create/Open for write file /www/ota.html
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
Hash verification succeeded.
Total archive file bytes 270275.
OtaArchive_RunParseTar: 14 files that are mentioned in the ota.cmd were saved
[OtaArchive_RunParseTar] Downloading File Completed - Size=9155
[OtaArchive_RunParseTar] Create/Open for write file /www/settings.html
[ota report task] OTA progress 80%
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
[ota report task] OTA progress 84%
Hash verification succeeded.
Total archive file bytes 287877.
OtaArchive_RunParseTar: 15 files that are mentioned in the ota.cmd were saved
[OtaArchive_RunParseTar] Downloading File Completed - Size=17029
[OtaArchive_RunParseTar] Create/Open for write file /sys/servicepack.ucf
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
[ota report task] OTA progress 89%
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
[SOCK ERROR] - close socket (13) operation failed to transmit all queued packets
[ota report task] OTA progress 93%
[SOCK ERROR] an event received on socket 0
[SOCK ERROR] Recoverable error occurred during the handshake -346
[SOCK EVENT] - Unexpected Event [20x]
Hash verification succeeded.
Total archive file bytes 328098.
OtaArchive_RunParseTar: 16 files that are mentioned in the ota.cmd were saved
[OtaArchive_RunParseTar] Downloading File Completed - Size=39330
[OtaArchive_RunParseTar] End of archive...
[Link local task] sl_extLib_OtaRun: ---- Download file completed cc3220sf_local_ota_tirtos_ota.tar
[Link local task] ota put done. status=[ota report task] OTA progress 100%
0
[Link local task] waiting for signal from report server
[Common] CC32xx MCU reset request
=================================================
local ota Example Ver. 1.00.00.10
=================================================
[Local ota task] Woken up from Hibernate
[Local ota task] ConfigureHttpServer for secured mode...
[Local ota task] HTTP Server Stopped
[Local ota task] HTTP Server Re-started
[Local ota task] Device is configured in default state
[Local ota task] SimpleLinkInitCallback: started in role 0
[Provisioning task] detected device is CC3220SF
[Local ota task] Host Driver Version: 3.0.1.51
Build Version 3.11.0.6.31.2.0.0.0.2.2.0.6
[Local ota task] WlanConnect SSID=cc32xxdemo
[Local ota task] Handle LocalOtaEvent_Timeout in state=1, next=0
[Common] CC32xx MCU reset request
=================================================
local ota Example Ver. 1.00.00.12
=================================================
[Local ota task] Woken up from Hibernate
[Local ota task] ConfigureHttpServer for secured mode...
[Local ota task] HTTP Server Stopped
[Local ota task] HTTP Server Re-started
[Local ota task] Device is configured in default state
[Local ota task] SimpleLinkInitCallback: started in role 0
[Provisioning task] detected device is CC3220SF
[Local ota task] Host Driver Version: 3.0.1.51
Build Version 3.11.0.6.31.2.0.0.0.2.2.0.6
[Local ota task] WlanConnect SSID=hello
[WLAN EVENT] STA Connected to the AP: hello ,BSSID: 38:37:8b:c2:d1:56
[NETAPP EVENT] IP Acquired: IP=192.168.43.14 , Gateway=192.168.43.1
[Local ota task] Pinging gateway, please wait...
[Local ota task] pinging to gateway succeeded
[Local ota task] waiting for new ota upload...
[Link local task] HTTP GET Request
[Link local task] characteristic is: version