iMX28 CAN condition control

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

iMX28 CAN condition control

1,055 次查看
tionpro28
Contributor I

Hi, all!

I code the program for a board on the basis of the Freescale iMX287 processor. The Linux operating system is used with version 2.6.35 kernel.

I use SocketCAN library for work with the CAN module. I connect my board to another CAN device (USB PCAN) and successfully I can send and receive data. But I can't trace a state of the CAN bus.

When I break off the bus, or change baud rate of USB PCAN,  I don't receive any error messages. I’ tried the following commands  to evaluate  the state  of the CAN module:

~$ cat /proc/net/can/rcvlist_all

receive list 'rx_all':

  (any: no entry)

  device   can_id   can_mask  function  userdata   matches  ident

   can0      000    00000000  c038cbf8  c7d59c00        10  raw

  (can1: no entry)

~$ cat /proc/net/can/rcvlist_err

receive list 'rx_err':

  (any: no entry)

  device   can_id   can_mask  function  userdata   matches  ident

   can0      000    00000041  c038cbf8  c7d59c00         0  raw

  (can1: no entry)

The command ip shows the following:

~$ ip -stat link show can0

2: can0: <NOARP,UP,10000> mtu 16 qdisc pfifo_fast qlen 64

    link/[280]

    RX: bytes  packets  errors  dropped overrun mcast  

    0          0        0       0       0       0     

    TX: bytes  packets  errors  dropped carrier collsns

    20         10       0       0       0       0     

Can you please tell what the problem is in?

标签 (1)
0 项奖励
回复
1 回复

789 次查看
alejandrolozan1
NXP Employee
NXP Employee

Hi,

If you check the state of the module by cat /sys/devices/platform/FlexCAN.x/state

Which state does it appear?

Let me try to reproduce the problem. I will see what the problem might be.

Best Regards,

Alejandro

0 项奖励
回复