Setting up the CAN example (wiring)

28 Oct 2010

Hey all,

I just got an mbed for use on a CAN bus, and I'm having issues getting the example code up and running.

I have the mbed breadboarded, and programmed the example.

I can see LED1 flashing, and i understand that LED2 will flash when it receives a message.

I've tried both p9->p30 and p10->p29 as well as p9->p29 and p10->p30, but neither setup makes LED2 flash.

Looking at the serial output I'm not getting any receives.

What am I doing wrong in this example?

~Alex

28 Oct 2010

How did you connect it to the bus? I hope you know that you need a CAN transceiver?

28 Oct 2010

I thought we could just crossover the CAN buses.  Do we need to use:

 

CAN1 (mbed) -> transciever -> (can bus) -> transceiver -> CAN2 (mbed)

instead of:

CAN1 (mbed) -> CAN2 (mbed)

~Alex

23 Dec 2010

The correct wiring for CAN1 is

P9: rx

P10: tx

and for CAN2

P29:td

P30:rd