STM32F0 Peripheral to Peripheral DMA Transfer
Hi all,
I have been tasked with porting existing Atmel SAMD21 code to an STM32F030xC. I am getting a bit hung up on how to implement the DMA transfer functionality. The existing functionality reads from a SPI SRAM chip, and writes to a SPI LCD display. Both are attached to 2 different SPI peripherals. It is doing this transfer processes via DMA.
Now, in the reference manual, it states that DMA can handle peripheral-to-peripheral transfers. If this is the case, how do I setup the Peripheral address register (DMA_CPARx) and the Memory address register (DMA_CMARx)? Do I simply put the SPIx_DR addresses in both registers and just let DMA do its thing? Can DMA even handle this sort of request on the STM32F030xC?
Any help is appreciated,
Thank you!