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.

CC3220MODA: Can't update the file in OTA package if the size of the file becomes bigger in the following OTA package

Part Number: CC3220MODA

Dear Sir,

I’ve got a problem with updating the file on the file system of the CC3220 chip.
I can’t update the file in terms of OTA update package if the initial size of the file was significantly less.

Important note: This file was uploaded to the file system after manufacturing of the device. It was added in one of the OTA update package. Initially, it was absent in UCF image when we produced the unit.
When I added this file in terms of OTA package. I used the following command:
SLImageCreator.exe project add_file --name "app-dock-v1-user" --file " www.tar" --fs_path "www.tar" --max_size 256000 --flags nofailsafe
As you can see I used the option “max_size” to reserve the space for future upgrading of this file.
Initially, the size of the file was 110k when I added it unit via OTA package.
In the following OTA package the file size was increased up tp 130k. And I could not update it. OtaArchive_process returns the error ARCHIVE_STATUS_ERROR_SAVE_CHUNK on transferring of the chunk among the chunk sequence.
Also, I’ve tried to use the option –overwrite. But the result was the same.

Just for experiment reason, I’ve added this file to initial UCF image with the max_size 256000. After that, it seems space has been reserved. And I have managed to add sequentially the target file 110k and update it after up to new version with size 130k.

And also I don’t see any information about max size in ota.cmd file. So it looks like TI bootloader is able to reserve extra space for the file only in terms of UCF image, but not in terms of OTA package. Can’t find any information in the datasheets.
Can you explain the rules? How can I reserve file size?

Andrey