cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F0 Peripheral to Peripheral DMA Transfer

GOber.9
Associate

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 discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions

Some older discussions may be of help:

thread 1

thread 2

View solution in original post

2 REPLIES 2

Some older discussions may be of help:

thread 1

thread 2

GOber.9
Associate

Awesome, thank you!

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