Follow the instructions from the esp-rs book and
install espflash.
Additionally this example uses cargo-make for some task automation. Specifically for adding a memfault build-id.
To install cargo make run the following:
cargo install cargo-makeThe project is configured for the esp32c3. Other boards are possible, but will require a bit of tweaking.
Set CONFIG_MEMFAULT_PROJECT_KEY in sdkconfig.defaults to the key of your project.
Define environment variables WIFI_SSD and WIFI_PASS for your network.
Building:
cargo make buildFlashing/running:
cargo make flashMemfault is integrated as an
ESP-IDF Component via the
ESP-RS extra components interface.
This integration focuses on coredump/backtrace functionality only. The bindings needed are generated via bindings.h header.
See file level comments for more in-depth program flow descriptions.