Secondary bootloader vector table

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Secondary bootloader vector table

1,592件の閲覧回数
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 件の賞賛
返信
1 返信

1,229件の閲覧回数
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 件の賞賛
返信