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.

CC3220SF - how to set FW version for OTA check manually?

Hello,

when using OTA functionality, it checks the FW version of the OTA image (in dropbox) and if the version is new, it will initiate OTA update. It is fine for devices which are already in the field. But my problem is when I program a brand new device with new FW (manually in a factory), it will always evaluate the OTA image in Dropbox as a new one and initiate the OTA update. However, I don't want every newly programmed device to initiate the update (simply because the newly programmed devices already contain the newest FW). Is there any way to set the OTA image version in the firmware manually? So that it first checks the version and does not initiate the OTA update every time after a clean programming?

Thank you for suggestions.

  • Hi Daniel,

    Yes, you are correct. In the current examples, it is assumed that the initial image does not contain a version file. During the first OTA, the file is created and then it is written each time a new update occurs based on the version of the tar file.

    The version is just maintained in a file called "ota.dat" in our implementation. You can find this in the code by looking for the OTA_VERSION_FILENAME define.

    You just need to make sure this file is written to the device when it is programmed (or shortly after). So it could either be included in the image or you could probably try to reuse the functions in OtaArchive.c to write the file in your application on first boot. It's up to you.

    Best Regards,

    Ben M