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

Runner script target doesn't want/need `flash`. #182

Closed Dygear closed 1 year ago

Dygear commented 1 year ago

In the .cargo/config.toml file under each intro project, the runner script is defined as runner = "espflash flash --monitor" , but only works for me once I remote the flash part (e.g. runner = "espflash --monitor"). I have tried this on Linux and now this morning macOS. Once I remove that it works without problems. Should this perhaps be removed by default?

SergioGasquez commented 1 year ago

You are probably using espflash 1.X, update it to 2.0: cargo install espflash@2.0.0-rc.3 --force. Even if its a release candidate, it works better than 1.X, and we are working on the release, sorry for the inconveniences!

Dygear commented 1 year ago

Oh. That's interesting! I didn't know that the espflash crate needed an update to an rc build. It indeeds works without needing to change any of the files in the care after that update. That change closes this.