mirror of
https://github.com/esp-rs/espflash.git
synced 2026-03-13 17:37:49 +00:00
add note about cargo runner
This commit is contained in:
parent
6d91ae204f
commit
885fae07c6
11
README.md
11
README.md
@ -14,6 +14,17 @@ espflash [--ram] <path to serial> <path to elf image>
|
||||
|
||||
when the `--ram` option is specified, the provided elf image will be loaded into ram and executed without touching the flash.
|
||||
|
||||
### As cargo runner
|
||||
|
||||
You can also use `espflash` as a cargo runner by setting
|
||||
|
||||
```
|
||||
[target.'cfg(all(target_arch = "xtensa", target_os = "none"))']
|
||||
runner = "espflash --ram /dev/ttyUSB0"
|
||||
```
|
||||
|
||||
in your `.cargo/config`. Which then allows you to run your project using `xargo run`.
|
||||
|
||||
## License
|
||||
|
||||
Licensed under the GNU General Public License Version 2.
|
||||
Loading…
x
Reference in New Issue
Block a user