Hi,
the zynq project I am working on is composed of PS, AXI-DMA and an FFT - it is a simplified version of this http://www.wiki.xilinx.com/Zynq-7000+AP+SoC+Spectrum+Analyzer+part+5+-+Accelerating+Software+-+Accelerating+an+FFT+with+ACP+Coprocessor+Tech+Tip.
As the original, I use an userspace IO driver.
The run_fft function terminates, so I assume the PS receives the interrupt indicating the end of the FFT calculation, but I see that the output buffer is untouched (I initialize it with 0xFF...FF before starting the FFT).
For debugging I modified the HW in PL, using a loopback instead of the FFT: in this case the output buffer contains a copy of the input.
How could I debug the FFT?
Why do I receive an interrupt from DMA (*) if no data has been written in the destination buffer?
(*) I use this command to wait for an irq
status = read(fd_uio, (void *) &pending, sizeof(int));
I also used
while (XAxiDma_Busy(&XAxiDmaInstance, XAXIDMA_DMA_TO_DEVICE)) ;
while (XAxiDma_Busy(&XAxiDmaInstance, XAXIDMA_DEVICE_TO_DMA)) ;
but result was the same
Thanks,
Max