I am trying to implement a reliable bootloader system that utilizes the NXP SB2.1 image format. To do this, I need to be able to do the following:
1. Generate an SB2.1 image from the currently-executing program to be stored in off-chip SPI flash for ROM bootloader recovery
2. Decode an SB2.1 image stored in another section of SPI Flash and copy it to the boot space.
I cannot find a way to load an SB2.1 file into the ROM bootloader through anything but the blhost interface, and in my desired implementation I need to do this in software internal to the LPC55.
Is the code for generating/decoding an SB2.1 file available? If so I can write our bootloader code to encode/decode these files.
Thank you!