How to send data from ADC diretly to FMAC using DMA (peripheral-to-peripheral)?
Hi,
I'm trying to send data from ADC to FMAC directly via DMA in circular mode. From the STM32G4 reference manual (dm00355726) page 402:
"Peripheral-to-memory, memory-to-peripheral, memory-to-memory and peripheral-to-peripheral data transfers"
But I can't find anything on STM32CubeG4 that configures that. Here's a screenshot:
I've tried writing to FMAC write data register directly using
HAL_ADC_Start_DMA(&hadc1, &FMAC->WDATA, 1)But it doesn't work.
What worked for me was setting the DMA circular mode for both ADC and FMAC, then syncronize it using DMAMUX requests. Although this eliminates the CPU in the process, it doesn't feel like a true peripheral-to-peripheral transaction.
How can I make a DMA transfer content from one peripheral to another, directly?
Kind regards,
Helder
