esp-rs / std-training

Embedded Rust on Espressif training material.
https://esp-rs.github.io/std-training
Apache License 2.0
606 stars 78 forks source link

Update runner command to remove `flash`. #183

Closed Dygear closed 1 year ago

Dygear commented 1 year ago

With the flash sub-command, the following error is produced.

     Running `espflash flash --monitor target/riscv32imc-esp-espidf/debug/hardware-check`
New version of espflash is available: v2.0.0-rc.3

Error: espflash::connection_failed

  × Error while connecting to device
  ╰─▶ Serial port not found
  help: Ensure that the device is connected and your host recognizes the serial adapter

This updates all of the .cargo/config.toml files to remove the flash sub-command. This make's it work on macOS and Linux without the error.

Closes: https://github.com/esp-rs/espressif-trainings/issues/182

Dygear commented 1 year ago

Not needed after updating with cargo install espflash@2.0.0-rc.3 --force (Please check that you are running esp flash v2.0 or better if you are having the same issue. Ideally don't update to a pinned version of espflash also.