DualBoot on LPC55s28

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

DualBoot on LPC55s28

1,222 次查看
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 项奖励
回复
3 回复数

378 次查看
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 项奖励
回复

1,168 次查看
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 项奖励
回复

1,181 次查看
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 项奖励
回复