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 & Max Size Uniflash Conflict

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

Hello,

We have some units in the field that were programmed with Max Size in Uniflash as '0'.

In running some tests, we are finding that an image we want to push via OTA is not able to be downloaded, and I replicated the issue to be connected to the Max Size configuration.

Current image is ~85k. New image is around ~86k. When Uniflash is set to '0' or '85000', it cannot download the updated 86k image. When Uniflash is set to 128k, the updated image downloads fine, as expected.

My question: Is there a way to update this Max Size via code, without Uniflash? Then I can push an intermediate update via OTA, and then push the 86k file afterwards.  

Thank you!

  • Hi,

    I think you need delete firmware image by sl_ API and create file with higher size. But there can be one problem. CC3200MOD have only 1MB sFlash and for your purpose you will need free space same as you need create file.

    Just small example:
    - you have currently 85kB firmware image and 80kB free space at flash
    - you want create 128kB firmware image
    - you delete 85kB firmware image, but you will not be able create 128kB file, because SimpleLink filesystem not supports fragmentation

    Jan
  • Thanks, this worked.

    For details:
    - ended up calling sl_FsDel in case the file download failed (after it closes the file)
    - next time it tries OTA the logic was already there to create the file anyways, just had to make sure it created a file with a size that fits