iMX28 CAN condition control

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

iMX28 CAN condition control

770 Views
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?

Labels (1)
0 Kudos
Reply
1 Reply

504 Views
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 Kudos
Reply