I have a ZCU102 board with an ADRV9009.
We're trying to get 245MSps data onto an SSD, as we want to record several minutes of continuous, 245MSps data.
However I am finding that while using a modified iioStreaming_adrv9009 example code, just having iio_buffer_refill() in a loop (not writing the data anywhere yet) is taking much longer to cycle through than what it should take for the buffer to refill.
From my understanding of how the buffer rotations interact with the DMAC, it doesn't seem like the iio_buffer_refil() should block the program for very long once a buffer is filled, and the buffer would be quick to fill up.
I setup a timer to measure the time between the start and end of the loop, and the time taken pointed to an equivalent sample rate of ~13MSps (with gaps).
There should be 4 buffers of size 1024*1024.
I don't have the exact code I used on hand right now, but it was along the lines of:
Would using the IIO library be feasible to achieve this and we just have something that needs better configuration?
I considered this application might require a custom HDL configuration to DMA the ADC data into the PCIe SSD, but I was hopeful that this would not be required as I lack the experience to confidently implement this.