![Phytec L-1017e.A3 i.MX 8M Plus Manual Download Page 61](http://html1.mh-extra.com/html/phytec/l-1017e-a3-i-mx-8m-plus/l-1017e-a3-i-mx-8m-plus_manual_1554092061.webp)
L-1017e.A3 i.MX 8M Plus BSP Manual
•
•
CAN FD
The phyBOARD-Pollux two flexCAN interfaces supporting CAN FD. They are supported by the Linux
standard CAN
framework which builds upon then the Linux network layer. Using this framework, the CAN interfaces behave like
an ordinary
Linux
network device, with some additional features special to CAN. More information can be found in
the Linux Kernel documentation:
https://www.kernel.org/doc/html/latest/networking/can.html
Use:
target$ ip link
to see the state of the interfaces. The two CAN interfaces should show up as can0 and ca
n1.
To get information on
can0,
such as bit rate and error counters, type:
target$ ip -d -s link show can0
The information for
can0
will look like:
2
: can0: <NOARP,UP,LOWER_UP,ECHO> mtu
16
qdisc pfifo_fast state UNKNOWN mode DEFAULT
group
default
qlen
10
link/can promiscuity
0
minmtu
0
maxmtu
0
can state ERROR-ACTIVE (berr-counter tx
0
rx
0
) restart-ms
0
bitrate
500000
sample-point
0.875
tq
50
prop-seg
17
phase-seg1
17
phase-seg2
5
sjw
1
mcp25xxfd: tseg1
2
..
256
tseg2
1
..
128
sjw
1
..
128
brp
1
..
256
brp-inc
1
mcp25xxfd: dtseg1
1
..
32
dtseg2
1
..
16
dsjw
1
..
16
dbrp
1
..
256
dbrp-inc
1
clock
20000000
re-started bus-errors arbit-lost error-warn error-pass bus-off
0
0
0
0
0
0
numtxqueues
1
numrxqueues
1
gso_max_size
65536
gso_max_segs
65535
RX: bytes packets errors dropped overrun mcast
0
0
0
0
0
0
TX: bytes packets errors dropped carrier collsns
0
0
0
0
0
0
The output contains a standard set of parameters also shown for Ethernet interfaces, so not all of these are
necessarily relevant for CAN (for example the MAC address). The following output parameters contain useful
information:
Field
Description
can0
Interface Name
NOARP
CAN cannot use ARP protocol