How to configure and relocate the interrupt vector table for S12ZVC

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

How to configure and relocate the interrupt vector table for S12ZVC

678 Views
joophliu
Contributor III

HI:
     I use S12ZVC,  I don't want bootloader and app use the same Interrupt Vector table,so i Relocating app interrupt vector table at other address:0xFF9000-0xFF92EF.
     1.I modify the PRM file,Reallocation of address:
       APP: 0xFE0000-0xFF8FFF;
       APP interrupt mapping: 0xff9000-0xff92ef;
       Boot: 0xff9400-0xffddff;
       Boot interrupt mapping :Default interrupt vector address (memory end);


     2.Relocating interrupt vector address:
       1.jpg
     3.Relocating Reset Vector address:
       2.jpg
     4.Set IVBR REG:0xFF90:
       3.jpg
     5.Modify APP's RPM :
       4.jpg
       
     6.Debug issue problem:
       debug by step,the program run at MainLoop() leave,can not run correctly....

        6.jpg

  • Is there any problem with the  configuration?

0 Kudos
1 Reply

493 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

I have noticed one thing, you set IVBR = 0xFF9000.

And reset vector at 0xFF8FF8.

pastedImage_2.png

It should be 0xFF91FC. Can you please try it?

Regards,

Daniel

0 Kudos