Title: Sitara AM5726 and DCAN2 not working
Description
We’re using the AM5726 Sitara device which has two DCAN modules. We are using the GPIO pins E21 and F20 for the TX and RX signals for DCAN2 on the device.
Once we boot the processor, the ifconfig -a command shows can0 as an available resource. If we set up can0 in loopback mode, we can use cangen and candump to send and receive data. If we turn off loopback, when we use cangen the output on the TX pin is always a fixed pattern no matter how we set the arguments. The pattern is 17 0’s, followed by 15 iterations of “25 1’s followed by 1 0”. The can0 interface goes into the bus-off state after roughly 20ms when using a bitrate of 1000000. If we hook up a Komodo sniffer, we see a number of stuff errors.
How can we get valid CAN data out of the Sitara using DCAN2?