opinionated bare-metal async Rust template for the ESP32-C3/C6, or about 650 lines of code I was going to write anyway.
this template can be built for both the ESP32-C3 and ESP32-C6:
- use
just r3orjust r6to flash and monitor. - use
just b3orjust r6to build. - use
just c3orjust c6to run Clippy. - use
just bl3orjust bl6to runcargo-bloat.
the Justfile recipes automatically set the required build target and crate features.
the Nix flake exports a dev shell, some checks, and 2 packages, one per target.
the dev shell contains common utilities for development: the
Rust toolchain, cargo-binutils, cargo-bloat, espflash,
esptool, and just.
building the package generates an ELF binary and a flat firmware image, the latter of which can be flashed onto a module.