7.4 Bootloader using Backup Image

Hi,

I’d like to use the backup image feature of NET+OS 7.4 so that if an firmware upgrade occurs for some reason, a ConnectME can recover itself automatically (ie, without user intervention).

I’ve uploaded backup.bin and recreated a severe failure (power failure during flash upgrade) but the bootloader does not automatically try to use the backup image. Has anyone used it successfully yet and knows how to force this feature?

Thanks.

Hello

Open up image.bin with a hex editor. Change a couple of bits. update the image.bin on your device with this messed up ime.bin. This will make the CRC check fail when the boot loader goes to use image.bin. The failed CRC check should cause the bootloader to use backup.bin instead.

Did you make sure that BSP_BOOTLOADER_RECOVERY_METHOD is set to BSP_BOOTLOADER_TRY_ALL or BSP_BOOTLOADER_BACKUP_RECOVERY?

Did you make sure to update the boot loader with your own (i.e. that you uploaded rom.bin)?

The backup recovery is the first thing tried (look for shouldExecuteBackupRecoveryImage in src/bsp/customize/blmain.c), so if it’s setup right, and there’s a valid image, it should work.