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.

CC3220SF-LAUNCHXL: OTA file names in DropBox

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: CC3220SF, UNIFLASH

Hello,

I trying to repeat a DropBox OTA demo.
I was make all as described in

I made Dropbox App and OTA_R2_MCU_FLASH directory inside

I recompile all and add correct CA certificate into firmware.

But, when I start OTA (by button pressing) I got next errors:

HandlePingComplete: OTA Command arrived
OtaInit: statistics = 0, 0, 0
OtaInit: call Ota_init
OTA_init: sizeof CdnClient=576, sizeof OtaArchive=4404
OTA_init: sizeof OtaLib_t=7184, sizeof OTA_memBlock=7800
OTA_init: OTA lib version = OTA_LIB_2.0.0.7
OtaArchive_Init: OTA archive version = OTA_ARCHIVE_2.0.0.4
OtaConfig: call OTA_set EXTLIB_OTA_SET_OPT_SERVER_INFO, ServerName=api.dropboxapi.com
OtaConfig: call OTA_set EXTLIB_OTA_SET_OPT_VENDOR_ID, VendorDir=OTA_R2_MCU_FLASH
OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com
CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com
HttpClient_Connect: IP_ADDR=162.125.66.7
HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...
OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_R2_MCU_FLASH
CdnDropbox_SendReqDir: uri=/2/files/list_folder
HttpClient_RecvSkipHdr: http error code HTTP/1.1 401
CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310
OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310

_OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=1/5, return only WARNNING
OtaRunStep: WARNING Ota_run, Status=20004, continue for next OTA retry

OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com
CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com
HttpClient_Connect: IP_ADDR=162.125.66.7
HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...
OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_R2_MCU_FLASH
CdnDropbox_SendReqDir: uri=/2/files/list_folder
HttpClient_RecvSkipHdr: http error code HTTP/1.1 401
CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310
OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310

_OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=2/5, return only WARNNING
OtaRunStep: WARNING Ota_run, Status=20004, continue for next OTA retry

OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com
CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com
HttpClient_Connect: IP_ADDR=162.125.66.7
HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...
OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_R2_MCU_FLASH
CdnDropbox_SendReqDir: uri=/2/files/list_folder
HttpClient_RecvSkipHdr: http error code HTTP/1.1 401
CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310
OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310

_OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=3/5, return only WARNNING
OtaRunStep: WARNING Ota_run, Status=20004, continue for next OTA retry

OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com
CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com
HttpClient_Connect: IP_ADDR=162.125.66.7
HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...
OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_R2_MCU_FLASH
CdnDropbox_SendReqDir: uri=/2/files/list_folder
HttpClient_RecvSkipHdr: http error code HTTP/1.1 401
CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310
OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310

_OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=4/5, return only WARNNING
OtaRunStep: WARNING Ota_run, Status=20004, continue for next OTA retry

OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com
CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com
HttpClient_Connect: IP_ADDR=162.125.66.7
HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...
OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_R2_MCU_FLASH
CdnDropbox_SendReqDir: uri=/2/files/list_folder
HttpClient_RecvSkipHdr: http error code HTTP/1.1 401
CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310
OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310

_OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=5/5, MAX_CONSECUTIVE_OTA_ERRORS!!!

OtaRunStep: FATAL ERROR from Ota_run -21003 !!!!!!!!!!!!!!!!!!!!!!!!!!!

I think that Launchpad can't found image inside DropBox. I'm not sure about path and file name.
Can you make some comments here?

  • Hi Vladimir,

    Please try nesting the folder another level deep as in this post:

    e2e.ti.com/.../2200951

    Please let me know if this fixes your error.

    Sincerely,
    Bryan Kahler
  • I added another one level of deep in apps directory. Now deepest path looks like:

    www.dropbox.com/.../OTA_ARM/OTA_R2_MCU_FLASH/OTA_R2_MCU_FLASH
    I placed my image 20170908163645_CC3220SF_OTA.tar in each folder:

    www.dropbox.com/home/Apps/OTA_ARM/OTA_R2_MCU_FLASH/OTA_R2_MCU_FLASH
    www.dropbox.com/home/Apps/OTA_ARM/OTA_R2_MCU_FLASH
    www.dropbox.com/home/Apps/OTA_ARM

    But I still have the same errors (see original post).

  • I think I understand what's going wrong.
    I can't use OTA_R2_MCU_FLASH as application name. Because it can be only one OTA_R2_MCU_FLASH on DropBox servers. So, when I renamed application name to OTA_R3_MCU_FLASH  i got different errors:

    HandlePingComplete: OTA Command arrived
    OtaInit: statistics = 0, 0, 0
    OtaInit: call Ota_init
    OTA_init: sizeof CdnClient=576, sizeof OtaArchive=4404
    OTA_init: sizeof OtaLib_t=7184, sizeof OTA_memBlock=7800
    OTA_init: OTA lib version = OTA_LIB_2.0.0.7
    OtaArchive_Init: OTA archive version = OTA_ARCHIVE_2.0.0.4
    OtaConfig: call OTA_set EXTLIB_OTA_SET_OPT_SERVER_INFO, ServerName=api.dropboxapi.com
    OtaConfig: call OTA_set EXTLIB_OTA_SET_OPT_VENDOR_ID, VendorDir=OTA_R3_MCU_FLASH
    OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com
    CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com
    HttpClient_Connect: IP_ADDR=162.125.66.7
    HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...
    OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_R3_MCU_FLASH
    CdnDropbox_SendReqDir: uri=/2/files/list_folder
    HttpClient_RecvSkipHdr: http error code HTTP/1.1 409
    CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310
    OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310
    
    _OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=1/5, return only WARNNING
    OtaRunStep: WARNING Ota_run, Status=20004, continue for next OTA retry
    
    OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com
    CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com
    HttpClient_Connect: IP_ADDR=162.125.66.7
    HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...
    OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_R3_MCU_FLASH
    CdnDropbox_SendReqDir: uri=/2/files/list_folder
    HttpClient_RecvSkipHdr: http error code HTTP/1.1 409
    CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310
    OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310
    
    _OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=2/5, return only WARNNING
    OtaRunStep: WARNING Ota_run, Status=20004, continue for next OTA retry
    
    OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com
    CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com
    HttpClient_Connect: IP_ADDR=162.125.66.7
    HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...
    OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_R3_MCU_FLASH
    CdnDropbox_SendReqDir: uri=/2/files/list_folder
    HttpClient_RecvSkipHdr: http error code HTTP/1.1 409
    CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310
    OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310
    
    _OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=3/5, return only WARNNING
    OtaRunStep: WARNING Ota_run, Status=20004, continue for next OTA retry
    
    OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com
    CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com
    HttpClient_Connect: IP_ADDR=162.125.66.7
    HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...
    OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_R3_MCU_FLASH
    CdnDropbox_SendReqDir: uri=/2/files/list_folder
    HttpClient_RecvSkipHdr: http error code HTTP/1.1 409
    CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310
    OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310
    
    _OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=4/5, return only WARNNING
    OtaRunStep: WARNING Ota_run, Status=20004, continue for next OTA retry
    
    OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com
    CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com
    HttpClient_Connect: IP_ADDR=162.125.66.7
    HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...
    OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_R3_MCU_FLASH
    CdnDropbox_SendReqDir: uri=/2/files/list_folder
    HttpClient_RecvSkipHdr: http error code HTTP/1.1 409
    CdnDropbox_ParseRespDir: ERROR HttpClient_RecvSkipHdr, status=-20310
    OTA_run: ERROR CdnClient_ReqOtaDir, Status=-20310
    
    _OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=5/5, MAX_CONSECUTIVE_OTA_ERRORS!!!
    
    OtaRunStep: FATAL ERROR from Ota_run -21003 !!!!!!!!!!!!!!!!!!!!!!!!!!!
    
    Test failed: State = 6, Event = 17
    Event handler failed..!!
    

    My dropbox currently looks like

  • I made some debug and complete the quest.

    Try to use next command to check image.tar availability from PC:

    curl -X POST content.dropboxapi.com/.../download --header "Authorization: Bearer INSERT_TOKEN_HERE" --header "Dropbox-API-Arg:{\"path\":\"/OTA_R3_MCU_FLASH/20170908163645_CC3220SF_OTA.tar\"}" --output 1.tar

    If all's good you'll receive something like this:

      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  130k  100  130k    0     0  44373      0  0:00:03  0:00:03 --:--:-- 42872
    

    In other case you got some errors.

    it's need to be pointed that solution for last issue in my reproduction was described in . You should use Uniflash 4.1



  • can you provide the link for correct certificate file for dropbox v2??

  • Dear Vladimir -
    if you see Section 3.2 of this guide:

    dev.ti.com/.../Over_The_Air_Update_Guide.html

    you will see the dummy certificate for this is located in this folder: C:\ti\simplelink_cc32xx_sdk_1_50_00_06\tools\cc32xx_tools\ota-example-cert

    this is used to test that this is working in your applicaiton, but not for use in "real life"

    then you can buy the certificate from the vendor, for your production use:
    for example ==> www.digicert.com/.../order-1.php
  • How to get rid of this problem..I am stuck in this stage.

  • Hello Dwitam,

    You can download CA root certificate from official repository certs.godaddy.com/repository
    You should check that file in correct format (der) and corresponding filename.