Skip to content

Commit 7fd75a8

Browse files
SergioGasquezogoffart
authored andcommitted
feat: Use custom runner to flash and update espflash command
1 parent 34face1 commit 7fd75a8

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

examples/mcu-board-support/README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,7 @@ When flashing, with `esplash`, you will be prompted to select a USB port. If thi
180180
To compile and run the demo:
181181

182182
```sh
183-
cargo +esp build -p printerdemo_mcu --target xtensa-esp32s2-none-elf --no-default-features --features=mcu-board-support/esp32-s2-kaluga-1 --release --config examples/mcu-board-support/esp32_s2_kaluga_1/cargo-config.toml
184-
espflash --monitor target/xtensa-esp32s2-none-elf/release/printerdemo_mcu
183+
cargo +esp run -p printerdemo_mcu --target xtensa-esp32s2-none-elf --no-default-features --features=mcu-board-support/esp32-s2-kaluga-1 --release --config examples/mcu-board-support/esp32_s2_kaluga_1/cargo-config.toml
185184
```
186185

187186
The device needs to be connected with the two USB cables (one for power, one for data)
@@ -191,6 +190,5 @@ The device needs to be connected with the two USB cables (one for power, one for
191190
To compile and run the demo:
192191

193192
```sh
194-
cargo +esp build -p printerdemo_mcu --target xtensa-esp32s3-none-elf --no-default-features --features=mcu-board-support/esp32-s3-box --release --config examples/mcu-board-support/esp32_s3_box/cargo-config.toml
195-
espflash --monitor target/xtensa-esp32s3-none-elf/release/printerdemo_mcu
193+
cargo +esp run -p printerdemo_mcu --target xtensa-esp32s3-none-elf --no-default-features --features=mcu-board-support/esp32-s3-box --release --config examples/mcu-board-support/esp32_s3_box/cargo-config.toml
196194
```

examples/mcu-board-support/esp32_s2_kaluga_1/cargo-config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: MIT
33

44
[target.xtensa-esp32s2-none-elf]
5-
runner = "espflash --monitor"
5+
runner = "espflash flash --monitor"
66

77
rustflags = [
88
# Enable the atomic codegen option for Xtensa

examples/mcu-board-support/esp32_s3_box/cargo-config.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: MIT
33

44
[target.xtensa-esp32s3-none-elf]
5-
runner = "espflash --monitor"
5+
runner = "espflash flash --monitor"
66
rustflags = [
77
"-C", "force-frame-pointers",
88
"-C", "link-arg=-nostartfiles",

0 commit comments

Comments
 (0)