patrykk / linux-udoo

Udoo Linux Kernel
Other
29 stars 6 forks source link

How To Use FlexCAN #4

Closed ctassell closed 9 years ago

ctassell commented 9 years ago

I'm trying to get a Udoo Dual to work with a CAN shield, and I was wondering if I need to do any patching to this kernel like seems to be required with the stock kernel in order for the device to work? Also, do I have to do anything on the Arduino side (ie pinMode(60, INPUT);) or will the kernel take care of all of that?

patrykk commented 9 years ago

hi, I don't know. Please read udoo documentation. btw. You couldn't use parallely that same pin on sam and imx.

patrykk commented 9 years ago

Hi, In any case feel free to reopen ticket.

chrta commented 9 years ago

@ctassell Just tested with the current kernel. CAN works out of the box for me. But i configured the connected Arduino pins to inputs to ensure they don't interfere.

patrykk commented 9 years ago

Could you create some howto for other users?

chrta commented 9 years ago

There are some information in the udoo forum: http://www.udoo.org/forum/threads/can-bus-aka-flex-bus.177/ and http://www.udoo.org/forum/threads/can-bus.1066/ I will add some information on how to get up the can interface running here (plus set up the ip interface, how to send a can message, how to receive a message).