> register is set to the value 0x21 I am seeing can mode getting set to reboot and ICR register is having 0x0030000 values which is nothing but start of frame error.
I suppose that would point to a hardware issue. I am not very proficient with the LPC176x CAN peripherla, though. A CAN node creates an error when it is unable to get a message out, e.g. there is no other device on the bus.
You can try loopback mode (connect Tx and Rx, not sure if it's directly supported by the LPC176x), or connect two devices directly on board logic level (Rx->Tx, Tx->Rx, and GND).
Hi Nxp support team, ...
While some NXP staff members are active here, a lot of posters (like me) are NXP users and volunteers, and not affiliated with NXP. This is an open forum, hosted by NXP.
The main difference is, no answer guaranteed.