Processor Expert - Interrupt Vector Table

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

Processor Expert - Interrupt Vector Table

Jump to solution
2,726 Views
robertp
Contributor II

I have a project using CW IDE 5.7.0 and PE v2.98, I'm developing on an MC9S12C64 @ 32Mhz 

 

I'm doing some "non-standard" things with a project that, for the most part uses standard PE beans.  Specifically, I want to add some interrupt handlers that I control manually (i.e. NOT under PE control).  If I simply add them to vectors.c, then the next build, they get overwritten by PE.  Is there a way to add custom interrupt vectors, or even better specify the NAME of the interrupt handler in some table (i.e. Option 1: default (use the PE defined name) Option 2: use my specified name)

 

Thanks, 

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,164 Views
robertp
Contributor II

This works for MOST vectors, but NOT for the Reset vector.  However, a simple, although, somewhat round about solution for dealing with the reset vector is:

 

In the CPU bean configuration, Build Options tab under User initialization:

in the data declarations, add an extern to the function you WANT as your "reset" vector, e.g.:

 

extern void bootloader(void)

 

in the "user code before PE initialization" add a jump to that function, e.g.:

__asm("jmp bootloader");

 

Simple, but a bit obtuse. 

View solution in original post

0 Kudos
Reply
2 Replies
1,164 Views
J2MEJediMaster
Specialist I

Refer to Freescale FAQ-27742 for information on how to integrate your ISR with Processor Expert.

 

---Tom

0 Kudos
Reply
1,165 Views
robertp
Contributor II

This works for MOST vectors, but NOT for the Reset vector.  However, a simple, although, somewhat round about solution for dealing with the reset vector is:

 

In the CPU bean configuration, Build Options tab under User initialization:

in the data declarations, add an extern to the function you WANT as your "reset" vector, e.g.:

 

extern void bootloader(void)

 

in the "user code before PE initialization" add a jump to that function, e.g.:

__asm("jmp bootloader");

 

Simple, but a bit obtuse. 

0 Kudos
Reply