imx6Q-CAN driver

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

imx6Q-CAN driver

Jump to solution
2,454 Views
创世之枪
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~~~~~~~~~~~~~~~~~

Labels (3)
Tags (4)
0 Kudos
Reply
1 Solution
1,118 Views
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!

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

View solution in original post

0 Kudos
Reply
3 Replies
1,119 Views
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 Kudos
Reply
1,118 Views
创世之枪
Contributor I

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

0 Kudos
Reply
1,118 Views
igorpadykov
NXP Employee
NXP Employee

for can tester please try procedure given in attached files.

~igor

0 Kudos
Reply