setup and use xgate

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

setup and use xgate

1,612件の閲覧回数
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 返信

766件の閲覧回数
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 件の賞賛
返信