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 !!