MPC5744P Interrupt Vector Remapping

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

MPC5744P Interrupt Vector Remapping

789件の閲覧回数
ChenBowen
Contributor II

Dear team:

     I am working on the development of a CAN bootloader for MPC5744P, and I am referencing an open-source project I found online. Currently, the bootloader program I have developed functions correctly. However, I have a question: when transitioning from the bootloader to the application program, is it necessary to remap the interrupt vectors? If necessary, how is this implemented? The following is the pseudocode for transitioning from the bootloader segment to the application segment in my project:

{

Deinitialize peripherals and clocks;

Clear RAM;

Disable global interrupts;

Jump to the application's entry point using a function pointer.

}

Could you please advise if my approach is correct?

タグ(1)
0 件の賞賛
返信
1 返信

771件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @ChenBowen 

an application will have own interrupt vector table, so yes, it should be remapped. But this should be already done automatically in startup files in SDK project. You should see that core register IVPR is initialized and that VTBA in INTC_IACKR register is initialized.

Or if you create new project in S32DS without SDK, function xcptn_xmpl is called by default in main function which also initializes the interrupts.

You procedure is correct.

Regards,

Lukas

 

0 件の賞賛
返信