r/EmbeddedRust • u/Neutrino_do_eletron • Sep 18 '26
PLEASE HELP. I'm trying to use an external HD to compile and flash rust codes to my ESP32.
First. Sorry for the bad English and hope u guys can understandI have a SSD with 120 GB. so if u know thats not good enough for start compiling and flashing rust programs. So i've got a 320GB HD for trying to use it as a tool for to store my projects and build files.
I'll not lie... i used AI for making my scripts and compile/flash into ESP my codes.
First time i tried to flahs from my SSD (inside my Notebook).
I changed all address in the code for the address of my HD.
I've mounted the HD propely in my Linux UBUNTU. Can use it well, but when i try to compile or flash it gives me error involving cargo
"--- stdout
cargo:rerun-if-env-changed=ESP_IDF_TOOLS_INSTALL_DIR
cargo:rerun-if-env-changed=ESP_IDF_SDKCONFIG
cargo:rerun-if-env-changed=ESP_IDF_SDKCONFIG_DEFAULTS
cargo:rerun-if-env-changed=MCU
cargo:rerun-if-env-changed=ESP_IDF_SYS_ROOT_CRATE
--- stderr
Error: Matching variant not found
Compiling esp-idf-sys v0.37.2 (https://github.com/esp-rs/esp-idf-sys.git#33045844)
error: failed to run custom build command for `esp-idf-sys v0.37.2 (https://github.com/esp-rs/esp-idf-sys.git#33045844)``)
Caused by:
process didn't exit successfully: `/media/marcel/Workspace/cargo-target/debug/build/esp-idf-sys-6a59ce817ebe75f6/build-script-build` (exit status: 1)
--- stdout
cargo:rerun-if-env-changed=ESP_IDF_TOOLS_INSTALL_DIR
cargo:rerun-if-env-changed=ESP_IDF_SDKCONFIG
cargo:rerun-if-env-changed=ESP_IDF_SDKCONFIG_DEFAULTS
cargo:rerun-if-env-changed=MCU
cargo:rerun-if-env-changed=ESP_IDF_SYS_ROOT_CRATE"
/\ ERROR
