mcuboot
mcuboot copied to clipboard
boot: avoid increasing rollback counter during RAM load FW update
When MCUBOOT_RAM_LOAD_REVERT is enabled, the rollback counter must not be incremented until image_ok is set. Otherwise, in the event of a revert, the boot process may become bricked.