- Nix with flakes enabled, and
direnv(or runnix developmanually) - An ESP32-based board connected over USB
The ESP-IDF environment is defined in flake.nix. With direnv:
direnv allowOr enter the environment manually:
nix developidf.py buildidf.py is a wrapper around CMake + Ninja; the same build can be run without it:
mkdir -p build
cmake -B build -G Ninja -DIDF_TARGET=esp32 .
cmake --build buildidf.py -p /dev/ttyUSB0 flashOr, from a CMake build:
cmake --build build --target flashThe port may differ (e.g. /dev/ttyACM0) — list available ports with:
idf.py -p PORT flash monitoridf.py -p /dev/ttyUSB0 monitorExit the monitor with Ctrl+].