Jump to content
  • 0

PMOD CAN


Enthusiastic

Question

Hello everyone,

I am trying to establish a CAN connection between 2 FPGA boards (Zedboard and GenesysZU 3EG) using 2 PMOD CANs. 

I have used Zynq7 and Zynq Ultrascale+ MPSOC. One of the boards is a transmitter and hence is running the TX.c code from the given examples and the other board is running the RX.c code. When both the codes are run as is, the reception of the message does not occur. And the sending also stops after 1 iteration (perhaps some of the flags are not getting cleared correctly). However, when I change the configuration of the PMOD CAN to CAN_ModeListenOnly from CAN_ModeNormalOpertion in the RX.c code, I am able to receive the sent message, which is getting printed multiple times and the message being received is not the same as the message being sent. All the fields are different including the message ID and dlc. Also, the multiple messages printed are not consistent with each other. Attaching the screenshots of the sending and receiving serial port outputs for your reference. Could this be due to different endianness of the two processors used on the two different boards?

image.thumb.png.e2fd0baa97a61c168f86041325e71284.pngimage.png.2627f704e6ebadea77579f77cc5cdf26.png

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...