jspobuk: I don't want to sound like I'm stating the obvious, but since you say you're new to it then it may have been overlooked.... make sure the serial bitrate in your serial console is the same as the one in the serial.begin line. Without the code to hand I can't be certain, but I don't think there's any "halts" in the code before the first bit of code you post, and mismatched speeds could be a prime culprit there.
Do you have a project thread or some place you post about what your working on
Unfortunately I don't have a transceiver here.
QuoteUnfortunately I don't have a transceiver here.It's a balanced, multi-drop, open drain link, I doubt it will work without transceivers.______Rob
1. Make sure that the variant files (.c, .h) located in ...\arduino-1.5.2-windows\arduino-1.5.2\hardware\arduino\sam\variants\arduino_due_x\ contains the CAN0 and CAN1 pin definitions.
variant.c CAN Pin Descriptions-Lines 234 and 235 contain CANRX0 (68) and CANTX0 (69) -Lines 281 and 282 contain CANRX1 (88) and CANTX1 (89)-Line 286 contains function call of all pins in CAN0 (90)-Line 288 contains function call of all pins in CAN1 (91)variant.h CAN Pin Definitions- Line 157 defines CANRX (68)- Line 158 defines CANTX (69)- Line 164 defines CAN1RX (88)- Line 165 defines CAN1TX (89)- Line 168 defines PINS_CAN0 (90)- Line 170 defines PINS_CAN1 (91)