Download, build, flash, and run the FreeRTOS OTA demo on the Espressif ESP32
Important
This is an archived version of the FreeRTOS User Guide for use with FreeRTOS release 202012.00. For the latest version of this document, see the FreeRTOS User 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_MQTT_DEMO_ENABLED, and defineCONFIG_OTA_UPDATE_DEMO_ENABLED. -
Build the demo project by running
makein thevendors/espressif/boards/esp32/aws_demosdirectory. 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_MQTT_DEMO_ENABLED, and defineCONFIG_OTA_UPDATE_DEMO_ENABLED. -
Make sure that your SHA-256/ECDSA code-signing certificate is copied into the
demos/include/aws_ota_codesigner_certificate.h.
-