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:
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?
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.