Fix ota-update example (#4145)

This commit is contained in:
Björn Quentin 2025-09-19 10:11:24 +02:00 committed by GitHub
parent 5e938322f4
commit 37f048f20b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -1,12 +1,12 @@
[target.'cfg(target_arch = "riscv32")']
runner = "espflash flash --monitor --partition-table=partitions.csv"
runner = "espflash flash --monitor --partition-table=examples/ota/update/partitions.csv"
rustflags = [
"-C", "link-arg=-Tlinkall.x",
"-C", "force-frame-pointers",
]
[target.'cfg(target_arch = "xtensa")']
runner = "espflash flash --monitor --partition-table=partitions.csv"
runner = "espflash flash --monitor --partition-table=examples/ota/update/partitions.csv"
rustflags = [
# GNU LD
"-C", "link-arg=-Wl,-Tlinkall.x",

View File

@ -10,11 +10,11 @@
//!
//! ```ignore,bash
//! cargo xtask build examples gpio --chip=esp32
//! espflash save-image --chip=esp32 examples/interrupt/gpio/target/xtensa-esp32-none-elf/release/gpio_interrupt examples/target/ota_image
//! espflash save-image --chip=esp32 target/xtensa-esp32-none-elf/release/gpio_interrupt examples/target/ota_image
//! cargo xtask build examples update --chip=esp32
//! espflash save-image --chip=esp32 examples/ota/update/target/xtensa-esp32-none-elf/release/ota_update examples/target/ota_image
//! espflash save-image --chip=esp32 target/xtensa-esp32-none-elf/release/ota_update examples/target/ota_image
//! cargo xtask build examples update --chip=esp32
//! espflash save-image --chip=esp32 examples/ota/update/target/xtensa-esp32-none-elf/release/ota_update examples/target/ota_image
//! espflash save-image --chip=esp32 target/xtensa-esp32-none-elf/release/ota_update examples/target/ota_image
//! espflash erase-flash
//! cargo xtask run example update --chip=esp32
//! ```