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.

CC3235S: OTA failure -20109 (Bundle CMD Max Object error)

Part Number: CC3235S

Hi,

I added and used OTA module on my custom CC3235S board using SDK 6.10.0.5

My cusotm board use 32Mb sFlash.

I was able to upload the tar file to my github and download it via OTA module.

Below is the device state before OTA.

and it's binary memory (it called v1)

  

Below is the binary memory used to create the tar file. (it called v2)

 

I tried the OTA, and it was able to find the download link.

But OtaArchive_process is return -20109. It is ARCHIVE_STATUS_ERROR_BUNDLE_CMD_MAX_OBJECT.

I can't figure out what causes this error to occur.

I reduced the heap capacity in v2 and moved the .data area from SRAM to SRAM0 due to lack of memory. Could this be the cause?

Please give me some advice.

 

Thank you.

  • Hi,

    This error means that you have more than 20 files in the ota tar file.

    You can see in the code MAX_BUNDLE_CMD_FILES which is set to 20.

    Maybe you can try to increase it to meet your requirement and recompile.

    Shlomi

  • Thank you for reply.

    I set MAX_BUNDLE_CMD_FILES from 8 to 20 in OtaArchive.h and created both binary(v1 and v2).

    (MAX_BUNDLE_CMD_FILES was using 8 in OtaArchive.h)

     

    It works well.

     

    Thanks.