MPC5744P Interrupt Vector Remapping

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

MPC5744P Interrupt Vector Remapping

187 Views
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?

Tags (1)
0 Kudos
1 Reply

169 Views
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 Kudos