TS-7400 V2 CAN

From embeddedTS Manuals
Revision as of 18:03, 19 December 2013 by Kris (talk | contribs) (Created page with "The TS-7400 i.MX286 CPU has two FlexCAN ports that use the linux SocketCAN implementation. Please note that the TS-7400_V2 does not have CAN transceivers, these will need to ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The TS-7400 i.MX286 CPU has two FlexCAN ports that use the linux SocketCAN implementation. Please note that the TS-7400_V2 does not have CAN transceivers, these will need to be supplied externally and connected to the CAN pins on the expansion header. The ports can be set up and used with the following commands:

devmem 0x80018110 32 0x3ff5f5f
#Note that this is only necessary on the October 2, 2013 TS-7670 image.
modprobe flexcan
ifconfig can0 up
ifconfig can1 up


At this point the ports can be used with standard SocketCAN libraries. In debian we provide cansend and candump to test the ports or as a simple packet send/recv tool. In order to test the two ports together, tie CAN_H of both CAN ports together, and do the same for CAN_L. Then use the following commands:

candump can0 &
cansend can1 123#DEADBEEF
#This command will return
  can0  123  [4] DE AD BE EF


See the SocketCAN webpage for more information on utilizing SocketCAN.