AnsweredAssumed Answered

Problem to receive frames CAN in IMX6q-sdb

Question asked by MAAOUNI YOUNES on Jul 13, 2015
Latest reply on May 21, 2016 by zhen li

hello,

I am trying to connect 2 freescale board through CAN bus (output J10). At first , I installed drivers can, can-dev, can-raw, flexcan.

then, I have done the configuration of the CAN nework, however as you can see on the display all my frames are droped.

please help me to successfully connect these boards.

 

ip link set can0 up type can bitrate 125000

flexcan 2090000.flexcan can0: writing ctrl=0x0e312055

flexcan 2090000.flexcan can0: flexcan_set_bittiming: mcr=0x5980000f ctrl=5

flexcan 2090000.flexcan can0: flexcan_chip_start: writing mcr=0x79a20208

flexcan 2090000.flexcan can0: flexcan_chip_start: writing ctrl=0x0e31ac55

flexcan 2090000.flexcan can0: flexcan_chip_start: reading mcr=0x60a20208 5

 

root@rt-imx6q-sabresd:~# cansend can0 100#11.22.33.44

 

root@rt-imx6q-sabresd:~# ip -det -sta link show can0

2: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN m0

    link/can  promiscuity 0

    can state ERROR-ACTIVE (berr-counter tx 0 rx 0) restart-ms 0

          bitrate 125000 sample-point 0.875

          tq 500 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1

          flexcan: tseg1 4..16 tseg2 2..8 sjw 1..4 brp 1..256 brp-inc 1

          clock 30000000

          re-started bus-errors arbit-lost error-warn error-pass bus-off

          0          0          0          0          0          0      

    RX: bytes  packets  errors  dropped overrun mcast 

                   0          0        0       0       0       0    

    TX: bytes  packets  errors  dropped carrier collsns

                   0          0        0       3       0       0    

Outcomes