CAN interface not working for imx6qsabresd

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN interface not working for imx6qsabresd

1,089 Views
devikar
Contributor II

Hi,

We have setup Yocto project 4.9.11_1.0.0 for imx6qpsabresd and need to test CAN interface.
We have enabled flexcan in the device tree for can0 & can1.

We are trying to test using the below commands, But we are not seeing any data in at CAN1_TX (probed with oscilloscope)
> cansend can0 1F334455#1122334455667788
> cansend can1 1F334455#1122334455667788
> canfdtest -v -g can0

CAN ports are getting registered as below. Below are the messages related to CAN interface when it gets booted.

[ 1.644655] 2090000.flexcan supply xceiver not found, using dummy regulator
[ 1.654151] flexcan 2090000.flexcan: gpr /soc/aips-bus@02000000/iomuxc-gpr@020e0000 req_gpr 0x34 req_bit 28 ack_gpr 0x10 ack_bit 17
[ 1.654213] flexcan 2090000.flexcan: device registered (reg_base=c0b1c000, irq=34)
[ 1.663828] 2094000.flexcan supply xceiver not found, using dummy regulator
[ 1.673309] flexcan 2094000.flexcan: gpr /soc/aips-bus@02000000/iomuxc-gpr@020e0000 req_gpr 0x34 req_bit 29 ack_gpr 0x10 ack_bit 18
[ 1.673368] flexcan 2094000.flexcan: device registered (reg_base=c0b24000, irq=35)
[ 4.744549] can: controller area network core (rev 20120528 abi 9)
[ 4.757293] can: raw protocol (rev 20120528)
[ 4.762501] can: broadcast manager protocol (rev 20161123 t)
[ 4.769161] can: netlink gateway (rev 20130117) max_hops=1

Has anybody tried this and succeeded?
Please let us know how we can validate this with some basic tests.

Regards,

Devika R

0 Kudos
6 Replies

514 Views
adamhuang
Contributor III

IMAGE_INSTALL_append += "libcap iproute2 can-utils "

0 Kudos

768 Views
joanxie
NXP TechSupport
NXP TechSupport

for test on imx6q in yocto, you can refer to the link as below:

Regarding can interface in imx6q sabresd 

for the package you need, you can find them from :

can-utils/README.md at master · linux-can/can-utils · GitHub 

0 Kudos

768 Views
joanxie
NXP TechSupport
NXP TechSupport

pls refer to the chapter 4.6 FlexCAN of enclosed file, to check if you set correct in the kernel

0 Kudos

768 Views
devikar
Contributor II

Hi Joan,

Yes, we have already configured the kernel as per the Linux Reference manual.

0 Kudos

768 Views
joanxie
NXP TechSupport
NXP TechSupport

pls refer to the enclosed file

0 Kudos

768 Views
devikar
Contributor II

Hi ,

The document you have shared is referring to ltib, but we are using yocto.

 In the Yocto project we have setup has only below CAN utilities.

 can-calc-bit-timing

 cangen            

 cansend

 canbusload         

 cangw              

 cansniffer

 candump            

 canlogserver

 canfdtest          

 canplayer

 

 Please let us know how to add other can utilities like cantest,canecho and canconfig in unit test instructions.

 

Thanks

Devika

0 Kudos