Amazon FreeRTOS
User Guide

Update the Version of Your Firmware

The OTA agent included with Amazon FreeRTOS checks the version of any update and installs it only if it is more recent than the existing firmware version. The following steps show you how to increment the firmware version of the OTA demo application.

  1. Open the aws_demos project in your IDE.

  2. Open demos/common/include/aws_application_version.h and increment the APP_VERSION_BUILD token value.

  3. If you are using the Microchip Curiosity PIC32MZEF, increment the OTA sequence number in \demos\common\ota\bootloader\utility\user-config\ota-descriptor.config. The OTA sequence number should be incremented for every new OTA image generated.

  4. Rebuild the project.

You must copy your firmware update into the Amazon S3 bucket that you created as described in Create an Amazon S3 Bucket to Store Your Update. The name of the file you need to copy to Amazon S3 depends on the hardware platform you are using:

  • Texas Instruments CC3200SF-LAUNCHXL: demos\ti\cc3220_launchpad\ccs\debug\aws_demos.bin

  • Microchip Curiosity PIC32MZEF: demos\microchip\curiosity_pic32mzef\mplab\dist\pic32mz_ef_curiosity\production\mplab.production.ota.bin

  • Espressif ESP32: demos/espressif/esp32_devkitc_esp_wrover_kit/make/build/aws_demos.bin