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.

LAUNCHXL-CC3235SF: Not able to OTA update from dropbox by using cloud_ota sample code

Part Number: LAUNCHXL-CC3235SF
Other Parts Discussed in Thread: CC3235SF, CC3120

Hi Ti,

       We are facing an issue related to OTA update in out firmware, previously it was working well, but from last few days it's not. log are below.


HandlePingComplete: OTA Command arrived

OtaInit: statistics = 0, 12, 3

OtaInit: call Ota_init

OTA_init: sizeof CdnClient=576, sizeof OtaArchive=4956

OTA_init: sizeof OtaLib_t=7736, 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=AC001_OTA_DIR_10

OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com

CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com

HttpClient_Connect: IP_ADDR=162.125.81.19

HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

OTA_run: CdnClient_ReqOtaDir, VendorDir=AC001_OTA_DIR_10

CdnDropbox_SendReqDir: uri=/2/files/list_folder

RespLen is 799, ProcessedSize is: 794

the entire JSON pRespBuf is: (null)

OTA_run: CdnClient_ReqOtaDir, NumDirFiles=1

OTA_run: CdnClient_GetNextDirFile

OTA_run: CdnClient_GetNextDirFile: file=/AC001_OTA_DIR_10/20220209123607_CC3235SF_SFProject.tar, size=307200

OtaArchive_Init: OTA archive version = OTA_ARCHIVE_2.0.0.4

OtaArchive_CheckVersion: current version str = 20200831111705

OtaArchive_CheckVersion: new version str = 20220209123607

OtaArchive_CheckVersion: newer version update - 20220209123607

OtaRunStep: status from Ota_run: OTA_RUN_STATUS_CHECK_NEWER_VERSION, accept and continue

OtaRunStep: CurrentVersion=20200831111705, NewVersion=20220209123607, Start download ...

OTA_run: Call CdnClient_ReqFileUrl, filename = /AC001_OTA_DIR_10/20220209123607_CC3235SF_SFProject.tar

CdnDropbox_SendReqFileUrl: uri=/2/files/get_temporary_link

HTTP request is:
POST /2/files/get_temporary_link HTTP/1.1
host: api.dropboxapi.com
Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Content-Type: Application/Json
Content-Length: 67

{"path": "/AC001_OTA_DIR_10/20220209123607_CC3235SF_SFProject.tar"}


OTA_run: Call CdnClient_ConnectFileServer, url = uc40c6f54b63b279cfc281b88d37.dl.dropboxusercontent.com/.../file

HttpClient_Connect: IP_ADDR=162.125.81.15

HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

OTA_run: Call CdnClient_ReqFileContent, url = uc40c6f54b63b279cfc281b88d37.dl.dropboxusercontent.com/.../file

OTA_run: ERROR downloading, CdnClient_RecvSkipHdr Status=0


_OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=1/5, return only WARNNING

OtaRunStep: WARNING Ota_run, Status=20008, continue fornext 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.81.19

HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

OTA_run: CdnClient_ReqOtaDir, VendorDir=AC001_OTA_DIR_10

CdnDropbox_SendReqDir: uri=/2/files/list_folder

RespLen is 799, ProcessedSize is: 794

the entire JSON pRespBuf is: (null)

OTA_run: CdnClient_ReqOtaDir, NumDirFiles=1

OTA_run: CdnClient_GetNextDirFile

OTA_run: CdnClient_GetNextDirFile: file=/AC001_OTA_DIR_10/20220209123607_CC3235SF_SFProject.tar, size=307200

OtaArchive_Init: OTA archive version = OTA_ARCHIVE_2.0.0.4

OtaArchive_CheckVersion: current version str = 20200831111705

OtaArchive_CheckVersion: new version str = 20220209123607

OtaArchive_CheckVersion: newer version update - 20220209123607

OtaRunStep: status from Ota_run: OTA_RUN_STATUS_CHECK_NEWER_VERSION, accept and continue

OtaRunStep: CurrentVersion=20200831111705, NewVersion=20220209123607, Start download ...

OTA_run: Call CdnClient_ReqFileUrl, filename = /AC001_OTA_DIR_10/20220209123607_CC3235SF_SFProject.tar

CdnDropbox_SendReqFileUrl: uri=/2/files/get_temporary_link

HTTP request is:
POST /2/files/get_temporary_link HTTP/1.1
host: api.dropboxapi.com
Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Content-Type: Application/Json
Content-Length: 67

{"path": "/AC001_OTA_DIR_10/20220209123607_CC3235SF_SFProject.tar"}


OTA_run: Call CdnClient_ConnectFileServer, url = uc40c6f54b63b279cfc281b88d37.dl.dropboxusercontent.com/.../file

HttpClient_Connect: IP_ADDR=162.125.81.15

HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

OTA_run: Call CdnClient_ReqFileContent, url = uc40c6f54b63b279cfc281b88d37.dl.dropboxusercontent.com/.../file

OtaArchive_RunParse: set state=ARCHIVE_STATE_PARSE_HDR

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=51, FileName=4000
20220209123607_CC3235SF_SFProject/

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=51, FileName=

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=51, FileName=

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=51, FileName=

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: filetype=5, directory=

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=97, FileName=

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: filetype=5, directory=g==",
"secured":1,
"bundle":1,
"filename":"/sys/mcuflashimg.bin"
},
{
"digest":"34941765,

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=32, FileName=ndle":1,
"filename":"dummy_ota_vendor_cert.der"
},
{
"digest":"252aae7c24f42ba2c0f667fe42b4e6b7c3c76df1f,

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=103, FileName=6JApZPHmyZprS0TJtrLny3fA4MqXddcpyqizyV7cplG4rMrVg+5dlkmMQqKPHmApXyHekVXAik8LkJMZIXwtzMwPg619+0ctwHwC7it8hVCL6dHstNn5bdZk8Mnt8az9,

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: filetype=5, directory=

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: error in filename pattern

OtaArchive_Rollback: ERROR sl_FsCtl, Status=-10282

OTA_run: ERROR OtaArchive_RunParse, Status=-20102


_OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=2/5, return only WARNNING

OtaRunStep: WARNING Ota_run, Status=20009, continue fornext 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.81.19

HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

OTA_run: CdnClient_ReqOtaDir, VendorDir=AC001_OTA_DIR_10

CdnDropbox_SendReqDir: uri=/2/files/list_folder

RespLen is 799, ProcessedSize is: 794

the entire JSON pRespBuf is: (null)

OTA_run: CdnClient_ReqOtaDir, NumDirFiles=1

OTA_run: CdnClient_GetNextDirFile

OTA_run: CdnClient_GetNextDirFile: file=/AC001_OTA_DIR_10/20220209123607_CC3235SF_SFProject.tar, size=307200

OtaArchive_Init: OTA archive version = OTA_ARCHIVE_2.0.0.4

OtaArchive_CheckVersion: current version str = 20200831111705

OtaArchive_CheckVersion: new version str = 20220209123607

OtaArchive_CheckVersion: newer version update - 20220209123607

OtaRunStep: status from Ota_run: OTA_RUN_STATUS_CHECK_NEWER_VERSION, accept and continue

OtaRunStep: CurrentVersion=20200831111705, NewVersion=20220209123607, Start download ...

OTA_run: Call CdnClient_ReqFileUrl, filename = /AC001_OTA_DIR_10/20220209123607_CC3235SF_SFProject.tar

CdnDropbox_SendReqFileUrl: uri=/2/files/get_temporary_link

HTTP request is:
POST /2/files/get_temporary_link HTTP/1.1
host: api.dropboxapi.com
Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Content-Type: Application/Json
Content-Length: 67

{"path": "/AC001_OTA_DIR_10/20220209123607_CC3235SF_SFProject.tar"}


OTA_run: Call CdnClient_ConnectFileServer, url = uc40c6f54b63b279cfc281b88d37.dl.dropboxusercontent.com/.../file

HttpClient_Connect: IP_ADDR=162.125.81.15

HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

OTA_run: Call CdnClient_ReqFileContent, url = uc40c6f54b63b279cfc281b88d37.dl.dropboxusercontent.com/.../file

OTA_run: ERROR downloading, CdnClient_RecvSkipHdr Status=0


_OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=3/5, return only WARNNING

OtaRunStep: WARNING Ota_run, Status=20008, continue fornext 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.81.19

HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

OTA_run: CdnClient_ReqOtaDir, VendorDir=AC001_OTA_DIR_10

CdnDropbox_SendReqDir: uri=/2/files/list_folder

RespLen is 799, ProcessedSize is: 794

the entire JSON pRespBuf is: (null)

OTA_run: CdnClient_ReqOtaDir, NumDirFiles=1

OTA_run: CdnClient_GetNextDirFile

OTA_run: CdnClient_GetNextDirFile: file=/AC001_OTA_DIR_10/20220209123607_CC3235SF_SFProject.tar, size=307200

OtaArchive_Init: OTA archive version = OTA_ARCHIVE_2.0.0.4

OtaArchive_CheckVersion: current version str = 20200831111705

OtaArchive_CheckVersion: new version str = 20220209123607

OtaArchive_CheckVersion: newer version update - 20220209123607

OtaRunStep: status from Ota_run: OTA_RUN_STATUS_CHECK_NEWER_VERSION, accept and continue

OtaRunStep: CurrentVersion=20200831111705, NewVersion=20220209123607, Start download ...

OTA_run: Call CdnClient_ReqFileUrl, filename = /AC001_OTA_DIR_10/20220209123607_CC3235SF_SFProject.tar

CdnDropbox_SendReqFileUrl: uri=/2/files/get_temporary_link

HTTP request is:
POST /2/files/get_temporary_link HTTP/1.1
host: api.dropboxapi.com
Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Content-Type: Application/Json
Content-Length: 67

{"path": "/AC001_OTA_DIR_10/20220209123607_CC3235SF_SFProject.tar"}


OTA_run: Call CdnClient_ConnectFileServer, url = uc40c6f54b63b279cfc281b88d37.dl.dropboxusercontent.com/.../file

HttpClient_Connect: IP_ADDR=162.125.81.15

HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

OTA_run: Call CdnClient_ReqFileContent, url = uc40c6f54b63b279cfc281b88d37.dl.dropboxusercontent.com/.../file

OtaArchive_RunParse: set state=ARCHIVE_STATE_PARSE_HDR

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=51, FileName=4000
20220209123607_CC3235SF_SFProject/

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=51, FileName=

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=51, FileName=

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=51, FileName=

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: filetype=5, directory=

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=97, FileName=

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: filetype=5, directory=g==",
"secured":1,
"bundle":1,
"filename":"/sys/mcuflashimg.bin"
},
{
"digest":"34941765,

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=32, FileName=ndle":1,
"filename":"dummy_ota_vendor_cert.der"
},
{
"digest":"252aae7c24f42ba2c0f667fe42b4e6b7c3c76df1f,

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=103, FileName=6JApZPHmyZprS0TJtrLny3fA4MqXddcpyqizyV7cplG4rMrVg+5dlkmMQqKPHmApXyHekVXAik8LkJMZIXwtzMwPg619+0ctwHwC7it8hVCL6dHstNn5bdZk8Mnt8az9,

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: filetype=5, directory=

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: error in filename pattern

OtaArchive_Rollback: ERROR sl_FsCtl, Status=-10282

OTA_run: ERROR OtaArchive_RunParse, Status=-20102


_OtaCheckConsecutiveErrors: ConsecutiveOtaErrors=4/5, return only WARNNING

OtaRunStep: WARNING Ota_run, Status=20009, continue fornext 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.81.19

HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

OTA_run: CdnClient_ReqOtaDir, VendorDir=AC001_OTA_DIR_10

CdnDropbox_SendReqDir: uri=/2/files/list_folder

RespLen is 799, ProcessedSize is: 794

the entire JSON pRespBuf is: (null)

OTA_run: CdnClient_ReqOtaDir, NumDirFiles=1

OTA_run: CdnClient_GetNextDirFile

OTA_run: CdnClient_GetNextDirFile: file=/AC001_OTA_DIR_10/20220209123607_CC3235SF_SFProject.tar, size=307200

OtaArchive_Init: OTA archive version = OTA_ARCHIVE_2.0.0.4

OtaArchive_CheckVersion: current version str = 20200831111705

OtaArchive_CheckVersion: new version str = 20220209123607

OtaArchive_CheckVersion: newer version update - 20220209123607

OtaRunStep: status from Ota_run: OTA_RUN_STATUS_CHECK_NEWER_VERSION, accept and continue

OtaRunStep: CurrentVersion=20200831111705, NewVersion=20220209123607, Start download ...

OTA_run: Call CdnClient_ReqFileUrl, filename = /AC001_OTA_DIR_10/20220209123607_CC3235SF_SFProject.tar

CdnDropbox_SendReqFileUrl: uri=/2/files/get_temporary_link

HTTP request is:
POST /2/files/get_temporary_link HTTP/1.1
host: api.dropboxapi.com
Authorization: Bearer XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Content-Type: Application/Json
Content-Length: 67

{"path": "/AC001_OTA_DIR_10/20220209123607_CC3235SF_SFProject.tar"}


OTA_run: Call CdnClient_ConnectFileServer, url = uc40c6f54b63b279cfc281b88d37.dl.dropboxusercontent.com/.../file

HttpClient_Connect: IP_ADDR=162.125.81.15

HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored...

OTA_run: Call CdnClient_ReqFileContent, url = uc40c6f54b63b279cfc281b88d37.dl.dropboxusercontent.com/.../file

OtaArchive_RunParse: set state=ARCHIVE_STATE_PARSE_HDR

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=51, FileName=4000
20220209123607_CC3235SF_SFProject/

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=51, FileName=

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=51, FileName=

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=51, FileName=

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: filetype=5, directory=

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=97, FileName=

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: filetype=5, directory=g==",
"secured":1,
"bundle":1,
"filename":"/sys/mcuflashimg.bin"
},
{
"digest":"34941765,

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=32, FileName=ndle":1,
"filename":"dummy_ota_vendor_cert.der"
},
{
"digest":"252aae7c24f42ba2c0f667fe42b4e6b7c3c76df1f,

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: unsupported FileType=103, FileName=6JApZPHmyZprS0TJtrLny3fA4MqXddcpyqizyV7cplG4rMrVg+5dlkmMQqKPHmApXyHekVXAik8LkJMZIXwtzMwPg619+0ctwHwC7it8hVCL6dHstNn5bdZk8Mnt8az9,

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: filetype=5, directory=

OtaArchive_RunParseTar: parsing archive file header

OtaArchive_RunParseTar: error in filename pattern

OtaArchive_Rollback: ERROR sl_FsCtl, Status=-10282

OTA_run: ERROR OtaArchive_RunParse, Status=-20102


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

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

sdk version : simplelink_cc32xx_sdk_5_20_00_06.

sample example : cloud_ota.

bundle files are below:

otauser.h file

/*
 * Copyright (c) 2018, Texas Instruments Incorporated
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 *
 * *  Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 *
 * *  Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * *  Neither the name of Texas Instruments Incorporated nor the names of
 *    its contributors may be used to endorse or promote products derived
 *    from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
#ifndef __OTA_USER_H__
#define __OTA_USER_H__

#ifdef    __cplusplus
extern "C" {
#endif

#include <stdlib.h>

#include <ti/drivers/net/wifi/simplelink.h>
#include <ti/net/ota/ota.h>

#define SL_ENABLE_OTA_DEBUG_TRACES /* uncomment to enable internal OTA debug info */
#ifndef SL_ENABLE_OTA_DEBUG_TRACES
#define _SlOtaLibTrace(pargs) 
#else

#ifdef _WIN32

#define _SlOtaLibTrace(pargs)  printf pargs

#elif __MSP432P401R__

extern void LogMessage(const char *pcFormat, ...);
#define _SlOtaLibTrace(pargs)  LogMessage pargs

#else /*CC32xx*/

//extern int Report(const char *format, ...);
//#define _SlOtaLibTrace(pargs)  Report pargs

extern int Display(const char *pcFormat,...);
#define _SlOtaLibTrace(pargs)  Display pargs

#endif

#endif

#define OTA_SERVER_GITHUB      1
#define OTA_SERVER_DROPBOX_V2  2
#define OTA_SERVER_CUSTOM      99

/* The following configuration skips the CDN server handshake,
 * and simply downloads an OTA TAR file from provided URL
 * (of an HTTP server). 
 * Note: For ease of use, a macro definition is provided below for 
 * the file URL (see OTA_FILE_SERVER_URL) which is used by the application 
 * to initialize the OTA library. But, the actual URL is assumed to be dynamic
 * (and temporary). The value should be provided by the applications by 
 * calling OTA_set just before the OTA gets triggered (i.e. before calling OTA_run).
 */
#define OTA_FILE_DOWNLOAD      100

/* USER SHOULD DEFINE HERE WHICH CLOUD TO USE */
/* -------------------------------------------*/
//#define OTA_SERVER_TYPE    OTA_SERVER_GITHUB
#define OTA_SERVER_TYPE    OTA_SERVER_DROPBOX_V2
//#define OTA_SERVER_TYPE      OTA_FILE_DOWNLOAD

/* OTA server info */
/* --------------- */

#ifdef _WIN32
#define OTA_VENDOR_DIR  "OTA_CC3120"
#elif __MSP432P401R__
#define OTA_VENDOR_DIR  "OTA_CC3120"
#else
#define OTA_VENDOR_DIR  "AC001_OTA_DIR_10" //"BSS_BS"//
#endif

#if OTA_SERVER_TYPE == OTA_SERVER_GITHUB

/* Github server info */
#define OTA_SERVER_NAME                 "api.github.com"
#define OTA_SERVER_IP_ADDRESS           0x00000000
#define OTA_SERVER_SECURED              1


/* Github vendor info */
#define OTA_VENDOR_ROOT_DIR             "/repos/<user account>/<user directory>"
//#define OTA_VENDOR_TOKEN              "<User defined Github token>"
#ifndef OTA_VENDOR_TOKEN
#error "Please define your personal cloud account token in OTA_VENDOR_TOKEN above"
#endif

/******************************************************************************
 * An Important Note regarding the GitHub Certificates:
 * GitHub is about to replace the servers' certificates. The change may impact
 * the GitHub OTA server, the GitHub Content server or both. OTA Library Users 
 * should prepare in advance by updating the root CA certificates (for devices
 * in the field).
 * Up to now both servers were verified using "DigCert_High_Assurance_CA.der".
 * Recently GitHub updated their OTA Server to use a certificate that needs to 
 * be verified with "DigiCert_Global_Root_CA.der" (This requires update of
 * OTA_SERVER_ROOT_CA_CERT). 
 * Working with GitHub, TI was able to postpone the change so the library users 
 * can update their devices.
 * The exact date of the change and the content of the change are TBD by GitHub
 * (customers are encouraged to contact GitHub for details).
 *
 * For CC323x customers, TI offer an easier approach. The 
 * "RootCACerts.pem" contains both the old and the new root CA certificates.
 * If used here, this PEM file will enable the connection before and after the
 * change. Unfortunately, this method is not supported by CC3220 devices
 * and thus specific certificate needs to be defined per server.
 * 
 * Having this, it is very important to include a backup method in your code.
 * In case of GitHub failure, the backup can trigger a load from a secondary 
 * server or it can enable the Local OTA method.
 ******************************************************************************/
//#define OTA_SERVER_ROOT_CA_CERT         "DigCert_High_Assurance_CA.der"
//#define OTA_CONTENT_SERVER_ROOT_CA_CERT "DigCert_High_Assurance_CA.der"
#define OTA_SERVER_ROOT_CA_CERT           "RootCACerts.pem"
#define OTA_CONTENT_SERVER_ROOT_CA_CERT   "RootCACerts.pem"
#define OTA_SERVER_AUTH_IGNORE_DATA_TIME_ERROR
#define OTA_SERVER_AUTH_DISABLE_CERT_STORE

#elif OTA_SERVER_TYPE == OTA_SERVER_DROPBOX_V2

/* Dropbox V2 server info */
#define OTA_SERVER_NAME                 "api.dropboxapi.com"
#define OTA_SERVER_IP_ADDRESS           0x00000000
#define OTA_SERVER_SECURED              1

/* Dropbox V2 vendor info */
#define OTA_VENDOR_TOKEN              "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
#ifndef OTA_VENDOR_TOKEN
#error "Please define your personal cloud account token in OTA_VENDOR_TOKEN above"
#endif
/******************************************************************************
 * An Important Note regarding the DropBox Certificates:
 * DropBox is about to replace the servers' certificates. The change may impact
 * the DropBox OTA server, the DropBox Content server or both. OTA Library Users
 * should prepare in advance by updating the root CA certificates (for devices
 * in the field).
 * Up to now both servers were verified using "DigCert_High_Assurance_CA.der".
 * Recently DropBox updated their OTA Content Server to use a certificate that 
 * needs to be verified with "DigiCert_Global_Root_CA.der" (This requires update 
 * of OTA_CONTENT_SERVER_ROOT_CA_CERT).
 * Working with GitHub, TI was able to postpone the change so the library users
 * can update their devices.
 * The change is planned for August 2021. The exact content of the change is TBD 
 * by DropBox (customers are encouraged to contact DropBox for details).
 *
 * For CC323x customers, TI offer an easier approach. The
 * "RootCACerts.pem" contains both the old and the new root CA certificates.
 * If used here, this PEM file will enable the connection before and after the
 * change. Unfortunately, this method is not supported by CC3220 devices
 * and thus specific certificate needs to be defined per server.
 *
 * Having this, it is very important to include a backup method in your code.
 * A fallabck in case of DropBox failure may include triggering a load from 
 * a secondary server or enabling the Local OTA method.
 ******************************************************************************/

//#define OTA_SERVER_ROOT_CA_CERT         "DigCert_High_Assurance_CA.der"
//#define OTA_CONTENT_SERVER_ROOT_CA_CERT "DigCert_High_Assurance_CA.der"

#define OTA_SERVER_ROOT_CA_CERT           "RootCACerts.pem"
#define OTA_CONTENT_SERVER_ROOT_CA_CERT   "RootCACerts.pem"
#define OTA_SERVER_AUTH_IGNORE_DATA_TIME_ERROR
#define OTA_SERVER_AUTH_DISABLE_CERT_STORE

#elif OTA_SERVER_TYPE == OTA_SERVER_CUSTOM

/* add your customer server header here */
#include ""

/* Github server info */
#define OTA_SERVER_NAME                 ""
#define OTA_SERVER_IP_ADDRESS           0x00000000
#define OTA_SERVER_SECURED              1

/* Vendor info */
#define OTA_VENDOR_TOKEN                "User defined token"

#define CdnVendor_SendReqDir           
#define CdnVendor_ParseRespDir          
#define CdnVendor_SendReqFileUrl        
#define CdnVendor_ParseRespFileUrl      

#elif OTA_SERVER_TYPE == OTA_FILE_DOWNLOAD
#define OTA_SERVER_SECURED              1
//#define OTA_CONTENT_SERVER_ROOT_CA_CERT "DigCert_High_Assurance_CA.der"
#define OTA_CONTENT_SERVER_ROOT_CA_CERT   "RootCACerts.pem"

#endif


#ifdef  __cplusplus
}
#endif /* __cplusplus */

#endif /* __OTA_USER_H__ */

Please reply as soon as possible, 

thanks in advance

sarju