CAN communication error

For SAMA5D2 Xplained, SAMA5D3 Xplained and SAMA5D4 Xplained

Moderator: nferre

eziya
Posts: 1
Joined: Wed Jan 11, 2017 1:35 pm

CAN communication error

Thu Feb 02, 2017 12:48 am

Hi, All

I tested CAN communication with IXXAT USB-CAN converter.
I brought up CAN interface without problems.

Code: Select all

root@sama5d3-xplained:~# ip link set can0 up type can bitrate 500000 triple-sampling on
at91_can f000c000.can can0: writing AT91_BR: 0x010a0341
IPv6: ADDRCONF(NETDEV_CHANGE): can0: link becomes ready
root@sama5d3-xplained:~# ifconfig
can0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          UP RUNNING NOARP  MTU:16  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:50 
It looks fine but when I tested with IXXAT USB-CAN converter, it returns many errors.

Code: Select all

root@sama5d3-xplained:~# ifconfig
can0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          UP RUNNING NOARP  MTU:16  Metric:1
          RX packets:52294 errors:37 dropped:0 overruns:0 frame:0
          TX packets:0 errors:15 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 
          RX bytes:52987 (51.7 KiB)  TX bytes:0 (0.0 B)
          Interrupt:50 
strange behaviors are when I run candump, candump returns received data
but IXXAT returns OTHER/ACK/STUFF ERROR messages.

I guess that SAMA5D3-XPLAINED board has no termination resistor on CANRX0/CANTX0 port.
If not, do I have to add an additional termination resistor circuit to CANRX0/CANTX0 port?
FYI, I used a demo image from atmel.

Any help or suggestions are welcome.

Return to “SAMA5 Xplained”

Who is online

Users browsing this forum: No registered users and 1 guest