Tool/software: TI-RTOS
The OTA check seems to fail after many attempts on the same OTA image. I wrote my program to check OTA every hour (for testing) and it seems to fail after many attempts. I am using dropbox to store the OTA and the OTA image is not changed during the process. The first few attempts (100 or more) would return event OTA_RUN_STATUS_CHECK_OLDER_VERSION and after sometime it returns a failure as shown below. Finally my MCU would freeze (out of memory, may be). Please note that I am using the latest SDK 1.60.00.04 and the respective service packs
OTA_run: CdnClient_GetNextDirFile OTA_run: CdnClient_GetNextDirFile: file=/OTA_CC3220SF/20180305230740_CC3200_OTA.tar, size=307200 OtaArchive_Init: OTA archive version = OTA_ARCHIVE_2.0.0.4 OtaArchive_CheckVersion: current version str = 20180305230740, decimal = -1746093164 OtaArchive_CheckVersion: new version str = 20180305230740, decimal = -1746093164 OtaArchive_CheckVersion: older version update - 20180305230740 OtaRunStep: status from Ota_run: OTA_RUN_STATUS_CHECK_OLDER_VERSION Reply from 192.168.1.1: SUCCESS, Time=36ms, Overall Stat Success (171/173) OTA_run: call CdnClient_ConnectServer OTA server=api.dropboxapi.com CdnClient_ConnectServer: HttpClient_Connect api.dropboxapi.com HttpClient_Connect: IP_ADDR=162.125.81.7 HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored... OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_CC3220SF CdnDropbox_SendReqDir: uri=/2/files/list_folder RespLen is 678, ProcessedSize is: 673 the entire JSON pRespBuf is: Error: -16384 , Couldn't parse the received Json file CdnDropbox_ParseRespDir: ERROR OtaJson_init, retVal=-16384 OTA_run: ERROR CdnClient_ReqOtaDir, Status=-16384 _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.81.7 HttpClient_Connect: WARNING Socket Connect, status=-468, Ignored... OTA_run: CdnClient_ReqOtaDir, VendorDir=OTA_CC3220SF CdnDropbox_SendReqDir: uri=/2/files/list_folder RespLen is 673, ProcessedSize is: 668 the entire JSON pRespBuf is: Error: -16384 , Couldn't parse the received Json file CdnDropbox_ParseRespDir: ERROR OtaJson_init, retVal=-16384 OTA_run: ERROR CdnClient_ReqOtaDir, Status=-16384
Debug Logs. (refer lines with OTA_RUN_STATUS_CHECK_OLDER_VERSION & Error: -16384 , Couldn't parse the received Json file)