[build]
target = "riscv32imac-esp-espidf"
[target.riscv32imac-esp-espidf]
linker = "ldproxy"
# `flash.sh` rather than espflash directly: OTA needs a partition table, our
# own bootloader (rollback is a bootloader feature) and an otadata erase, and
# the bootloader's path contains a content hash embuild picks — so it has to be
# resolved at flash time rather than written down here.
runner = "./flash.sh"
rustflags = ["--cfg", "espidf_time64", "-C", "default-linker-libraries"]
[unstable]
build-std = ["std", "panic_abort"]
[env]
# embuild derives the "workspace dir" by popping 6 path components off OUT_DIR
# (embuild-0.33.3/src/cargo.rs:438), which assumes cargo's old
# `target/<triple>/<profile>/build/<pkg>-<hash>/out` layout. Modern cargo nests
# it as `build/<pkg>/<hash>/out` — one level deeper — so it lands on `target/`,
# looks for `target/sdkconfig.defaults`, finds nothing, and SILENTLY ignores our
# sdkconfig.defaults. That left the main task stack at the 3584 default and the
# app died with a stack protection fault on boot. embuild checks this var first.
CARGO_WORKSPACE_DIR = { value = ".", relative = true }
MCU="esp32c6"
# Note: this variable is not used by the pio builder (`cargo build --features pio`)
# ESP32-C6 support requires ESP-IDF v5.1 or newer; esp-idf-hal 0.46 requires v5.2+
# (it references pcnt intr_priority and rmt queue_non_blocking, both added in 5.2).
ESP_IDF_VERSION = "v5.2.3"
ESP_IDF_TOOLS_INSTALL_DIR = { value = "global" } # add this line
neiam
/lambent-flex-c6
public · Issues · Pulls · Labels · Forks · Compare · Actions success · Badges · Packages
⭐
Log in to mark this repository.
1.5 KiB · text
History
9d79b3d