DualBoot on LPC55s28

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DualBoot on LPC55s28

1,224 Views
EmilL
Contributor I

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?

0 Kudos
Reply
3 Replies

380 Views
micy-M
Contributor I

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

0 Kudos
Reply

1,170 Views
frank_m
Senior Contributor III

> 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.

0 Kudos
Reply

1,183 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @EmilL 

The bootloader boot image refer to Version in image header:

Alice_Yang_0-1694590530243.png

You can refer to boot flow:

Alice_Yang_1-1694590633740.png

 

BR

Alice

 

0 Kudos
Reply