Failed CAN communication on imx6ul.

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

Failed CAN communication on imx6ul.

1,595 Views
surendradhobale
Contributor III

Hello,

    We are trying to do the can communication on the imx6ul based custom board. But communication is not happening.

As imx6ul has inbuild flexcan controller, we are using the flexcan driver.( i tried on linux kernel 4..1.15 and 4.9 also)

Driver is loaded/probe correctly.

Unable to receive/transmit data with vector CAN alyser.

To check the issue, we are trying to transmit the data from the controller using the cansend utitity.

   root@NEW123454:~ # ip link set can1 up type can bitrate 125000

   root@NEW123454:~ # cansend can1 500#01.02.03.04

but unable to receive the data on vector CANAlyzer device and getting the stuff error.

To dig down, we made the internal loopback using

  root@NEW123454:~ # ip link set can1 up type can bitrate 125000 loopback on

and checked the candump for same port. able to receive the same frame. ( but its internal only)

Now we are looking to isolate the can transreceiver ( we remove the transreceiver) and loopback external controller pins CAN_TX and CAN_RX. but not getting the CAN message.

We have checked the pattern on the oscilloscope but not getting the correct pattern.

What need to be check that controller properly transferring the CAN frame correctly ?  What could be the problem?

Thanks for valuable help !!

Regards,

Surendra

Labels (3)
0 Kudos
8 Replies

1,114 Views
surendradhobale
Contributor III

This issue is resolved. There was connectivity problem of RX line.

0 Kudos

1,114 Views
igorpadykov
NXP Employee
NXP Employee

Hi Surendra

one can try with cantest and unit tests:

imx-test( /can folder)
www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz

and with two boards. Using transceiver it is necessary to verify to wake up

phy, this may be reason that one couldn't see the signal.

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

0 Kudos

1,114 Views
surendradhobale
Contributor III

Hello igor,

In your comment, you mentioned "Using transreceiver it is necessary to verify to wake up

phy, this may be reason that one couldn't see the signal"

How to do this ? , Sry but i dont have idea about this.

( Now we are able to communivation with can with our same previous procdure, but root cause is not found)

So now i am also suspecting that, transreceiver is in sleep/supsend mode and after wake up atomaticaly starts.

So how to check up the phy wake up or not ?

Thanks for your valuable reply.

0 Kudos

1,114 Views
igorpadykov
NXP Employee
NXP Employee

Hi Surendra

for phy one can check its "stby" signal (or similar).

Best regards
igor

0 Kudos

1,114 Views
surendradhobale
Contributor III

Hello igor,

   Thanks.. I have downloaded the imx-test-5.7.tar.gz.

inside this test/can/ only doc files are available. How to run this imx-test for can.

I have filesystem generated by buildroot and all packages of can-utils and libsocket can.

How to make the loopback without transreceiver i.e loopback of can_tx and can_rx pins?

0 Kudos

1,114 Views
igorpadykov
NXP Employee
NXP Employee
0 Kudos

1,114 Views
surendradhobale
Contributor III

Hello igor,

   Thanks !! I am usning the imx6ul based Technexion hobbit board  for referance. So these images will not work on same. Iam usning 4.1.15 bsp itself for the hobbit board.

Is there any other way to test the flexcan ? 

0 Kudos

1,114 Views
igorpadykov
NXP Employee
NXP Employee

Hi Surendra

one can test these images with i.MX6UL EVK

i.MX6UltraLite Evaluation Kit|NXP 

Best regards
igor

0 Kudos