Goodmorning,
Yes i tried that with no success either. In the interrupt vector table (const tIsrFunc _InterruptVectorTable[120] @0x00000000) it has added my interrupt routine isrRTI.
This is how the RTI is set up:
void RTI1_Init(void){ /* SRTISC: RTIF=0,RTIACK=1,RTICLKS=1,RTIE=1,??=0,RTIS2=1,RTIS1=1,RTIS0=0 */ setReg8(SRTISC, 0x76); }
and in events.c i have the following defined:
ISR(isrRTI){ // NOTE: The routine should include the following actions to obtain // correct functionality of the hardware. // // You should write 1 to RTIACK to clear RTIF. Writing 0 has no meaning or effect. // Example: SRTISC_RTIACK = 1; SRTISC_RTIACK = 1; }
However, if i add a breakpoint on SRTISC_RTIACK i never get a break.
I also made sure that i have not masked any interrupt level out in the debugger eg. the mask interrupt checkbox is unchecked.
I do not understand why it is such a problem to make a simple isr on coldfire? Until now we've been using the HCS08 QE128 and QG8 where i just do this to add an isr:
interrupt VectorNumber_rti void isrRTI(){}
Is it not possible todo the same thing on coldfire V1's?