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,
Solved! Go to Solution.
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.
Refer to Freescale FAQ-27742 for information on how to integrate your ISR with Processor Expert.
---Tom
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.