Download, build, flash, and run the FreeRTOS OTA demo on the Espressif ESP32
Important
This reference integration is hosted on the Amazon-FreeRTOS repository which is deprecated. We recommend that you start here when you create a new project. If you already have an existing FreeRTOS project based on the now deprecated Amazon-FreeRTOS repository, see the Amazon-FreeRTOS Github Repository Migration Guide.
-
Download the FreeRTOS source from GitHub
. See the README.md file for instructions. Create a project in your IDE that includes all required sources and libraries. -
Follow the instructions in Getting Started with Espressif to set up the required GCC-based toolchain.
-
Open
, comment outfreertos
/vendors/vendor
/boards/board
/aws_demos/config_files/aws_demo_config.h#define CONFIG_CORE_MQTT_MUTUAL_AUTH_DEMO_ENABLED
, and defineCONFIG_OTA_MQTT_UPDATE_DEMO_ENABLED
orCONFIG_OTA_HTTP_UPDATE_DEMO_ENABLED
. -
Build the demo project by running
make
in thevendors/espressif/boards/esp32/aws_demos
directory. You can flash the demo program and verify its output by runningmake flash monitor
, as described in Getting Started with Espressif. -
Before running the OTA Update demo:
-
Open
, comment outfreertos
/vendors/vendor
/boards/board
/aws_demos/config_files/aws_demo_config.h#define CONFIG_CORE_MQTT_MUTUAL_AUTH_DEMO_ENABLED
, and defineCONFIG_OTA_MQTT_UPDATE_DEMO_ENABLED
orCONFIG_OTA_HTTP_UPDATE_DEMO_ENABLED
. -
Open
vendors/
, and copy your SHA-256/ECDSA code-signing certificate in:vendor
/boards/board
/aws_demos/config_files/ota_demo_config.h#define otapalconfigCODE_SIGNING_CERTIFICATE [] = "
your-certificate-key
";
-