cancel
Showing results for 
Search instead for 
Did you mean: 

DMA MEM2MEM Code generation

n.serina
Associate III
Posted on January 02, 2018 at 09:54

Hello, 

I am transferring bytes from SRAM to GPIOA ODR . really confused after seeing the code generated by cubemx. 

here is a snapshot  (SRAM is src and GPIOA is dst )

0690X00000609CqQAI.png

Why ''MemInc'' is disabled ? perhaps it treats Dst memory address as ''MemInc'' ? 

Please help to clarify 

#stm32-f4-discovery #stm32
3 REPLIES 3
Posted on January 02, 2018 at 12:11

In MEM2MEM mode, 'peripheral' means source, 'memory' means destination.

However, I doubt you want MEM2MEM mode. How do you trigger the DMA?

JW

Posted on January 02, 2018 at 12:22

Hello , 

Thanks for the reply , i trigger the DMA using HAL_DMA_Start() function . 

Posted on January 02, 2018 at 13:24

And you don't mind that the data will be output at the maximum possible rate?

JW