Rollback needed, do we really need dual boot banks?
Hi all,
We want to make an application where users can update their devices. We want to rollback if the update failed. For this, we initially took a dual boot bank MCU, the STM32L471RG. But after being busy building a bootloader for it, I don't know if I really need dual boot banks.
I think I can get away with a single boot bank, and defining two blocks of memory as two possible app locations. The bootloader will decide which is the newest, and if it passes CRC check. Or does dual boot banks really makes this easier?
Some questions:
- My bootloader lives at the start of the memory, should it live in both banks, if I would use dual boot bank?
- How to swap banks?
- What about memory offsets? Can we just flash a .bin file with any offset?
- Does dual boot bank supports flashing the same .bin file in both banks without changing offsets?
