Page 1 of 1

How to set ESP boot partition to always remain the same?

Posted: Sun Dec 10, 2023 7:54 pm
by matas_s
I have the following partition structure for my application:
  • Factory partition - my bootloader app that gets flashed in the factory
  • Main firmware partition - my main application
I use factory partition to update main partition, and also for validating the device with the mobile app and backend. However, after it updates main partition it switches to it and remains. What if some error happens and main fw bricks the device?
Soo, obviously I should always boot into factory partition and then make a switch. However, the question is how to set factory partition as the default one.

Re: How to set ESP boot partition to always remain the same?

Posted: Fri Dec 15, 2023 4:33 pm
by ESP_rrtandler
Hi matas_s,

Please take a look to the documentation section dealing with OTA rollback procedure: https://docs.espressif.com/projects/esp ... m/ota.html