Closed phemmer closed 4 months ago
Hi! cargo-espflash
cant be used as a Cargo custom runner, if you do cargo espflash flash --monitor
it will build, flash and monitor. cargo espflash
basically adds espflash
the building features. Hence, if you want to use a custom runner, use espflash
.
However the "Rust on ESP book" says that cargo-espflash should be preferred.
Can you point me to where this is in the book?
https://esp-rs.github.io/book/troubleshooting/espflash.html
You should also prefer using
cargo-espflash
overespflash
.
That statement does not apply to you:
This is not your case, you are not building an esp-idf-sys
based project.
I will close the issue, should you have more questions feel free to post them here or in the matrix room
Using the template
esp-rs/esp-template
to create a project defaults to usingespflash
. However the "Rust on ESP book" says thatcargo-espflash
should be preferred. After installingcargo-espflash
and trying to switch to it, it generates an error:From the following runner config in
config.toml
:Looking at the
--help
of the two commands, it seems there is a difference in thatespflash
takes a path to an image as a positional argument, whilecargo-espflash
does not. It also does not appear that any of the flags (e.g.--bin
) accept the path thatcargo
gives it.Can we get some documentation on how to properly integrate
cargo-espflash
into the cargo config as a runner?