AnsweredAssumed Answered

LPC1765 Wakeup on CAN in deep sleep not working

Question asked by sanja behera on May 3, 2018
Latest reply on May 6, 2018 by sanja behera



We are trying to wakeup the LPC1765 controller using CAN activity. We have followed application note to wakeup on CAN 

We are using MCU expresso IDE for our development. As per our observation the device wakes up upon gpio interrupt but does not wakeup on CAN if any CAN packet is sent using PCAN analyzer on the bus. We are able to receive data on CAN RX pin verified using oscilloscope. Still the controller does not wakeup ? Can you please help us if we are missing anything?  As per datasheet, the device should wakeup on CAN activity.

Below is the sample code that we are using to wakeup on CAN. We are using both CAN 1 and CAN2. 


Code running in main.c :-


/* Enable the receive interrupt*/

LPC_CAN1->MOD |= (1 << 4);   //SM bit is set
LPC_CAN2->MOD |= (1 << 4);   //SM bit is set

ISR routine :-

void CANActivity_IRQHandler(void)


 LPC_SYSCTL->CANSLEEPCLR = ( 1 << 1 ) | (1 << 2);

 LPC_CAN1->MOD &= -(1 << 4);
 LPC_CAN2->MOD &= -(1 << 4);
 LPC_SYSCTL->CANWAKEFLAGS = ( 1 << 1 ) | (1 << 2);
 //printf("CAN wakeup\r\n");




Can you please find a solution and let us know the actual issue of wakeup? Waiting for your reply.



Sanja Sameer