cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
713 Views
Registered: ‎08-05-2019

Zynq throws bus error when doing memory read on memory mapped peripherals

Hello,

I am trying a simple loop back system with AXI-DMA. I created the PL block using the example give AXI DMA in Vivado. The memory assigned to AXI lite is at 0x40400000.

 

A simple devmem access to the status register given the following errors:

 devmem 0x40400004
Unhandled fault: external abort on non-linefetch (0x018) at 0xb6fa2004
pgd = dde10000
[b6fa2004] *pgd=1e5c0831, *pte=40400783, *ppte=40400e33
Bus error

After this failure I tried to access these memory from uboot using md command. The resulting failure is given below:

zynq-uboot> md 0x40400004
40400004:data abort
pc : [<1ff7d994>]          lr : [<1ff7d914>]
reloc pc : [<0406f994>]    lr : [<0406f914>]
sp : 1ea8dcf8  ip : 00000034     fp : 40400004
r10: 00000004  r9 : 1ea8def0     r8 : 40400004
r7 : 00000000  r6 : 00000004     r5 : 00000004  r4 : 00000040
r3 : 1ea8dd0c  r2 : 00000001     r1 : 00000000  r0 : 00000009
Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

resetting ...

Can anybody tell me what is going wrong here??

 

PS: I am using the board from enclustre: PM3 as carrier and Mars ZX3 as daughter cards

 

Regards

Charles

 

0 Kudos
1 Reply
678 Views
Registered: ‎08-05-2019

Update: I figured out that my new bitstream was not progammed properly and the fpga was programmed with an old bitstream. With old bitstream I am able to access the registers without failure. Moderators please close this thread.

0 Kudos