Interrupt Vectors / CodeWarrior V6.3

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

Interrupt Vectors / CodeWarrior V6.3

1,241件の閲覧回数
MikeDaly
Contributor I
Hello All,
 
I am using CodeWarrior 6.3 with the M5213EVB eval board and have a question on how to properly set up the interrupt vectors.  The project is using the CF_M5213EVB stationery (C) and my build target is M5213EVB Console Debug.  I've modified the vectors.s file by adding:
 
   .extern _CAN_ErrorInterrupt
and
    vector103:  .long   _CAN_ErrorInterrupt
 
I have the "void CAN_Interrupt(void)"  function defined in my C source file.
The project builds OK, but I don't see the ISR listed in the map file and the size of the .vectors area is 0x00.  Does anyone know how resolve this issue or of any examples that would point me in the right direction?
 
Thanks in advance...


 
 
 
ラベル(1)
タグ(1)
0 件の賞賛
1 返信

345件の閲覧回数
mjbcswitzerland
Specialist V
Mike D

In the CW environment you should define the interrupt as
__interrupt__ void CAN_Interrupt(void)
mwerks.h uses the following define:
#define __interrupt__ __declspec(interrupt)
This may be all that you need.

Note that the uTasker project will run on the M5213 (as well as the M5223X) and includes CAN support. See the following: http://www.utasker.com/docs/uTasker/uTaskerCAN.PDF

The uTasker project is free for non-commercial use, including email support.

Regards

0 件の賞賛