• 0
Sign in to follow this  
ariefgrand

Send data to AXI Interfaces in Petalinux

Question

Hi,

 

Does anyone have ever sent data to AXI interfaces without using /dev/mem in Petalinux? I'm curious. I'm sure there is a way but I don't know how and I don't want to use a pointer that opens /dev/mem. I want to send a lot of data to several AXI components in the same time and I think using /dev/mem will give some problem.

 

Thanks for your response.

Edited by Josh
Added Tags

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Yes, it's much better to use a device driver that only give access to the address space attached to your devices.

 

This post talks about how to use UIO (user-space IO) with Petalinux:

    http://svenand.blogdrive.com/archive/203.html#.VR15hJPF9ml

 

Here is another post with a bit more detail about using UIO on Zynq:

   https://fpgacpu.wordpress.com/2013/05/28/how-to-design-and-access-a-memory-mapped-device-part-two/

Share this post


Link to post
Share on other sites
  • 0

hi jamey,

 

thank you very much for your reply.

 

I tried using UIO in Petalinux and IT WORKS using a program based on the example from http://svenand.blogdrive.com/archive/203.html#.VSPCpeqm5pg !! But does it mean that I have to send the data 32-bits by 32-bits? What if I write the data in a file and then send it to /dev/uioX (e.g. using command "cat file.bin > /dev/uioX") ? Is that possible in Petalinux?

Share this post


Link to post
Share on other sites

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
Sign in to follow this