FFT Accelerator and DMA buffer

Hello,

I used the LargeFFTNonBlocking example code on the EZ Kit SC584.

The problem is the adi_fft_SynchronizeRx function doesn't seem to wait for the interrupt because when I try to save the DMA output buffer result in a new array I get the wrong data.

Implementing a big delay before the process_results function solve it.

What could cause such thing?

/*FFT main loop*/
	while(processed_rx_dataset < NUM_ITERATIONS)
	{
		adi_fft_IsSynchronizeTxReady(h, &ready);
		if (ready)
		{
			adi_fft_SynchronizeTx(h);
			prepare_input();
			adi_fft_TriggerTx(h);
		}
		else
		{
			adi_fft_IsSynchronizeRxReady(h, &ready);
			if (ready)
			{
				adi_fft_SynchronizeRx(h);
				adi_fft_TriggerRx(h);
			    //Delay();
				process_output();
				processed_rx_dataset++;

			}
		}
	}

Thank you,

Sagi.