LPC54606 Second boot loader and FW version control

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

LPC54606 Second boot loader and FW version control

666 Views
luimarma
Contributor III

Hi,

I am developing an OTA firmware updater based on second boot loader described on AN12384 for LPC5460X family of micro controllers.

In the SBL I want to implement a FW version checking routine.

In AN12384 it is said that Arm reserves 256 vectors for Cortex-M4's vector table with 1KB memory space, and that in the case of LPC54608 only the first 73 are used, so the last 32 bytes of this vector table space is a good place to store user information, like in my case the version number or the firmware.

My problem comes when I inspect the contents of any .bin file generated with MCUxpresso for lpc 5460X, the full vector table contains information.

Is there any aplication note where I can find detailed information of the vector table for LPC54606?

Where is the best place to fit this kind of user information in o .bin rom file?

Many thanks in advance,

 

Luis

0 Kudos
Reply
4 Replies

615 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @luimarma 

How about add your own information behind the interrupt vector table:

Alice_Yang_0-1706154720880.png

 

BR

Alice

 

608 Views
luimarma
Contributor III

Hello Alice,

I understand that this would act like a function or so, and this is not what I need.

I need a free space in the first 1024 bytes of the firmware to check for firware name and version by the second boot loader, so It can be reported that FW is older than the flashed one.

Please correct me if I am wrong with my thinking.

Thanks in advance,

Luis

0 Kudos
Reply

503 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @luimarma 

Yes, you can find some bytes that not used to use as image version.

 

BR

Alice

0 Kudos
Reply

609 Views
luimarma
Contributor III
Thank you, I am trying and let you know
0 Kudos
Reply