Skip to main content
GOber.9
Associate
May 7, 2019
Solved

STM32F0 Peripheral to Peripheral DMA Transfer

  • May 7, 2019
  • 2 replies
  • 3209 views

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!

This topic has been closed for replies.
Best answer by After Forever

Some older discussions may be of help:

thread 1

thread 2

2 replies

After Forever
After ForeverBest answer
Senior III
May 7, 2019

Some older discussions may be of help:

thread 1

thread 2

GOber.9
GOber.9Author
Associate
May 7, 2019

Awesome, thank you!

Those are a huge help. For some reason my searching attempts didn't come up with those results.