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: 
Visitor juli963
Visitor
815 Views
Registered: ‎12-31-2018

AXI Memory Mapped to PCIe Bus error

Jump to solution

Hi,

I'm trying to get my first PCIe design running.

I'm using a custom Board with an i.MX6 as Processor and a XC7A100T as PCIe Endpoint.

OS is Yocto.

I think it's a pretty easy first Design, I added the AXI Mem Mapped to PCIe and an AXI Bram Controller with BRAM.

My first Goal is to Write and Read data from the BRAM.

 

PCIe.JPG

 

In the Address Editor I set the Offset Address of the BRAM Ctrl to 0x0 and the Range of it is 8k.

Bar0 Size is 8k and AXI-PCIe Bar Translation is 0x0.

Axi to PCIe Translation is 0x0.

constant_0 = 1

constant_1 = 0

 

So I think when I MMap that i should have direct Access to my BRAM without any Offset.

When I execute my Program Linux says Bus error when I start reading a address. I found out that mostly this Error Shows up when Linux is unable to read an Address. But I don't know why the adresses are unavailable.

I attached my code to Access the PCIe Device perhaps there's an Error in it?

 

Thanks and Best Regards,

Julian

0 Kudos
1 Solution

Accepted Solutions
Visitor juli963
Visitor
692 Views
Registered: ‎12-31-2018

Re: AXI Memory Mapped to PCIe Bus error

Jump to solution

I solved my Problem with the following Command:

setpci -s "your pcie device bus number" COMMAND=0x02

I found the solution here

 

Best Regards,

Julian

 

View solution in original post

1 Reply
Visitor juli963
Visitor
693 Views
Registered: ‎12-31-2018

Re: AXI Memory Mapped to PCIe Bus error

Jump to solution

I solved my Problem with the following Command:

setpci -s "your pcie device bus number" COMMAND=0x02

I found the solution here

 

Best Regards,

Julian

 

View solution in original post