From d3a7f8a3e9c2de56fc5d34619c0f4c23ca62c4a1 Mon Sep 17 00:00:00 2001 From: Victoria Fischer Date: Sat, 23 Nov 2024 14:52:04 +0100 Subject: [PATCH] cargo: add esp32s3 as a target, configure espflash to use --no-stub --- .cargo/config.toml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 6065d79..35b899e 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,16 +1,22 @@ [build] -target = "xtensa-esp32-espidf" +target = "xtensa-esp32s3-espidf" + +[target.xtensa-esp32s3-espidf] +linker = "ldproxy" +runner = "espflash flash --monitor --no-stub" # Select this runner for espflash v3.x.x +rustflags = [ "--cfg", "espidf_time64"] # Extending time_t for ESP IDF 5: https://github.com/esp-rs/rust/issues/110 +rust-env = {MCU = "esp32s3"} [target.xtensa-esp32-espidf] linker = "ldproxy" -runner = "espflash flash --monitor" # Select this runner for espflash v3.x.x +runner = "espflash flash --monitor --no-stub" # Select this runner for espflash v3.x.x rustflags = [ "--cfg", "espidf_time64"] # Extending time_t for ESP IDF 5: https://github.com/esp-rs/rust/issues/110 +rust-env = {MCU = "esp32"} [unstable] build-std = ["std", "panic_abort"] [env] -MCU="esp32" # Note: this variable is not used by the pio builder (`cargo build --features pio`) ESP_IDF_VERSION = "v5.2.2"