Processor Expert - Interrupt Vector Table

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Processor Expert - Interrupt Vector Table

跳至解决方案
2,730 次查看
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, 

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,168 次查看
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 项奖励
回复
2 回复数
1,168 次查看
J2MEJediMaster
Specialist I

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

 

---Tom

0 项奖励
回复
1,169 次查看
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 项奖励
回复