Secondary bootloader vector table

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

Secondary bootloader vector table

976 Views
wouterdhondt
Contributor I

Working on the PN7462 I'm in the process of creating a secondary bootloader. Right now, I have the bootloader at 0x203000 and the application at 0x209000 . All I do in the secondary bootloader right now is load the stack and application entry addresses, and start the main application using these addresses.

I know the main application is run as I set a LED at startup. So this seems to work fine. The problem starts is when trying to run a real application (e.g. the door access example). The interrupts in the vector table are still pointing to the 0x203000 region, i.e. the secondary bootloader. So of course everything stops working when the first interrupt happens. Is there any way to remap the vector table? Things I've tried:

- loading the vector table in ram, but there is no way to remap the reading to this

- adjust the VTOR (virtual table offset register at 0xE000ED08) but this is read only I believe?

How do you use a full blown application in conjunction with a secondary bootloader?

0 Kudos
1 Reply

613 Views
Kan_Li
NXP TechSupport
NXP TechSupport

PN7462 is based on cortex M0, so it has no VTOR register according to the ARM spec. Please refer to PN7462 UART Bootloader   for more details on this topic.


Have a great day,
Kan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos