AnsweredAssumed Answered

LPC1769  CAN_IRQHandler bug

Question asked by Kuldeep kumar on Dec 26, 2017
Latest reply on Jan 7, 2018 by Kerry Zhou

Hi, everyone.

 

I've just started working on LPC1769 on an custom board and I am having problems getting the CAN BUS to work using the drivers.

 

After some research here I've read that the drivers has a lot of bugs, and the links I've found pointing to new drivers always redirect to home in LPCware.com.

 

I am using CAN2 in LPC1769

Pins :
      LPC_SC->PCONP |= 1<<14;  /* Enable CAN2 */
      LPC_PINCON->PINSEL4 &= ~0x0003C000;       /* CAN2 is p2.7 and p2.8 */
      LPC_PINCON->PINSEL4 |= 0x00014000;

 

I have enabled the Receive interrupt

 

 CANx->IER = 0x01; /* Enable receive interrupts */
  NVIC_EnableIRQ(CAN_IRQn);

 

 

I am able to transmit and receive data. But during reception the control is not entering into CAN_IRQ_Handler.

I could verify the received data through the Receive buffer registers.

 

 

Please help me to resolve this issue.

Thanks in advance.

 

 

Outcomes