Your wiring seems to be ok now. I tried out the CAN software on my lpc1768 landtiger board with two onboard SN65HVD230 drivers (see http://mbed.org/users/wim/notebook/landtiger-baseboard/)
Communication works as expected. The rderror and tderror are all 0 as long as the CAN network is connected. Values for tderror become somewhat random when I disconnect one of the CAN wires. They seem to slowly countdown and recover when reconnected.
With that result I recommend that you check the wiring for electrical connection. Maybe you have some bad contacts. Try to check directly between mbed pin and contact on the breakout board. Remove power from mbed before conductivity test.
You may also try to measure and check the voltages on the CAN bus H/L and check powersupply voltage for the drivers. You should be able to observe the CAN H/L toggling when you connect TD to gnd or 3V3. Remove mbed pins from driverpins before trying that.
You could also try a direct connection between the mbed pins without using the CAN drivers:
p9 (CAN_RD1 on mbed) to p29 (CAN_TD2 on mbed)
p10 (CAN_TD1 on mbed)to p30 (CAN_RD2 on mbed)
That way you can test the comms and mbed pins. Notice that wires are crossed now.
Lets hope it is wiring and you have not fried mbed or one of the drivers.
I am using mbed with two different CAN transceivers:
(Schematics are in the footer of this post)
with the following wiring:
http://mbed.org/media/uploads/kaspars/2-can-wiring.jpg
and from another view:
http://mbed.org/media/uploads/kaspars/wiring-top.jpg
I am running the CAN loopback example provided in the Handbook: http://mbed.org/handbook/CAN but it never receives the message. I also tried to modify the code in order to see rderror() and tderror() for both can1 and can2 and got the following reading via USB serial:
with the following code:
Import programCAN-node-loop
Testing CAN network with two nodes in loopback
Last commit 07 Jan 2013 by Kaspars D
Questions
What do the tderrors mean?
Things I have already tried