I have been building secondary bootloader for lpc55s28 to be able to receive updates. I have been following AN12327 to build my own secondary bootloader. My question is how do I make one bin file that can be booted from either slot? I guess what I mean is position independent code. Or is this unrealistic goal and I should just deliver two update images with SP and PC for both image addresses?
HI EMILY,
I am new for LPC, just wondering how to develop the LPC55S28 secondary bootlaoder.Following AN12327,i can t find any sample of SBL in LPC55S28 SDK packge.AND i am trying to make the LPC55s69 sbl sample works in LPC55S28,is it the way how you make it?
thanks for advantage.
BR
Micy
> My question is how do I make one bin file that can be booted from either slot? I guess what I mean is position independent code. Or is this unrealistic goal and I should just deliver two update images with SP and PC for both image addresses?
I never tried that, and neither heard of any commercial implementation.
I would avoid such an endeavor on an MCU without MMU, I'm not even sure if the toolchains support it all the way through.
You could use a fallback image instead, in case the new version (or the Flash update) fails. Or more than one image versions, all linked to the same start address.