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
Newbie cihstar
Newbie
2,829 Views
Registered: ‎03-21-2017

Issue accessing custom AXI Peripheral in petalinux

Jump to solution

I have created a custom AXI peripheral (servoControl) and I am attempting to read/write to the registers in petalinux. The AXI GPIO and DMA modules both work correctly, however.

axi-system.JPG

 

Running devmem on the physical memory location of the AXI slave produces the following result. The same error message is produced when trying to mmap the device in a program. 

 

root@plnx_arm:~# devmem 0x43c10000
Unhandled fault: external abort on non-linefetch (0x018) at 0xb6ff5000
pgd = dc0b4000
[b6ff5000] *pgd=1bae0831, *pte=43c10783, *ppte=43c10e33
Bus error

 

In addition, the memory location is not recognised when running md from the u-boot command line.

 

Zynq> md 43c10000 8
43c10000:data abort
pc : [<1ff91c9c>]          lr : [<1ff91c74>]
reloc pc : [<00439c9c>]    lr : [<00439c74>]
sp : 1f337cf8  ip : 00000030     fp : 43c10000
r10: 00000004  r9 : 1f337ef0     r8 : 43c10000
r7 : 00000000  r6 : 00000004     r5 : 00000004  r4 : 00000008
r3 : 1ffa84aa  r2 : 0000080a     r1 : 1f337d0c  r0 : 00000009
Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

 

The same result has been produced when setting the device as uio, as well as using /dev/mem

 

Any help would be greatly appreciated as to why we cannot access our AXI device!

0 Kudos
1 Solution

Accepted Solutions
Newbie cihstar
Newbie
4,946 Views
Registered: ‎03-21-2017

Re: Issue accessing custom AXI Peripheral in petalinux

Jump to solution
We noticed that we were running petalinux-package with an old version of the bitstream, so the device tree had an entry for the device but it was not present in hardware. With the updated version, the prehipheral works correctly. Thanks for your help.
0 Kudos
3 Replies
Xilinx Employee
Xilinx Employee
2,789 Views
Registered: ‎07-23-2012

Re: Issue accessing custom AXI Peripheral in petalinux

Jump to solution
Did you check dts to see if the custom peripheral is present or not?
-----------------------------------------------------------------------------------------------
Please mark the post as "Accept as solution" if the information provided answers your query/resolves your issue.

Give Kudos to a post which you think is helpful.
0 Kudos
Newbie cihstar
Newbie
4,947 Views
Registered: ‎03-21-2017

Re: Issue accessing custom AXI Peripheral in petalinux

Jump to solution
We noticed that we were running petalinux-package with an old version of the bitstream, so the device tree had an entry for the device but it was not present in hardware. With the updated version, the prehipheral works correctly. Thanks for your help.
0 Kudos
Visitor thiruparan
Visitor
319 Views
Registered: ‎11-09-2018

Re: Issue accessing custom AXI Peripheral in petalinux

Jump to solution

how did you created driver and device tree. i am trying create driver for a custom IP which is connected through axi interconnect , how should device tree should look like 

0 Kudos