High sampling rate with the onboard ADC on the portenta

Hi, I would like to use the onboard ADC of the portenta. When i use analogRead(), the sampling rate is too low.
When i search online for examples, i only see examples for a Nucleo.
Has anyone an example for the Portenta?
Or something else that can help me further?
Thank Laura

What sample rate do you get and what sample rate do you want ?

Can you tell more about the project ?
If you want to do DSP, then there are other boards.
Perhaps a mini-computer with audio input can be used. Some Raspberry Pi boards can do 48kHz with 16-bit.
Suppose you can sample at a high rate, what are you going to do with all those samples ?

I don't know an example or a library for that. Since it is a STM32 processor, I suppose that someone has already written it with ADC + timer + interrupt + DMA.

I found in the datasheet that I can go up to 10Msps in 14-bit mode ( dual-interleaved mode).
For the project, I have to be around 10Msps. For the project it should be possible to take several thousand samples on the analog port in a few seconds.
When I look on Google I haven't found an example with ADC, timer, interrupt and DMA for the portenta.
I found examples for other boards, like this is a good one: https://deepbluembedded-com.translate.goog/stm32-adc-read-example-dma-interrupt-polling/?_x_tr_sl=en&_x_tr_tl=nl&_x_tr_hl=nl&_x_tr_pto=ajax,se,op,elem,sc

That is a good example, but I don't know how to adapt it for the Portentia. That is way out of my league. Can you tell why you need a sample rate of 10MHz ? It will help others to understand your project.

This is part of a project:
External hardware is connected to the analog port. From that external hardware, data comes at a very high sampling rate (about 10Msps). It must be possible to process this data in real-time with the portenta.

Very secret project. I wish you good luck!