UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer torokb
Observer
3,005 Views
Registered: ‎05-31-2012

canps driver problem

Jump to solution

Hello everyone!

 

I work with Xilinx SDK 2016.3. This environment offers canps_v3_1 driver for the can bus peripherals of the zynq-7000 devices. The previous version of this driver (canps_v3_0) worked well, but now I am stucked. The difference is in the source file "xcanps.c". There is an undocumented change in the function: XCanPs_Send, about some endianness of the frame data. Lines 495 and 497.

 

Has anyone information about this change??

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
5,074 Views
Registered: ‎07-31-2012

Re: canps driver problem

Jump to solution

Hi,

 

It has been reported to update in change log of  driver abourt "Xil_EndianSwap32 - 32 bit conversion" .

 

Regards

Praveen


-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
4 Replies
Moderator
Moderator
2,859 Views
Registered: ‎07-31-2012

Re: canps driver problem

Jump to solution

Hi,

 

Xil_EndianSwap32 - 32 bit conversion is applied on reading the DW1 and DW2 of CAN.

Could you let us know what exactly is not working and which version of tool are using?

 

Regards

Praveen


-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Observer torokb
Observer
2,789 Views
Registered: ‎05-31-2012

Re: canps driver problem

Jump to solution

The version of the can_ps driver is in my first post. I am using SDK 2016.3

 

In my project, I use a zynq device to communicate with a third party PLC over CAN bus. The communication failed with the new version of the can_ps driver. The problem is worked around by now, but I can not see why this "Xil_EndianSwap32 - 32 bit conversion" is undocumented in the change log of the device driver.

0 Kudos
Moderator
Moderator
5,075 Views
Registered: ‎07-31-2012

Re: canps driver problem

Jump to solution

Hi,

 

It has been reported to update in change log of  driver abourt "Xil_EndianSwap32 - 32 bit conversion" .

 

Regards

Praveen


-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Observer torokb
Observer
2,771 Views
Registered: ‎05-31-2012

Re: canps driver problem

Jump to solution

Thank you!

0 Kudos