2019-05-07 09:08 AM
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!
Solved! Go to Solution.
2019-05-07 09:20 AM
2019-05-07 09:20 AM
2019-05-07 09:30 AM
Awesome, thank you!
Those are a huge help. For some reason my searching attempts didn't come up with those results.