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

matas_s
Posts: 3
Joined: Sun Dec 10, 2023 10:11 am

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

Postby matas_s » Sun Dec 10, 2023 7:54 pm

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.

ESP_rrtandler
Posts: 23
Joined: Wed May 31, 2023 6:54 pm

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

Postby ESP_rrtandler » Fri Dec 15, 2023 4:33 pm

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

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 69 guests