06-05-2019 11:01 PM
I am trying to perform one example of Xilinx AXI-DMA IP given in link provided below (anyone who wish to see can go through that link).
In this , they are implementing memcopy functionality , when I am performing this example it shows me an error that is '' undefined reference to 'mmap' '' and also '' make: *** [dma_example_test.elf] Error 1 '' .https://lauri.xn--vsandi-pxa.com/hdl/zynq/xilinx-dma.html
I am also attaching screenshot of that error. Any references would be helpful.
06-06-2019 12:04 AM
The error itself is explicit enough, you use a function (mmap) the compiler cannot find, so some include file is missing.
Vivado is not the most back-compatible thing in the World... you are following a blog from 2014 and you are probably using vivado 2019. That could be the reason.
Each Vivado edition comes with its own example projects, there are for DMA as well. I'd suggest you start with Xilinx provided examples. At least you can complain here if they don't work, otherwise you will have to ask for explanations to the blog's author that probably doesn't remember much of what he/she did 5 years ago.
06-12-2019 03:33 AM
Hi @shubhamc ,
Please check this AR for example designs with AXI DMA core.
You can also try the SDK standalone application like xaxidma_example_simple_poll.c
These example apllications can be found at \Xilinx\SDK\2018.3\data\embeddedsw\XilinxProcessorIPLib\drivers\axidma_v9_8\examples location.