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.