imx6ul send flexcan data failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6ul send flexcan data failed

1,459 Views
qinghuazhu
Contributor III

I'm running Linux4.1.15 on imx6ul, compiled by yocto.And I haven't change any code.

After Linux start finished, I just execute commands as below:

root@imx6ulevk:~# canconfig can0 bitrate 500000

can0 bitrate: 500000, sample-point: 0.866

root@imx6ulevk:~# ifconfig can0 up

flexcan 2090000.can can0: writing ctrl=0x03292005

root@imx6ulevk:~# cansend can0 -i 0x750 0x40 0x01 0x3E 0x00 0x00 0x00 0x00 0x00

interface = can0, family = 29, type = 3, proto = 1

root@imx6ulevk:~#

I test CAN1_TX pin of U1201 by oscilloscope, no signal detected.

The same as CAN2_TX of U1202.

Anybody help? Thanks very much.

Labels (3)
0 Kudos
Reply
2 Replies

936 Views
igorpadykov
NXP Employee
NXP Employee

Hi Qinghua

please try loopback test or two board connection as described on

How to enable CAN bus on i.MX6Q SabreSD

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

936 Views
qinghuazhu
Contributor III

Thanks for your help!

But I'm sorry, I still don't understand. I can see can0/can1 now.

Do I have to change some code to enable flexcan now?

0 Kudos
Reply