EmbeddedRelated.com
Forums

LPC2129 (SW)-CANBus Error troubleshooting: RX Passive Error, REC = 128

Started by lawzaz April 7, 2013
On 08.04.2013 21:14, lawzaz wrote:
> ... CANL to GND and reading CANH should
> work.

In theory yes. But then you have really small error margin.

> What are some next debug steps to try? It could be that 3V3 isn't high
> enough for CANH, but the TH8056 datasheet (the existing devices use
> these) specifies that it is 3V3 and 5V compatible.

Threshold is the relevant item. Bus voltage must be at least 2.2V for
TH8056 to read dominant state.

> Do my settings for C2BTR look OK (0x3E005A)? Is there a way to
> "silently" join the BUS?

If you had a scope, the baud rate would be very easy to check. You can
silently listen the bus by programming CAN TX line as always high (with
GPIO).

--

Timo

An Engineer's Guide to the LPC2100 Series