IMX6dual CAN interface

cancel
Showing results for 
Search instead for 
Did you mean: 

IMX6dual CAN interface

1,142 Views
mariyapradeep
Contributor II

Hi,

     I am using imx6 dual wandboard. I wanted to know how we can test the CAN interface. I added the flexcan support in dts and got the can0 interface listed on giving ifconfig. I gave the following commands :

canconfig can0 bitrate 125000
ifconfig can0 up 

cansend can0 -i0x100 11 22 33 44

From " cat /proc/net/can/stats " I got the number of transmitted frames increasing.

Is it possible to see the frames transmitted from board 1 on board 2 ? how to connect two imx6 dual wandboard boards for testing the same?

Thanks in advance 

Labels (3)
0 Kudos
3 Replies

343 Views
mariyapradeep
Contributor II

Hi,

    I connected the CAN_H to CAN_H & CAN_L to CAN_L of two imx6 dual wandboard boards via 60 ohms resistors each and followed the steps as in All boards FlexCAN but still had no frames recieved at board 2. Is there anything missing?

 

Thanks in advance

0 Kudos

343 Views
igorpadykov
NXP TechSupport
NXP TechSupport

what do you mean by "via 60 ohms resistors" ?

This should be termination resistor. Could you check signals

with oscillloscope. Also could you test with nxp reference boards

Sabre AI, as only nxp reference boards supported here, for wandboard boards

one can post on

Wandboard - NXP i.MX6 ARM Cortex-A9 Community Development Board - FORUMS 

It may be useful to look at i.MX6Q Sabre AI dts, pay attention to "can-en", "can-stby"

and associated with them can transceiver signals CAN_EN, CAN_STBY

linux-2.6-imx.git - Freescale i.MX Linux Tree 

linux-2.6-imx.git - Freescale i.MX Linux Tree 

and Chapter 37 FlexCAN Driver attached Linux Manual

Best regards
igor

0 Kudos

343 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi mariyapradeep

please check

All Boards FlexCAN 

imx-test package (/can folder)
www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.4.tar.gz

connection example can be found on

https://community.nxp.com/docs/DOC-104151 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos