cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
christine1225
Adventurer
Adventurer
1,945 Views
Registered: ‎07-10-2015

Does ku115 xdma M_AXI_bypass support block read and write, not only register read and write?

Does ku115 xdma(3.0) M_AXI_bypass support block read and write, not only register read and write?

 

I  do the cmd,

./dma_to_device -d /dev/xdma0_bypass -f data/datafile0_4K.bin -s 1024 -a 0000 -c 1
sscanf() = 1, value = 0x00000400
sscanf() = 1, value = 0x00000000
sscanf() = 1, value = 0x00000001

device = /dev/xdma0_bypass, address = 0x00000000, size = 0x00000400, offset = 0x00000000, count = 1

 

error I got:
host memory buffer = 0x1cf0000
Segmentation fault

QQ截图20170504152352.png
0 Kudos
1 Reply
ubenevides
Adventurer
Adventurer
1,605 Views
Registered: ‎09-22-2016

You have to use the memory mapped interface

 

# read

$ reg_rw /dev/xdma0_bypass 0x0000 w

 

# write

$ reg_rw /dev/xdma0_bypass 0x0000 w 1