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.
-
Open the
aws_demos
project in your IDE. -
Locate the file
/vendors/
and increment the value of APP_VERSION_BUILD.vendor
/boards/board
/aws_demos/config_files/ota_demo_config.h -
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" -
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