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.

CCS/CC3220SF-LAUNCHXL: cc3220sf

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

Tool/software: Code Composer Studio

Hi,

related to local_ota example:

i get error on function _BundleCmdFile_Parse in line 

/* Initialize the JSON module */
retVal = OtaJson_init(template_OtaCmd, (char **)&pInternalBuf,
internalBufLen);

OtaJson_init return error -102

i generate OTA tar file using uniflash program.

advice

Thanks

  • Hi Asaf,

    -102 is a JSON parsing error.

    1. Have you made changes to the local OTA example?
    2. Can you try the TAR provided in the SDK in the local_ota example_tar folder?
    3. Can you share the User Files screen from your TAR image? Are you using long file names?

    Best regards,
    Sarah
  • Hi,
    please examine function _BundleCmdFile_Parse in local_ota example in line number 412 where pEndFileBuf == NULL and pStartFileBuf != NULL
    change code

    memcpy(pInternalBuf, pRecvBuf, RecvBufLen);
    internalBufLen += RecvBufLen;
    *ProcessedSize = RecvBufLen;
    return ARCHIVE_STATUS_BUNDLE_CMD_CONTINUE;
    to
    memcpy(pInternalBuf, pStartFileBuf , RecvBufLen - *ProcessedSize);
    internalBufLen += RecvBufLen - *ProcessedSize;
    *ProcessedSize = RecvBufLen - *ProcessedSize;
    return ARCHIVE_STATUS_BUNDLE_CMD_CONTINUE;

    please examine this code my json is big :
    20190410205445_CC3220SF_WiFiCoordinator/ 0000644 0000000 0000000 00000000000 00000000000 014755 5 ustar 0000000 0000000 20190410205445_CC3220SF_WiFiCoordinator/0/ 0000644 0000000 0000000 00000000000 00000000000 015114 5 ustar 0000000 0000000 20190410205445_CC3220SF_WiFiCoordinator/1/ 0000644 0000000 0000000 00000000000 00000000000 015115 5 ustar 0000000 0000000 20190410205445_CC3220SF_WiFiCoordinator/2/ 0000644 0000000 0000000 00000000000 00000000000 015116 5 ustar 0000000 0000000 20190410205445_CC3220SF_WiFiCoordinator/0/ota.cmd 0000644 0000000 0000000 00000002614 00000000000 016372 0 ustar 0000000 0000000 [
    {
    "digest":"77ccf3f69bf935d020471e8587fb32397909ef2e8dd53e5cc40921712ab1c129",
    "certificate":"dummy-root-ca-cert",
    "signature_base64":"J+diIbPin0YDWFP+cN5v4N8Dd8s6HBGk4SB2R2nabLIF2eDrvnLsXLPg8RBRksGMZcnRrzCfK9NxFnCllwxMb4wRqlmQxuWCJXGq7/CVqMO+D7dPXTw4aMujjzXhyVKbUFVpM81nooJ6PfqqlhjVEuW8rq6561EOVR7oYgbFoUYQS5kxow1iAcENOS5XPkBMiI+OndZ3zIiHU60n1C8z20rV5g7dmPhy0kiYNMODd01UUhVHbAHGKRGNu6QPZIYKXRvWcQd2fUYxFVB49DQ98ngdr+Qxv0fVKVXJ0Jca3fCFXC7WM20awdT/8roA//64xvpp/uy80UoIiQeL2rf14A==",
    "secured":1,
    "bundle":1,
    "filename":"/sys/mcuflashimg.bin"
    },
    {
    "digest":"34941765501d16a4ab776c3a74d89945f1a2575c5893069f62ffbe803f344549",
    "certificate":"",
    "signature_base64":"",
    "secured":0,
    "bundle":0,
    "filename":"dummy-root-ca-cert"
    },
    {
    "digest":"e00fd39f7c7daad6a72cc634204d48f6d6d3487323b422b64c19625c5e0e315b",
    "certificate":"",
    "signature_base64":"eNWjMDrp2hll2zZ4RkEiLpOcLUOydtzlFn7R5ParZ2CVnA4Wl8mIWuLyC5zhNxZK4NUUTRLRj+LChpYcurOLD9u1d+EblJ8A3OeqEYNTAMbRA50SdvJ9f+Jm7dIjlix6VyZzP48NrIBErCVy+rI6oc0foEZOZPuEhfDbelyliEn+uyENdhM+mRPUsH68eW1AK222ISsFpmWNEJkmXq+jiQpDzNDmFkZB+SQHKBaMxV5QGow3XiPE98Eg78WOpghrGNjx36zCHxJwXUBDrWEnA8E3Sqi1h6vY7x4Ao3dryyAL9NS6OjCPr2BuTqNaDIqNw7ldCwVYpZGxyFvi6Xopbw==",
    "secured":1,
    "bundle":1,
    "filename":"/sys/servicepack.ucf"
    }
  • the tar file in the example is work but my tar file return error.
    there is a way to send you my tar file for TI software team debug the example code.
  • Hi Asaf,

    What JSON are you referring to? I would like to see a screenshot of the user files for your ImageCreator project for the TAR you are creating like so:

    I also don't understand the first part of your reply. Why did you make those changes to the local OTA example? Have you tested this with the default example in the SDK?

    Best regards,

    Sarah

  • Hi Asaf,

    It looks like you opened a similar thread on this topic instead of continuing on this thread: e2e.ti.com/.../802243

    Best regards,
    Sarah