setup and use xgate

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

setup and use xgate

1,682 次查看
mikoran
Contributor II
hi,
how would i setup/configure and use xgate to execute code?
 
in my test module i would like to issue a software request for xgate to execute some code. that code would be to force xgate to have an mpu access violation. and then from there the s12x should handle the interrupt cause by that violation.
 
i really have a hard time working with xgate for this simulation.
 
tnx
标签 (1)
0 项奖励
回复
1 回复

836 次查看
Steve
NXP Employee
NXP Employee
The default CodeWarrior S12X project shows you how to send XGATE a software request. If you are using CodeWarrior then build a new project using the wizard and you will see how to do it. I think Cosmic also have some sample projects showing this.
In principle the XGATE configuration is always the same:

1. Direct the interrupt event to the XGATE.

2. Create a thread to handle the interrupt.

3. Initialize the XGATE interrupt vector table to point to the thread.

If you need detailed instructions on how to do this have a look at AN3144.

0 项奖励
回复