05-28-2014 11:06 PM
I'm using microzed as a processor and I want to use it as part of a system.
I'm using CAN (Controller Area Network) as the protocol and now I want to recieve message from other device (at this case im using LPC). I have already get the IC CAN as the reciever. I also have tried to loop back the message using LPC with 2 CAN port (CAN1 -- > IC CAN1 --> CAN BUS --> IC CAN2 --> CAN2).
The problem occurs when I broke the loop back and send the data to microzed. The interrupt for CAN occurs, but it is not Recv interrupt but error interrupt. it said stuff error.
can anyone help?
07-10-2014 03:13 PM
stuff error is an error specific to the CAN bus protocol. I'm not sure how you would fix such an error but you can read about it here http://en.wikipedia.org/wiki/CAN_bus , I'm still trying to get the CAN bus working as well on the Zynq in a normal configuration but can't figure out how to set it to normal mode.
10-13-2018 07:09 PM
zynq> ip link set can0 type can bitrate 500000
zynq> ip link set can0 up
[ 26.624178] xilinx_can e0008000.can can0: timed out for correct mode
[ 26.630502] xilinx_can e0008000.can can0: xcan_chip_start failed!
RTNETLINK answers: Connection timed out
Is your condition the same as my request?
10-14-2018 10:06 PM
Did you refer to https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842496/Linux+CAN+driver for the commands?