cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
3,187 Views
Registered: ‎05-01-2014

CAN Bus on Zynq 7000

Hello all,

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?

 

Thanks before.

0 Kudos
3 Replies
Highlighted
Adventurer
Adventurer
3,064 Views
Registered: ‎04-15-2013

Re: CAN Bus on Zynq 7000

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.

0 Kudos
Highlighted
757 Views
Registered: ‎01-24-2016

Re: CAN Bus on Zynq 7000

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?

0 Kudos
Highlighted
Moderator
Moderator
730 Views
Registered: ‎07-31-2012

Re: CAN Bus on Zynq 7000

Hi 592598248@qq.com,

 

Did you refer to https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842496/Linux+CAN+driver for the commands?

 

Regards

Praveen


-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos