Failure recovery stratergy for UART Bootloader- STM32F446RET6
Hi
I have a project with STM32F446RET6 which has custom bootloader and application in user defined location. This project does UART Bootloader for firmware upgrade - issue faced is if the device loses power while in between the firmware upgrade then the device is neither in UART bootloader/DFU mode nor has a valid firmware.
The solution which i want to implement is keeping two image of the application in two slot A and B. Normal working in Slot A and backup in Slot B. Firmware upgrade happens in Slot A and if fails copy the firmware from Slot B otherwise copy Slot A to Slot B.
can anyone provide a simple logic which can be implemented to check if the firmware upgrade is completed and successful in SlotA.
I would not like to add CRC check.
