The ADC conversion done signal should drive a DMA, moving the finished samples to a dynamically allocated buffer.