On howto “use the ADC to set up a DMA into a buffer at a fixed acquisition rate, say 10kHz to start with, at 12-bit resolution. “
Yes, too demanding for ChatGPT etc…
But here’s an example that lets you do 12 bits ADC, 1, 2 or 4 channels, up to 1Ms/s. timer triggered, to DMA...