Forums

Re: CAN RX Interrupt

Started by Jean-Jacques Dauchot December 3, 2007
Hi

I have now discovered that when the CAN Rx interrupt is invoked, it
immediately jumps to the PAbt_Addr interrupt where the program stops

Any clues?

Regards

Jean-Jacques

Hi All

I am slowly and trying implementing a CAN driver for a LPC2294. I have
religiously followed all the examples published by this group and other
and I have a problem within the Rx receive interrupt. It appears that
the interrupt is continuously being called and the system crashes.

The last thing I do is

C4CMR = 0x04 ;
VICVectAddr = 0x0L ;

Is the a bit in the CAN controller I need to reset to clear the
interrupt?

Regards

Jean-Jacques

An Engineer's Guide to the LPC2100 Series

I just checked my own code. All I do in the interrupt is the same as
you - get the address and up to two words of data and set that
'releaseRxBuffer' bit in the CANCMR.

I'm afraid that my CAN Rx interrupt goes to the CAN Rx interrupt
handler .

Your interrupt setup/stack/whatever must be wrong somewhere, as Robert
suggested.

Rgds,
Martin