-
Notifications
You must be signed in to change notification settings - Fork 118
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
Flash application binary into specified partition #459
Labels
enhancement
New feature or request
Comments
jnross
added a commit
to junelife/espflash
that referenced
this issue
Aug 21, 2023
jnross
added a commit
to junelife/espflash
that referenced
this issue
Aug 22, 2023
jnross
added a commit
to junelife/espflash
that referenced
this issue
Aug 22, 2023
jnross
added a commit
to junelife/espflash
that referenced
this issue
Aug 22, 2023
jnross
added a commit
to junelife/espflash
that referenced
this issue
Aug 22, 2023
jnross
added a commit
to junelife/espflash
that referenced
this issue
Aug 24, 2023
# Conflicts: # cargo-espflash/src/main.rs # espflash/src/bin/espflash.rs # espflash/src/cli/mod.rs # espflash/src/flasher/mod.rs # espflash/src/image_format/idf_bootloader.rs # espflash/src/targets/esp32.rs # espflash/src/targets/esp32c2.rs # espflash/src/targets/esp32c3.rs # espflash/src/targets/esp32c6.rs # espflash/src/targets/esp32h2.rs # espflash/src/targets/esp32s2.rs # espflash/src/targets/esp32s3.rs # espflash/src/targets/esp8266.rs # espflash/src/targets/mod.rs
jnross
added a commit
to junelife/espflash
that referenced
this issue
Aug 25, 2023
# Conflicts: # cargo-espflash/src/main.rs # espflash/src/bin/espflash.rs # espflash/src/cli/mod.rs # espflash/src/flasher/mod.rs # espflash/src/image_format/idf_bootloader.rs # espflash/src/targets/esp32.rs # espflash/src/targets/esp32c2.rs # espflash/src/targets/esp32c3.rs # espflash/src/targets/esp32c6.rs # espflash/src/targets/esp32h2.rs # espflash/src/targets/esp32s2.rs # espflash/src/targets/esp32s3.rs # espflash/src/targets/esp8266.rs # espflash/src/targets/mod.rs
jnross
added a commit
to junelife/espflash
that referenced
this issue
Sep 12, 2023
# Conflicts: # cargo-espflash/src/main.rs # espflash/src/bin/espflash.rs # espflash/src/cli/mod.rs # espflash/src/flasher/mod.rs # espflash/src/image_format/idf_bootloader.rs # espflash/src/targets/esp32.rs # espflash/src/targets/esp32c2.rs # espflash/src/targets/esp32c3.rs # espflash/src/targets/esp32c6.rs # espflash/src/targets/esp32h2.rs # espflash/src/targets/esp32s2.rs # espflash/src/targets/esp32s3.rs # espflash/src/targets/esp8266.rs # espflash/src/targets/mod.rs
jnross
added a commit
to junelife/espflash
that referenced
this issue
Nov 2, 2023
# Conflicts: # cargo-espflash/src/main.rs # espflash/src/bin/espflash.rs # espflash/src/cli/mod.rs # espflash/src/flasher/mod.rs # espflash/src/image_format/idf_bootloader.rs # espflash/src/targets/esp32.rs # espflash/src/targets/esp32c2.rs # espflash/src/targets/esp32c3.rs # espflash/src/targets/esp32c6.rs # espflash/src/targets/esp32h2.rs # espflash/src/targets/esp32s2.rs # espflash/src/targets/esp32s3.rs # espflash/src/targets/esp8266.rs # espflash/src/targets/mod.rs
SergioGasquez
pushed a commit
that referenced
this issue
Nov 4, 2023
* Add `--target-app-partition` argument to flash command. (For #459) # Conflicts: # cargo-espflash/src/main.rs # espflash/src/bin/espflash.rs # espflash/src/cli/mod.rs # espflash/src/flasher/mod.rs # espflash/src/image_format/idf_bootloader.rs # espflash/src/targets/esp32.rs # espflash/src/targets/esp32c2.rs # espflash/src/targets/esp32c3.rs # espflash/src/targets/esp32c6.rs # espflash/src/targets/esp32h2.rs # espflash/src/targets/esp32s2.rs # espflash/src/targets/esp32s3.rs # espflash/src/targets/esp8266.rs # espflash/src/targets/mod.rs * Update CHANGELOG.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In our use of ESP32-S3, we specify three app partitions. One is a small factory partition that we use for factory reset and recovery, and the other two are OTA partitions we use for running our main application and updating in an A->B fashion.
By default
cargo-espflash flash
(andespflash flash
) look at the provided partition table and flash the application from the provided (or built) ELF file into the first app partition found. This usually results in an error in our case because the application we are flashing doesn't fit into the factory app partition.We're able to work around this by building separately, converting the ELF to a .bin, and then using
write-bin
, but it makes our tools more complicated and fragile.I know not everyone is using three apps like this, but I bet there are others interested in targeting either the
ota_0
orota_1
partition when flashing a binary.The text was updated successfully, but these errors were encountered: