You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use in-app functionality to upload a new firmware OTA and set the boot partition using esp_ota_set_boot_partition this works fine.
Repeated successive OTA updates also work fine, switching back and forth between ota_0 and ota_1.
If however I then flash a new version via UART using the esptool.py, the flash appears to succeed but the active boot partition isn't updated, meaning it boots back to the latest OTA partition.
What can I do about this?
My expectation would be that esptool.py sets the active boot partition to whereever you're flashing to. For backwards compat I suppose this can be off by default, but regarless, a switch to control this or other command would be great.
Thanks
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. Please provide more details or it will be closed if no further activity occurs. Thank you for your contributions.
My device has a factory app partition and two OTA partitions. My partition table looks like this:
Repeatedly flashing new firmware versions works fine:
"C:\.platformio\penv\Scripts\python.exe" "C:\.platformio\packages\tool-esptoolpy\esptool.py" --chip esp32 --port "COM10" --baud 460800 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size 16MB 0x1000 bootloader.bin 0x8000 partitions.bin 0xe000 boot_app0.bin 0x10000 firmware.bin
When I use in-app functionality to upload a new firmware OTA and set the boot partition using
esp_ota_set_boot_partition
this works fine.Repeated successive OTA updates also work fine, switching back and forth between
ota_0
andota_1
.If however I then flash a new version via UART using the
esptool.py
, the flash appears to succeed but the active boot partition isn't updated, meaning it boots back to the latest OTA partition.What can I do about this?
My expectation would be that
esptool.py
sets the active boot partition to whereever you're flashing to. For backwards compat I suppose this can be off by default, but regarless, a switch to control this or other command would be great.Thanks
The text was updated successfully, but these errors were encountered: