Jump to content
  • 0

Send data to AXI Interfaces in Petalinux


ariefgrand

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.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

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/

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...