This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC3200: Ota example code not working.

Part Number: CC3200
Other Parts Discussed in Thread: UNIFLASH, , CC3100

Tool/software: Code Composer Studio

Hello Team , I am trying to use cc3200 ota example code but facing some errors while ota update. In uniflash I update the url of  /sys/mcuimg.bin with application_bootloader.bin and added /sys/mcuimg2.bin with ota_update_nonos.bin.I am using sdk 1.1.0 and my dropbox folders are vid01_pid00_ver0001 containing f00_sys_servicepack.bin and f43_sys_servicepack.ucf copied from Service Pack 1.0.0.10.0 and renamed. vid01_pid00_ver0002 containing my application binary and vid01_pid00_ver0102 is also contining application binary .

otaconfig.h

  1. OTA_SERVER_REST_HDR_VAL - Set to my token generated
  2. OTA_VENDOR_STRING - Set this to Vid01_Pid00_Ver01
  3. APP_VER_BUILD - 1
  4. Compiled and uploaded  the .bin file into “Vid01_Pid00_Ver0002” folder on Dropbox server
  5. Rename it “f80_sys_mcuimgA.bin”

otaconfig.h

  1. OTA_VENDOR_STRING - Set this to Vid01_Pid00_Ver00
  2. APP_VER_BUILD - 0

and updated to vid01_pid00_ver0102.

 

*************************************************
CC3200 OTA Update Application
*************************************************

App Version : 0.0.0
Nwp Version : 2.4.7.2.31.1.3.4.1.1.5.3.34

Wifi Status : Connected to TP-LINK_Harish

NTP Server : dmz0.la-archdiocese.net
NTP Server IP : 209.151.225.100

GTM Time : -
Local Time (+05:30) : -

OTA Update Status : Press SW3 : Updates or SW2: Factory Reset


*************************************************
CC3200 OTA Update Application
*************************************************

App Version : 0.0.0
Nwp Version : 2.4.7.2.31.1.3.4.1.1.5.3.34

Wifi Status : Connected to TP-LINK_Harish

NTP Server : dmz0.la-archdiocese.net
NTP Server IP : 209.151.225.100

GTM Time : Wed Sep 27 2018 04:28:49
Local Time (+05:30) : Wed Sep 27 2018 09:58:49

OTA Update Status : In Progress...


*************************************************
CC3200 OTA Update Application
*************************************************

App Version : 0.0.0
Nwp Version : 2.4.7.2.31.1.3.4.1.1.5.3.34

Wifi Status : Connected to TP-LINK_Harish

NTP Server : dmz0.la-archdiocese.net
NTP Server IP : 209.151.225.100

GTM Time : Wed Sep 27 2018 04:28:49
Local Time (+05:30) : Wed Sep 27 2018 09:58:49

OTA Update Status : In Progress...


*************************************************
CC3200 OTA Update Application
*************************************************

App Version : 0.0.0
Nwp Version : 2.4.7.2.31.1.3.4.1.1.5.3.34

Wifi Status : Connected to TP-LINK_Harish

NTP Server : dmz0.la-archdiocese.net
NTP Server IP : 209.151.225.100

GTM Time : Wed Sep 27 2018 04:28:49
Local Time (+05:30) : Wed Sep 27 2018 09:58:49

OTA Update Status : Error Retrying...


*************************************************
CC3200 OTA Update Application
*************************************************

App Version : 0.0.0
Nwp Version : 2.4.7.2.31.1.3.4.1.1.5.3.34

Wifi Status : Connected to TP-LINK_Harish

NTP Server : dmz0.la-archdiocese.net
NTP Server IP : 209.151.225.100

GTM Time : Wed Sep 27 2018 04:28:49
Local Time (+05:30) : Wed Sep 27 2018 09:58:49

OTA Update Status : In Progress...


*************************************************
CC3200 OTA Update Application
*************************************************

App Version : 0.0.0
Nwp Version : 2.4.7.2.31.1.3.4.1.1.5.3.34

Wifi Status : Connected to TP-LINK_Harish

NTP Server : dmz0.la-archdiocese.net
NTP Server IP : 209.151.225.100

GTM Time : Wed Sep 27 2018 04:28:49
Local Time (+05:30) : Wed Sep 27 2018 09:58:49

OTA Update Status : Error Retrying...


*************************************************
CC3200 OTA Update Application
*************************************************

App Version : 0.0.0
Nwp Version : 2.4.7.2.31.1.3.4.1.1.5.3.34

Wifi Status : Connected to TP-LINK_Harish

NTP Server : dmz0.la-archdiocese.net
NTP Server IP : 209.151.225.100

GTM Time : Wed Sep 27 2018 04:28:49
Local Time (+05:30) : Wed Sep 27 2018 09:58:49

OTA Update Status : In Progress...


*************************************************
CC3200 OTA Update Application
*************************************************

App Version : 0.0.0
Nwp Version : 2.4.7.2.31.1.3.4.1.1.5.3.34

Wifi Status : Connected to TP-LINK_Harish

NTP Server : dmz0.la-archdiocese.net
NTP Server IP : 209.151.225.100

GTM Time : Wed Sep 27 2018 04:28:49
Local Time (+05:30) : Wed Sep 27 2018 09:58:49

OTA Update Status : Error Retrying...

Kindly suggest me where to look and debug the problem.

with regards ,

Pranav

  • Hi Pranav,

    You need to migrate your code to SDK version 1.3.0. At SDK 1.1 is for OTA used Dropbox API v1. This API was deprecated by Dropbox and from this reason OTA in this SDK version is not functional.

    Jan
  • Hey jan ,
    Thanks for the response , I updated to sdk 1.3 and using service pack CC3100_CC3200_ServicePack_1.0.1.11-2.10.0.0. In dropbox i created Vid00_Pid00_Ver0000 folder with f80_sys_mcuimgA.bin file

    1)
    #define OTA_SERVER_REST_HDR_VAL is updated
    #define OTA_VENDOR_STRING "Vid00_Pid00_Ver01"
    #define APP_VER_BUILD 1

    the above configuration is used to geneate the binary for dropbox
    ================================================================

    2)
    #define OTA_VENDOR_STRING "Vid00_Pid00_Ver00"
    #define APP_VER_BUILD 0
    ======================================================
    the configuration 2 is dumped on board using uniflash



    *************************************************
    CC3200 OTA Update Application
    *************************************************



    App Version : 0.0.0
    Nwp Version : 2.10.0.0.31.1.5.0.2.1.0.3.37

    Wifi Status : Connected to TP-LINK_Harish

    NTP Server : dmz0.la-archdiocese.net
    NTP Server IP : 209.151.225.100

    GTM Time : Wed Sep 27 2018 14:18:19
    Local Time (+05:30) : Wed Sep 27 2018 19:48:19

    OTA Update Status : Error Retrying...


    even if i enabled the debug print no other info is comming for me.


    with regards
    pranav
  • Hello jan,

    I to avoid confusion in my main.c i had changed

    sprintf((char *)&ucVendorStr[ulVendorStrLen],"%02lu",sDisplayInfo.sNwpVersion.NwpVersion[3]); with the below string so in that case my execution is stopping in OTA Update Status my progress... and not moving further.
    also i had changed my dropbox folder name as Vid01_Pid00_Ver00_2.10.0.0 .
    sprintf((char *)&ucVendorStr[ulVendorStrLen],"_%02lu.%02lu.%02lu.%02lu",
    sDisplayInfo.sNwpVersion.NwpVersion[0],
    sDisplayInfo.sNwpVersion.NwpVersion[1],
    sDisplayInfo.sNwpVersion.NwpVersion[2],
    sDisplayInfo.sNwpVersion.NwpVersion[3]);

    *************************************************
    CC3200 OTA Update Application
    *************************************************



    App Version : 0.0.0
    Nwp Version : 2.10.0.0.31.1.5.0.2.1.0.3.37

    Wifi Status : Connected to TP-LINK_Harish

    NTP Server : dmz0.la-archdiocese.net
    NTP Server IP : 209.151.225.100

    GTM Time : Thu Sep 28 2018 09:18:00
    Local Time (+05:30) : Thu Sep 28 2018 14:48:00

    OTA Update Status : In Progress...


    Any pointer will be helpful for me .

    with regards ,

    pranav
  • Hi pranav,

    Please wait for answer from TI side.

    Jan
  • Hello Team ,

    I started with a fresh sdk 1.3 and ccs 6.1.1 now i am facing this issue

    *************************************************
    CC3200 OTA Update Application
    *************************************************



    App Version : 0.0.0
    Nwp Version : 2.11.0.1.31.1.5.0.2.1.0.3.37

    Wifi Status : Connected to TP-LINK_Harish

    NTP Server : dmz0.la-archdiocese.net
    NTP Server IP : 209.151.225.100

    GTM Time : Fri Sep 29 2018 05:02:29
    Local Time (+05:30) : Fri Sep 29 2018 10:32:29

    OTA Update Status : In Progress...
    *************************************************
    CC3200 OTA Update Application
    *************************************************



    App Version : 0.0.0
    Nwp Version : 2.11.0.1.31.1.5.0.2.1.0.3.37

    Wifi Status : Connected to TP-LINK_Harish

    NTP Server : dmz0.la-archdiocese.net
    NTP Server IP : 209.151.225.100

    GTM Time : Fri Sep 29 2018 05:02:29
    Local Time (+05:30) : Fri Sep 29 2018 10:32:29

    OTA Update Status : Error Retrying...
    *************************************************
    CC3200 OTA Update Application
    *************************************************



    App Version : 0.0.0
    Nwp Version : 2.11.0.1.31.1.5.0.2.1.0.3.37

    Wifi Status : Connected to TP-LINK_Harish

    NTP Server : dmz0.la-archdiocese.net
    NTP Server IP : 209.151.225.100

    GTM Time : Fri Sep 29 2018 05:02:21
    Local Time (+05:30) : Fri Sep 29 2018 10:32:21

    OTA Update Status : Completed

    but application is not going for proper reboot and the app version remains same.sometimes after couple of times i try to press sw3 switch applicatin reboots properly but then also the app version remains to be the same . I changed the the ota_api.h file with the incresed size still the same behaviour .Now i think the application is communicating with the dropbox its taking the file through ota but still the application app version is not getting changed .
    typedef struct
    {
    /* files server name */
    _u8 cdn_url[512];
    }



    with regards
    pranav

  • Hey Team !

    what i had analysed till now when the application completes successfully it reboots the application at that type a file like the last one gets added to the sflash but on boot that does not acts as a booting application so the app version and other changes are not reflecting .
    [17:57:50] INFO: file start size fail total size filename
    [17:57:50] INFO: index block [BLKs] safe [BLKs]
    [17:57:50] INFO: ----------------------------------------------------------------------------
    [17:57:50] INFO: N/A 0 5 N/A 5 FATFS
    [17:57:50] INFO: 0 81 4 yes 8 /sys/mcuimg.bin
    [17:57:50] INFO: 4 5 5 yes 10 /tmp/phy.cal
    [17:57:50] INFO: 6 15 33 yes 66 /sys/servicepack.ucf
    [17:57:50] INFO: 7 89 12 no 12 /sys/mcuimg1.bin
    [17:57:50] INFO: 8 101 1 yes 2 /sys/mcubootinfo.bin
    [17:57:50] INFO: 9 103 1 yes 2 /sys/stacfg.ini
    [17:57:50] INFO: 10 105 2 yes 4 /sys/pref.net
    [17:57:50] INFO: 11 109 1 yes 2 /sys/ipcfg.ini
    [17:57:50] INFO: 12 111 1 yes 2 /sys/mode.cfg
    [17:57:50] INFO: 13 113 1 yes 2 /sys/pmcfg.ini
    [17:57:50] INFO: 14 115 1 yes 2 /sys/mdns.cfg
    [17:57:50] INFO: 15 117 1 yes 2 /tmp/table.arp
    [17:57:50] INFO: 16 119 1 no 1 /sys/otastat.txt
    [17:57:50] INFO: 17 120 12 yes 24 kwgqp4bpb1d_potmb1wlqtsyzlxscrldmsxgrf81kh0b4wtfxi5bpjduwyl6bbm1luo3fcrjojvuegynju5qleetqc4jpkzywrqkfipm-dsjdguc6mezpxlpllkfa4ibhi3gqq
    [17:57:50] INFO:

    kindly tell me where i am going wrong .

    with regards
    pranav