imx6Q-CAN driver

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,457件の閲覧回数
创世之枪
Contributor I

CPU:IMX6Q

I want to design a bare board can driver, but something goes wrong, and I don't know how to  solve it:

When I loopback CAN1 and CAN2 everything is right!

1.png

But when I disconnect them ,there are bus errors all the time !

2.png

And I can't send or receive any data from other board.

I'm sure the baud rate is right, and the pins are right.

How to config flexcan's registers?

I copy from Linux.

Thx~~~~~~~~~~~~~~~~~

ラベル(3)
タグ(4)
0 件の賞賛
返信
1 解決策
1,121件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi

for bare metal flexcan example one can look at attached sdk example,

with description in Chapter 11 Configuring the FlexCAN Modules

in pdf document.

Best regards

igor

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

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

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

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,122件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi

for bare metal flexcan example one can look at attached sdk example,

with description in Chapter 11 Configuring the FlexCAN Modules

in pdf document.

Best regards

igor

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

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

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

0 件の賞賛
返信
1,121件の閲覧回数
创世之枪
Contributor I

I can loopback CAN1 and CAN2,but there is always bus error when I connect with can tester....

0 件の賞賛
返信
1,121件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

for can tester please try procedure given in attached files.

~igor

0 件の賞賛
返信