imx6ul send flexcan data failed

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx6ul send flexcan data failed

1,958件の閲覧回数
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.

ラベル(3)
0 件の賞賛
返信
2 返答(返信)

1,435件の閲覧回数
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 件の賞賛
返信

1,435件の閲覧回数
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 件の賞賛
返信