Skip to content

memfault/memfault-esp-rs-example

Repository files navigation

Memfault esp-rs example

Environment Setup

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-make

The 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.

Running

Define environment variables WIFI_SSD and WIFI_PASS for your network.

Building:

cargo make build

Flashing/running:

cargo make flash

Integration Breakdown

Memfault 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.

Releases

No releases published

Packages

No packages published