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.

OTA update problem with cc3200

Other Parts Discussed in Thread: CC3200, UNIFLASH

Hi,

When ever i try update my cc3200 i am receiving this error

[SOCK ERROR] -close scoket (83) operationconnection less mode, rx packet fragmentation
> 16K, packet is being released[SOCK ERROR] -close socket (83) operationremote side down from secure to unsecure
unknown sock async event: 2

I didn't enable debugging so can u help with this issue.

Thanks,

suresh vempalli

  • Hi Suresh Vempalli,


    Can you please provide the more details on where, and under what circumstance, you are getting this error?

    And have you tried using the OTA example directly from the SDK and see if it works for you?

  • Thanks for reply,

         so i have tested get-weather example IT worked fine. And i developed application added OTA to it. It worked few times fine and suddenly it gives this error every time i update. I can only see above mentioned debug print. If i enable DEBUG_PRINTS it works fine. I am still testing with complete DEBUG_PRINTS i will post once cc3200 fails. So meanwhile can  you tell me what might be the problem here and what else i can do so that OTA doesn't fail again.

    Can you tell me if any errors or any issues with current SDK OTA files. As We are going to mass production mode we need to solve this immediately. 

    Please consider this as priority.

    Thanks,

    Suresh Vempalli 

  • Hi ,

    I have some extra info

    So my linker file memory values

       /* Application uses internal RAM for program and data */

       SRAM_CODE (RWX) : origin = 0x20004000, length = 0x22FFF // old 18fff

       SRAM_DATA (RWX) : origin = 0x20027000, length = 0x09000 //old 16000

           /* This code section is to use MCU Bootloader RAM section (16kB) */

       SRAM_BOOTLDR (RWX) : origin = 0x20000000, length = 0x0004000

                     ***************uniflash configuration********************************

    ****************************my debug prints***************************************************************

    HTTP/1.1 200

    CdnClient_Run: Create/Open for write file /sys/mcuimgA.bin
    _McuImageGetNewIndex: active image is 1, return new image 2

    sl_extlib_FlcOpenFile: MCU image name converted to /sys/mcuimg3.bin
    CdnClient_Run: file opened
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 0.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 1440.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 2880.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 4320.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 5760.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 7200.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 8640.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 10080.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 11520.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 12960.
    CdnClient_Run: Write size 1136 to file /sys/mcuimg3.bin total 14400.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 15536.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 16976.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 18416.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 19856.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 21296.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 22736.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 24176.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 25616.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 27056.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 28496.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 29936.
    CdnClient_Run: Write size 320 to file /sys/mcuimg3.bin total 31376.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 31696.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 33136.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 34576.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 36016.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 37456.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 38896.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 40336.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 41776.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 43216.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 44656.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 46096.
    CdnClient_Run: Write size 304 to file /sys/mcuimg3.bin total 47536.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 47840.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 49280.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 50720.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 52160.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 53600.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 55040.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 56480.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 57920.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 59360.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 60800.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 62240.
    CdnClient_Run: Write size 1248 to file /sys/mcuimg3.bin total 63680.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 64928.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 66368.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 67808.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 69248.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 70688.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 72128.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 73568.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 75008.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 76448.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 77888.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 79328.
    CdnClient_Run: Write size 304 to file /sys/mcuimg3.bin total 80768.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 81072.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 82512.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 83952.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 85392.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 86832.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 88272.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 89712.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 91152.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 92592.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 94032.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 95472.
    CdnClient_Run: Write size 320 to file /sys/mcuimg3.bin total 96912.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 97232.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 98672.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 100112.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 101552.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 102992.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 104432.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 105872.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 107312.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 108752.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 110192.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 111632.
    CdnClient_Run: Write size 304 to file /sys/mcuimg3.bin total 113072.
    CdnClient_Run: Write size 1440 to file /sys/mcuimg3.bin total 113376.
    CdnClient_Run: Error - SaveFileChunk - (-15)
    sl_extLib_OtaRun ERROR: Failed on CdnClient_Run
    OTA: Error with OTA server

    Please let us know what is mistake

    Thanks,

    Suresh vem[palli

  • Hi,
    I tried with uniflash 3.4 version also.It gives same error as before
  • Hi Suresh,

    The message "[SOCK ERROR] -close scoket (83) ..." came from the SimpleLinkSockEventHandler async event handlers, location in file under /example/common/network_if.c for common usage for many SDK applications.
    The asynchronous socket events are for notification and can be used to get the status/error reasons.

    Please check the 'socket.h' file for possible type of 'SL_SOCKET_ASYNC_EVENT'.

    Based on the two messages, you are receiving the async event:
    #define RX_FRAGMENTATION_TOO_BIG (2) /* connectionless mode, rx packet fragmentation > 16K, packet is being released */

    You should ignore this message since your are using TCP instead of UDP. This event applies to UDP only. Take a look at the handler in the SDK OTA example, such case is not being handled at all.

  • Hi,

     Thanks for reply,

     This error occurs after OTA Fail.

    As i mentioned above when i do OTA First it gives me CdnClient_Run: Error - SaveFileChunk - (-15) and fails.

    After that when try OTA again it gives me connectionless mode, rx packet fragmentation > 16K, packet is being released ERROR.

    And OTA will not happen again.

    Please let us know if any solution for this.

    Thanks,

    Suresh vempalli

  • Hi Suresh,

    The error came from the CDN (Content Delivery Network) client library that fails to save the retrieved file.

    In fact, I don't really recommend using the CDN client library as this complex library is designed specifically for retrieving data from DropBox, and it occupies a large chunk in your application binary.

    If you have a HTTP server running where you can host the ota files, you may simply use HTTP protocols to retrieve them, and then save the file by using the Filesystem library. This will significantly reduce the code size and complexity.

  • Thanks For info,

    So i will try to do that.

    my Another query is What is max file size specified in UNIFLASH 

    is it SRAMCODE size

    or is it complete code 

    As u can see above unflash screen shot   max size is 143000

    I tried with 230000 maxsize and it works fine.

    So is it problem with max size or is it problem with CDN client????

    waiting for reply

    Thanks,

    suresh

  • Hi Suresh,


    The Max Size in the Uniflash is the file size. Please refer to the Uniflash Complete Guide for more information.