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.

CC3200MOD: OTA Update Does not work

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

Hi All,

I am working on a project where i have to perform OTA on pressing switch, when i press the switch the switch device goes in the OTA loop but OTA does not work properly it stuck in after giving (iRet = sl_extLib_OtaRun(pvOtaApp);) iRet = 0.

Any kind of  Help would be appreciated

Here is my ota snippet

//***********************************************************************************************************************

//***********************************************************************************************************************
// OTA Thread Check For Firmware Update If Available Perform Update
//***********************************************************************************************************************

void Button1_Thread(void *pvParameters)
{
int OtaTry, OtaTry2;
event_msgQueue rx_msgQueue;
while(1)
{
//osi_SyncObjWait(&button_syncObj,OSI_WAIT_FOREVER);
osi_MsgQRead( &ButtonMSGQ, &rx_msgQueue, OSI_WAIT_FOREVER);

if(rx_msgQueue.msg_event == short_press)
{
UART_PRINT("--------------Short Press--------------\n");
GPIOPinWrite(GPIOA1_BASE,GPIO_PIN_3,GPIO_PIN_3);
//osi_SyncObjClear(&button_syncObj);

// Disconnect and stop networking service
//Stop_nwp();
//sl_Start(0,0,0);

int iRet;
int SetCommitInt = 1;
unsigned char ucVendorStr[50];

while(!IS_CONNECTED(g_ulStatus))
{
UART_PRINT("--------------!IS_CONNECTED(g_ulStatus)--------------\n");
}

strcpy((char *)ucVendorStr,OTA_VENDOR_STRING);

OtaTry=0;
OtaTry2=0;
while(1)
{
// Initialize OTA service
OTAServerInfoSet(&pvOtaApp,(char *)ucVendorStr);

// Set the OTA status and system state to RUN
UART_PRINT("OTA IN PROGRESS\n");

g_ulSysState = SYS_STATE_RUN;

// OTA update loop
while( SYS_STATE_RUN == g_ulSysState )
{
// while(!iRet)
// {
// iRet = sl_extLib_OtaRun(pvOtaApp);
// }
iRet = sl_extLib_OtaRun(pvOtaApp);

UART_PRINT("OTA LOOP\n");
UART_PRINT("%i\n",iRet);

if ( iRet < 0 )
{
if( RUN_STAT_ERROR_CONTINUOUS_ACCESS_FAILURES == iRet )
{
// Schedule a restart.
UART_PRINT("OTA_ERROR_RETRYING.....\n");
OtaTry++;
if(OtaTry>=2)
{
g_ulSysState = SYS_STATE_ERROR_REBOOT;
}

}
else
{
UART_PRINT("OTA_ERROR_RETRYING.....\n");
OtaTry++;
if(OtaTry>=3)
{
g_ulSysState = SYS_STATE_ERROR_REBOOT;
}
}
}

else if( iRet == RUN_STAT_NO_UPDATES )
{
UART_PRINT("OTA_NO_UPDATES\n");
g_ulSysState = SYS_STATE_NO_UPDATES;
}

else if ((iRet & RUN_STAT_DOWNLOAD_DONE))
{
// Set OTA File for testing
iRet = sl_extLib_OtaSet(pvOtaApp, EXTLIB_OTA_SET_OPT_IMAGE_TEST,
sizeof(int), (_u8 *)&SetCommitInt);

UART_PRINT("Download Completed.\n");

if (iRet & (OTA_ACTION_RESET_MCU| OTA_ACTION_RESET_NWP) )
{
g_ulSysState = SYS_STATE_REBOOT;
}
else
{
OtaTry2++;
if(OtaTry2>=2)
{
g_ulSysState = SYS_STATE_ERROR_REBOOT;
}
}
}
}

if(g_ulSysState == SYS_STATE_REBOOT)
{
UART_PRINT("Rebooting\n");

// Disconnect and stop networking service
Stop_nwp();

// Reboot system
RebootMCU();
}

else if(g_ulSysState == SYS_STATE_ERROR_REBOOT)
{
UART_PRINT("Error.Rebooting..\n");

// Disconnect and stop networking service
Stop_nwp();

// Reboot system
RebootMCU();
}

else if(g_ulSysState == SYS_STATE_NO_UPDATES)
{
osi_Sleep(1000);
Button1_EnableInterrupt();
Button2_EnableInterrupt();
break;
}
}
//osi_SyncObjClear(&button_syncObj);
}

/************************** Long Press to Reset Firmware *****************************/
else if(rx_msgQueue.msg_event == long_press)
{
UART_PRINT("--------------Long Press--------------\n");

Stop_nwp();
sl_Start(0,0,0);

while(1)
{
sBootInfo_t sBootInfo;
long lFileHandle;
unsigned long ulToken;

// Wait for button press
// osi_SyncObjWait(&g_FactResetSyncObj, OSI_WAIT_FOREVER);

// Read the boot Info
if( 0 == sl_FsOpen((unsigned char *)IMG_BOOT_INFO, FS_MODE_OPEN_READ, &ulToken, &lFileHandle))
{
if( 0 > sl_FsRead(lFileHandle, 0, (unsigned char *)&sBootInfo, sizeof(sBootInfo_t)) )
{
UART_PRINT("Unable to Read /sys/mcubootinfo.bin \n");
// Indicate Error

sl_FsClose(lFileHandle, 0, 0, 0);
sl_Stop(200);
sl_Start(0,0,0);
break;
while(1)
{
}
}
sl_FsClose(lFileHandle, 0, 0, 0);
}

// Set the factory default
sBootInfo.ucActiveImg = IMG_ACT_FACTORY;
sBootInfo.ulImgStatus = IMG_STATUS_NOTEST;

// Save the new configuration
if( 0 == sl_FsOpen((unsigned char *)IMG_BOOT_INFO, FS_MODE_OPEN_WRITE, &ulToken, &lFileHandle))
{
sl_FsWrite(lFileHandle, 0, (unsigned char *)&sBootInfo, sizeof(sBootInfo_t));
sl_FsClose(lFileHandle, 0, 0, 0);
}

// Disconnect and stop networking service
Stop_nwp();

// Reboot system
RebootMCU();
}
osi_Sleep(1000);
Button1_EnableInterrupt();
Button2_EnableInterrupt();
}

else if(rx_msgQueue.msg_event == device_reset)
{
UART_PRINT("--------------Device Reset--------------\nRebooting MCU..\n");
GPIOPinWrite(GPIOA1_BASE,GPIO_PIN_2,GPIO_PIN_2);
Stop_nwp();
// Delete_Files();
RebootMCU();
}
}
}

///--------------- MY OTA_CONFIG.h Configurations are-------------------

#define OTA_SERVER_NAME "api.dropbox.com"
#define OTA_SERVER_IP_ADDRESS 0x00000000
#define OTA_SERVER_SECURED 1
#define OTA_SERVER_APP_TOKEN "sl.BAXc8-D1xPrMyAQdV19mJ-8QP0vSen7Jg-YC785I2raVXiRzcORS_Jpb_ycEl47iHTjW_zhLxNF9VJCIXEatUdHKXIykHentDFmtXN-W6Fj8kkoIPw7CITq8VrGW200XkdNPiA0"
#define OTA_VENDOR_STRING "Vid01_Pid00_Ver00"

  • this is my dropebox configuration

  • ************************** Here IS My Real Term Output**********************

    *************************************************

    CC3200 ****** Monitoring Application

    *************************************************




    AT startup Device Tries to Connect to The Saved WiFi Configuration

    Host Driver Version: 1.0.1.14

    Build Version 2.0.7.0.31.0.0.4.1.1.5.3.3

    [WLAN ERROR]Device disconnected from the AP AP: ,BSSID: 0:0:0:0:0:0 on an ERROR.
    .!!

    Device is configured in Station Mode

    Device Entered in Station Mode

    [WLAN EVENT] STA Connected to the AP: ******* 2.4GHz ,BSSID: 34:e8:94:69:67:3e

    [NETAPP EVENT] IPv4 acquired by the device

    [NETAPP EVENT] IP Acquired: IP=192.168.0.105 , Gateway=192.168.0.1

    Connected to WiFi

    Timer Started

    MAC ADDRESS:f4b85e89ae0

    Entered In MQTT Task

    Version: Client LIB 1.4.0, Common LIB 1.5.0.

    C: Alloc for 1 20028a48

    C: FH-B1 0x10 to net 16, Sent (56 Bytes) [@ 5]

    C: Alloc for 0 20028a48

    C: Rcvd msg Fix-Hdr (Byte1) 0x20 from net 16 [@ 5]

    C: Cleaning session for net 16

    C: Msg w/ ID 0x0000, processing status: Good

    C: Alloc for 0 20028a48



    SUCCESS: Connected to Broker no. 1

    C: Alloc for 8 20028a24

    C: FH-B1 0x82 to net 16, Sent (29 Bytes) [@ 5]

    Client Subscribed on the following Topics:

    /cc3200/ToggleLEDCmdL1

    Connected to Broker Successfully.......

    MQP C: Rcvd msg Fix-Hdr (Byte1) 0x90 from net 16 [@ 5]



    Granted Qos Levels are:

    Qos 1

    C: Msg w/ ID 0x0001, processing status: Good

    C: Alloc for 0 20028a48

    alloc failed - msg type 0x03

    PUBLISH Failed..

    Retrying...

    C: FH-B1 0xe0 to net 16, Sent (2 Bytes) [@ 5]

    C: TX closing Net 16 [DISCONN]

    C: Net 16, Raw Error -1, Time Out: N [5]

    C: RX closing Net 16 [-1]

    C: Cleaning session for net 16

    C: Net 16 now closed

    disconnect from broker iot.electrobolt.io

    This is before Break statement

    Entered In MQTT Task

    Version: Client LIB 1.4.0, Common LIB 1.5.0.

    C: FH-B1 0x10 to net 17, Sent (56 Bytes) [@ 6]

    C: Rcvd msg Fix-Hdr (Byte1) 0x20 from net 17 [@ 6]



    SUCCESS: Connected to Broker no. 1

    C: FH-B1 0x82 to net 17, Sent (29 Bytes) [@ 6]

    Client Subscribed on the following Topics:

    /cc3200/ToggleLEDCmdL1

    Connected to BrokC: Rcvd msg Fix-Hdr (Byte1) 0x90 from net 17 [@ 6]



    Granted Qos Levels are:

    Qos 1

    er Successfully.......

    C: FH-B1 0x33 to net 17, Sent (37 Bytes) [@ 6]



    Device PublC: Rcvd msg Fix-Hdr (Byte1) 0x40 from net 17 [@ 6]

    PubAck:

    Ack Received from server

    ishes The Following Message

    Topic:Pub/f4:b8:5e:8:9a:e0

    Data:"HELLO WORLD"

    Give Binary Semaphore so That Main Task Starts

    Binary Semaphore Taken Main Task Started

    --------------Short Press--------------

    OTA IN PROGRESS

    OTA LOOP

    0

    ...

  • Try to enable the log messages in the OTA library (by defining "DEBUG_PRINT" in "extlibs_common.h").

  • Thanks sir for your reply, i have already done that but nothing appears, i have also tried ota update example provided in sdk that also won't work  

  • //**********************************8 LOGS OF OTA UPDATE EXAMPLE*********************************************************///



    *************************************************

    CC3200 OTA Update Application

    *************************************************




    App Version : 1.0.0

    Nwp Version : 2.14.0.0.31.1.6.0.2.1.0.3.37



    Wifi Status : Connected to Psiborg 2.4GHz



    NTP Server : 2.in.pool.ntp.org

    NTP Server IP : 162.159.200.123



    GTM Time : Wed Jan 21 2022 04:17:34

    Local Time (+05:30) : Wed Jan 21 2022 09:47:34



    OTA Update Status : In Progress...sl_extLib_OtaRun: OtaClient_UpdateCheck,
    vendorStr=Vid01_Pid00_Ver00_02140000

    CdnDropbox_SendReqDir: uri=/2/files/list_folder

    _OtaCleanToIdle: close OTA client and CDN client and back to IDLE

    sl_extLib_OtaRun ERROR: OtaClient_UpdateCheck






    *************************************************

    CC3200 OTA Update Application

    *************************************************




    App Version : 1.0.0

    Nwp Version : 2.14.0.0.31.1.6.0.2.1.0.3.37



    Wifi Status : Connected to Psiborg 2.4GHz



    NTP Server : 2.in.pool.ntp.org

    NTP Server IP : 162.159.200.123



    GTM Time : Wed Jan 21 2022 04:17:41

    Local Time (+05:30) : Wed Jan 21 2022 09:47:41



    OTA Update Status : Error Retrying...sl_extLib_OtaRun: call OtaClient_Conn
    ectServer OTA server=api.dropbox.com

    OtaClient_ConnectServer: http_connect_server api.dropbox.com






    *************************************************

    CC3200 OTA Update Application

    *************************************************




    App Version : 1.0.0

    Nwp Version : 2.14.0.0.31.1.6.0.2.1.0.3.37



    Wifi Status : Connected to Psiborg 2.4GHz



    NTP Server : 2.in.pool.ntp.org

    NTP Server IP : 162.159.200.123



    GTM Time : Wed Jan 21 2022 04:17:41

    Local Time (+05:30) : Wed Jan 21 2022 09:47:41



    OTA Update Status : In Progress...sl_extLib_OtaRun: OtaClient_UpdateCheck,
    vendorStr=Vid01_Pid00_Ver00_02140000

    CdnDropbox_SendReqDir: uri=/2/files/list_folder

    _OtaCleanToIdle: close OTA client and CDN client and back to IDLE

    sl_extLib_OtaRun ERROR: OtaClient_UpdateCheck






    *************************************************

    CC3200 OTA Update Application

    *************************************************




    App Version : 1.0.0

    Nwp Version : 2.14.0.0.31.1.6.0.2.1.0.3.37



    Wifi Status : Connected to Psiborg 2.4GHz



    NTP Server : 2.in.pool.ntp.org

    NTP Server IP : 162.159.200.123



    GTM Time : Wed Jan 21 2022 04:17:41

    Local Time (+05:30) : Wed Jan 21 2022 09:47:41



    OTA Update Status : Error Retrying...sl_extLib_OtaRun: call OtaClient_Conn
    ectServer OTA server=api.dropbox.com

    OtaClient_ConnectServer: http_connect_server api.dropbox.com






    *************************************************

    CC3200 OTA Update Application

    *************************************************




    App Version : 1.0.0

    Nwp Version : 2.14.0.0.31.1.6.0.2.1.0.3.37



    Wifi Status : Connected to Psiborg 2.4GHz



    NTP Server : 2.in.pool.ntp.org

    NTP Server IP : 162.159.200.123



    GTM Time : Wed Jan 21 2022 04:17:41

    Local Time (+05:30) : Wed Jan 21 2022 09:47:41



    OTA Update Status : In Progress...sl_extLib_OtaRun: OtaClient_UpdateCheck,
    vendorStr=Vid01_Pid00_Ver00_02140000

    CdnDropbox_SendReqDir: uri=/2/files/list_folder

    _OtaCleanToIdle: close OTA client and CDN client and back to IDLE

    sl_extLib_OtaRun ERROR: OtaClient_UpdateCheck






    *************************************************

    CC3200 OTA Update Application

    *************************************************




    App Version : 1.0.0

    Nwp Version : 2.14.0.0.31.1.6.0.2.1.0.3.37



    Wifi Status : Connected to Psiborg 2.4GHz



    NTP Server : 2.in.pool.ntp.org

    NTP Server IP : 162.159.200.123



    GTM Time : Wed Jan 21 2022 04:17:48

    Local Time (+05:30) : Wed Jan 21 2022 09:47:48



    OTA Update Status : Error Retrying...sl_extLib_OtaRun: call OtaClient_Conn
    ectServer OTA server=api.dropbox.com

    OtaClient_ConnectServer: http_connect_server api.dropbox.com

    one more thing when i try to build ota liberary it shows error on line 132 and 167  in otaclient.c file in following function

    _i16 CdnDropboxV2_SendReqDir(_i16 SockId, _u8 *pSendBuf, _u8 *pServerName, _u8 *pVendorDir, _u8 *pVendorToken)
    {
    _u8 ReqDirCmdBuf[200];

    /* Headers */
    strcpy((char *)ReqDirCmdBuf, (const char *)pVendorToken);
    strcat((char *)ReqDirCmdBuf, "\r\nContent-Type: Application/Json\r\nContent-Length: ");

    //-------------------------------The Error is in following ltoa function it requites raddix or base----------------------------------------//


    ltoa(13 /* {"path": "/"} */ + strlen((const char *)pVendorDir), (char *)&ReqDirCmdBuf[strlen((const char *)ReqDirCmdBuf)]);

    //---------------------------------------------------------------------------------------------------------------------------------------------------------//


    strcat((char *)ReqDirCmdBuf, "\r\n\r\n");

    /* Data */
    strcat((char *)ReqDirCmdBuf, "{\"path\": \"/");
    strcat((char *)ReqDirCmdBuf, (const char *)pVendorDir);
    strcat((char *)ReqDirCmdBuf, "\"}");

    Report("CdnDropbox_SendReqDir: uri=%s\r\n", OTA_SERVER_REST_REQ_DIR);
    return HttpClient_SendReq (SockId, pSendBuf, (_u8 *)"POST ", pServerName, (_u8 *)OTA_SERVER_REST_REQ_DIR , ""/*pVendorDir*/, (_u8 *)OTA_SERVER_REST_HDR, ReqDirCmdBuf/*pVendorToken*/);
    }

    _i16 CdnDropboxV2_SendReqFileUrl(_i16 SockId, _u8 *pSendBuf, _u8 *pServerName, _u8 *pFileName, _u8 *pVendorToken)
    {
    _u8 ReqDirCmdBuf[200];

    /* Headers */
    strcpy((char *)ReqDirCmdBuf, (const char *)pVendorToken);
    strcat((char *)ReqDirCmdBuf, "\r\nContent-Type: Application/Json\r\nContent-Length: ");

    //-------------------------------The Error is in following ltoa function it requites raddix or base----------------------------------------//


    ltoa(12 /* {"path": ""} */ + strlen((const char *)pFileName), (char *)&ReqDirCmdBuf[strlen((const char *)ReqDirCmdBuf)]);

    //---------------------------------------------------------------------------------------------------------------------------------------------------------//

    strcat((char *)ReqDirCmdBuf, "\r\n\r\n");

    /* Data */
    strcat((char *)ReqDirCmdBuf, "{\"path\": \"");
    strcat((char *)ReqDirCmdBuf, (const char *)pFileName);
    strcat((char *)ReqDirCmdBuf, "\"}");

    Report("CdnDropbox_SendReqFileUrl: uri=%s\r\n", OTA_SERVER_REST_REQ_FILE_URL);
    return HttpClient_SendReq(SockId, pSendBuf, (_u8 *)"POST ", pServerName, (_u8 *)OTA_SERVER_REST_REQ_FILE_URL , "" /*pFileName*/, (_u8 *)OTA_SERVER_REST_HDR, ReqDirCmdBuf/*pVendorToken*/);
    }

  • //---------------------------------------------------- This is My custom ota function response-----------------------------------------//

    --------------Short Press--------------

    OTA IN PROGRESS

    sl_extLib_OtaRun: call O
    taClient_ConnectServer OTA server=api.dropbox.com

    OtaClient_ConnectServer: http_connect_server api.dropbox.com

    OTA LOOP

    0

    sl_extLib_OtaRun: OtaClient_UpdateCheck, vendorStr=Vid01_Pid00_Ver00

    CdnDropbox_SendReqDir: uri=/2/files/list_folder

    //-------------------------------------------------------------------------------------------------------------------------------------------------

    Now please help me what i am missing

  • *************************************************

    CC3200 OTA Update Application

    *************************************************




    App Version : 1.0.0

    Nwp Version : 2.14.0.0.31.1.6.0.2.1.0.3.37



    Wifi Status : Connected to Psiborg 2.4GHz



    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 : 1.0.0

    Nwp Version : 2.14.0.0.31.1.6.0.2.1.0.3.37



    Wifi Status : Connected to Psiborg 2.4GHz



    NTP Server : dmz0.la-archdiocese.net

    NTP Server IP : 209.151.225.100



    GTM Time : Wed Jan 21 2022 06:24:36

    Local Time (+05:30) : Wed Jan 21 2022 11:54:36



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





    *************************************************

    CC3200 OTA Update Application

    *************************************************




    App Version : 1.0.0

    Nwp Version : 2.14.0.0.31.1.6.0.2.1.0.3.37



    Wifi Status : Connected to Psiborg 2.4GHz



    NTP Server : dmz0.la-archdiocese.net

    NTP Server IP : 209.151.225.100



    GTM Time : Wed Jan 21 2022 06:24:42

    Local Time (+05:30) : Wed Jan 21 2022 11:54:42



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





    *************************************************

    CC3200 OTA Update Application

    *************************************************




    App Version : 1.0.0

    Nwp Version : 2.14.0.0.31.1.6.0.2.1.0.3.37



    Wifi Status : Connected to Psiborg 2.4GHz



    NTP Server : dmz0.la-archdiocese.net

    NTP Server IP : 209.151.225.100



    GTM Time : Wed Jan 21 2022 06:24:42

    Local Time (+05:30) : Wed Jan 21 2022 11:54:42



    OTA Update Status : In Progress...sl_extLib_OtaRun: call OtaClient_Connect
    Server OTA server=api.dropbox.com

    OtaClient_ConnectServer: http_connect_server api.dropbox.com






    *************************************************

    CC3200 OTA Update Application

    *************************************************




    App Version : 1.0.0

    Nwp Version : 2.14.0.0.31.1.6.0.2.1.0.3.37



    Wifi Status : Connected to Psiborg 2.4GHz



    NTP Server : dmz0.la-archdiocese.net

    NTP Server IP : 209.151.225.100



    GTM Time : Wed Jan 21 2022 06:24:42

    Local Time (+05:30) : Wed Jan 21 2022 11:54:42



    OTA Update Status : In Progress...sl_extLib_OtaRun: OtaClient_UpdateCheck,
    vendorStr=Vid01_Pid00_Ver00_02140000

    CdnDropbox_SendReqDir: uri=/2/files/list_folder

  • After lots of research now i am able to download file from ota server but now i am stuck in following error

    --------------Short Press--------------

    OTA IN PROGRESS

    sl_extLib_OtaRun: call O
    taClient_ConnectServer OTA server=api.dropbox.com

    OtaClient_ConnectServer: http_connect_server api.dropbox.com

    OTA LOOP

    0

    sl_extLib_OtaRun: OtaClient_UpdateCheck, vendorStr=Vid01_Pid00_Ver00

    CdnDropbox_SendReqDir: uri=/2/files/list_folder

    metadata file=/Vid01_Pid00_Ver00/f80_sys_mcuimgA.bin, size=94712

    sl_extLib_OtaRun: OtaClient_UpdateCheck, numUpdates=1

    OTA LOOP

    0

    sl_extLib_OtaRun: OtaClient_GetNextUpdate: file=/Vid01_Pid00_Ver00/f8
    0_sys_mcuimgA.bin, size=94712

    OtaClient_ResourceMetadata: file flags=80,metadata flags=80

    CdnDropbox_SendReqFileUrl: uri=/2/files/get_temporary_link

    OTA LOOP

    0

    sl_extLib_OtaRun: ResourceMetadata CDN file URL = https://uceb3e84a96
    f0abb1426b07cba39.dl.dropboxusercontent.com/cd/0/get/BeGqaAZK_Xtol6Cb7B1PWo3v_Ws
    IQdFhVRITsUzG8QWfnxSJEnePUj9SU0VY9eq4kDjPN2QgR8Tai5CRhSDK_bV_5KHs7Z1kSJDws11B7Ye
    hchNuiTZ92wQPRzamM2PB5xP8i6LwrxwxYNM8dCOa_Ill/file

    _ReadFileHeaders: domain=uceb3e84a96f0abb1426b07cba39.dl.dropboxusercontent.com,
    file=/cd/0/get/BeGqaAZK_Xtol6Cb7B1PWo3v_WsIQdFhVRITsUzG8QWfnxSJEnePUj9SU0VY9eq4
    kDjPN2QgR8Tai5CRhSDK_bV_5KHs7Z1kSJDws11B7YehchNuiTZ92wQPRzamM2PB5xP8i6LwrxwxYNM8
    dCOa_Ill/file

    _ReadFileHeaders: skip http headers

    OTA LOOP

    0

    CdnClient_Run: Create/Open for write file /sys/mcuimgA.bin

    _OpenStorageFile: error in pOpenFile, status=-3

  • //-------------------------------- UNIFLASH DEBUG CONSOL LOGS -----------------------------------------------------------//

    Verification OK
    [16:31:27] INFO: > Updated Token value: 0x0
    [16:31:27] INFO: > Executing Operation: Disconnect
    [16:31:27] Operation Program returned.
    [16:32:21] Begin ListFileSystem operation.
    [16:32:21] INFO: > Executing Operation: Connect
    [16:32:23] INFO: setting break signal
    [16:32:24] INFO: detecting FTDI for device reset
    [16:32:26] INFO: connection succeeded
    [16:32:26] INFO: getting storage list
    [16:32:26] INFO: > Executing Operation: Init
    [16:32:26] INFO: reading version info
    [16:32:26] INFO: DEVICE CC3200 ES1.33
    [16:32:26] INFO: reading version info
    [16:32:27] INFO: reading version info
    [16:32:29] INFO: > Executing Operation: ListFileSystem
    [16:32:29] INFO: extracting file system information...
    [16:32:29] INFO: file start size fail total size filename
    [16:32:29] INFO: index block [BLKs] safe [BLKs]
    [16:32:29] INFO: ----------------------------------------------------------------------------
    [16:32:29] INFO: N/A 0 5 N/A 5 FATFS
    [16:32:29] INFO: 0 15 4 yes 8 /sys/mcuimg.bin
    [16:32:29] INFO: 4 5 5 yes 10 /tmp/phy.cal
    [16:32:29] INFO: 6 23 2 no 2 www/antenna_selection.html
    [16:32:29] INFO: 7 25 1 no 1 www/main.html
    [16:32:29] INFO: 8 26 1 no 1 www/param_status.html
    [16:32:29] INFO: 9 27 1 no 1 www/images/sig1.jpg
    [16:32:29] INFO: 10 28 1 no 1 www/images/sig2.jpg
    [16:32:29] INFO: 11 29 1 no 1 www/images/sig3.jpg
    [16:32:29] INFO: 12 30 1 no 1 www/images/sig4.jpg
    [16:32:29] INFO: 13 31 24 no 24 www/js/jquery-1.8.3.min.js
    [16:32:29] INFO: 14 55 24 no 24 /sys/mcuimg2.bin
    [16:32:29] INFO: 15 79 24 no 24 /sys/mcuimg1.bin
    [16:32:29] INFO: 16 127 1 yes 2 /sys/mcubootinfo.bin
    [16:32:29] INFO: 17 129 1 yes 2 /sys/stacfg.ini
    [16:32:29] INFO: 18 131 1 yes 2 /sys/ipcfg.ini
    [16:32:29] INFO: 19 133 1 yes 2 /sys/mode.cfg
    [16:32:29] INFO: 20 135 1 yes 2 /sys/pmcfg.ini
    [16:32:29] INFO: 21 137 1 yes 2 /sys/mdns.cfg
    [16:32:29] INFO: 22 139 2 yes 4 /sys/pref.net
    [16:32:29] INFO:

    Flash usage
    [16:32:29] INFO: -------------------------
    [16:32:29] INFO: used space: 119 blocks
    [16:32:29] INFO: free space: 137 blocks
    [16:32:29] INFO: memory hole: [103-126]
    [16:32:29] INFO: memory hole: [143-255]
    [16:32:29] INFO: > Executing Operation: Disconnect
    [16:32:29] Operation ListFileSystem returned.

  • -3 means INVALID_MAGIC_NUM. This typically indicates that the file system is corrupted.

    Please start over (after programming the flash) and try to check the sequence of events that causes this.