Hi
SPI flash recovery feature is used if LPC55S69 doesn’t pass image authentication check (if secure boot enabled) and CRC check (secure boot not enabled). If the internal image is damaged, it can’t pass validation. In this case SPI flash recovery feature can be enabled. The invalid image is hooked by boot not user. If secure boot is enabled, the image stored in 1bit-spi flash must be SB2.1 format. You need check your SPI flash user manual of how to read/write.
SPI flash recovery feature is a feature of LPC55S69 1B device, user decides use it or not.
if the internal flash image is deemed invalid, the device checks the SPI_RECOVERY_BOOT_EN (bits 3:0) in protected flash SPI_FLASH_CFG (0x9E404) to determine if SPI flash recovery is enabled. If SPI flash recovery is enabled, the boot ROM tests SEC_BOOT_EN (bits 31:30) in protected flash SECURE_BOOT_CFG (0x9E41C).
Have a nice day
Jun Zhang