shanemmattner / ESP32-C3_Rust_Tutorials

MIT License
65 stars 4 forks source link

Update build command to use `espflash flash` instead of just `espflash` #6

Closed ChocolateLoverRaj closed 9 months ago

ChocolateLoverRaj commented 9 months ago

Without this change I get this error:

   Compiling input v0.1.0 (/var/home/rajas/Documents/ESP32-C3_Rust_Tutorials/Tutorials/p0-output)
    Finished dev [optimized + debuginfo] target(s) in 0.87s
     Running `espflash --monitor target/riscv32imc-esp-espidf/debug/input`
error: unexpected argument '--monitor' found

Usage: espflash <COMMAND>

For more information, try '--help'.

Seems like espflash v2 changed its CLI More information: https://github.com/esp-rs/esp-idf-template/blob/f83d638cec6eee8b00de86ad88350f5ec7ce3186/cargo/.cargo/config.toml#L6-L7