Skip to content

Use custom runner to flash and update espflash command #4186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions examples/mcu-board-support/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,7 @@ When flashing, with `esplash`, you will be prompted to select a USB port. If thi
To compile and run the demo:

```sh
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
espflash --monitor target/xtensa-esp32s2-none-elf/release/printerdemo_mcu
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
```

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

```sh
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
espflash --monitor target/xtensa-esp32s3-none-elf/release/printerdemo_mcu
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
```
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: MIT

[target.xtensa-esp32s2-none-elf]
runner = "espflash --monitor"
runner = "espflash flash --monitor"

rustflags = [
# Enable the atomic codegen option for Xtensa
Expand Down
2 changes: 1 addition & 1 deletion examples/mcu-board-support/esp32_s3_box/cargo-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# SPDX-License-Identifier: MIT

[target.xtensa-esp32s3-none-elf]
runner = "espflash --monitor"
runner = "espflash flash --monitor"
rustflags = [
"-C", "force-frame-pointers",
"-C", "link-arg=-nostartfiles",
Expand Down