This is an example project for the ESP32 Wrover kit, based around the Amazon FreeRTOS SDK.
NOTE: this was built based on this version of the amazon-freertos repo, which is tracked as a submodule in this repo. Other versions may not be compatibile due to build system changes.
This example is based loosely around the instructions here (which are incomplete and do not work with the latest Amazon FreeRTOS tags):
To run the example (this assumes a unix-like bash environment- tested on Ubuntu linux, but should be similar for Mac osx or Windows git bash shell), follow these instructions:
See the setup instructions here:
We don't care about all the AWS stuff, just the ESP-IDF setup
-
install prerequisites for your platform, following step 1 from here:
-
first clone this repo with submodules:
# --recursive to get submodules too. warning, this takes several minutes! ❯ git clone --recursive https://github.com/memfault/amazon-freertos-esp32-example.git
-
cd into the freshly cloned repo and install the esp toolchain:
❯ freertos/vendors/espressif/esp-idf/install.sh
-
activate the esp build environment:
❯ export IDF_PATH=$(pwd)/freertos/vendors/espressif/esp-idf/ && source freertos/vendors/espressif/esp-idf/export.sh
-
build the project:
❯ cmake -B build -DIDF_SDKCONFIG_DEFAULTS=$(pwd)/sdkconfig.defaults \ -DCMAKE_TOOLCHAIN_FILE=freertos/tools/cmake/toolchains/xtensa-esp32.cmake \ -GNinja --log-level=status
-
flash the result to the board:
# flash the application and start the serial port monitor ❯ idf.py flash monitor