Update the version of your firmware - FreeRTOS
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Update the version of your firmware

The OTA Agent included with 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. Locate the file /vendors/vendor/boards/board/aws_demos/config_files/ota_demo_config.h and increment the value of APP_VERSION_BUILD.

  3. To schedule an update to a Renesas rx65n platform with a filetype other than 0 (non-firmware files), you must sign the file with the Renesas Secure Flash Programmer tool, otherwise it will fail the signature check on the device. The tool creates a signed file package with the extension .rsu which is a proprietary file type for Renesas. The tool can be found on Github. You can use the following example command to generate the image:

    "Renesas Secure Flash Programmer.exe" CUI Update "RX65N(ROM 2MB)/Secure Bootloader=256KB" "sig-sha256-ecdsa" 1 "file_name" "output_file_name.rsu"
  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 CC3220SF-LAUNCHXL: vendors/ti/boards/cc3220_launchpad/aws_demos/ccs/debug/aws_demos.bin

  • Espressif ESP32: vendors/espressif/boards/esp32/aws_demos/make/build/aws_demos.bin