imx6Q-CAN driver

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

imx6Q-CAN driver

跳至解决方案
2,456 次查看
创世之枪
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,120 次查看
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,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 项奖励
回复
1,120 次查看
创世之枪
Contributor I

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

0 项奖励
回复
1,120 次查看
igorpadykov
NXP Employee
NXP Employee

for can tester please try procedure given in attached files.

~igor

0 项奖励
回复