Skip to main content
n.serina
Associate III
January 2, 2018
Question

DMA MEM2MEM Code generation

  • January 2, 2018
  • 1 reply
  • 919 views
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
This topic has been closed for replies.

1 reply

waclawek.jan
Super User
January 2, 2018
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

n.serina
n.serinaAuthor
Associate III
January 2, 2018
Posted on January 02, 2018 at 12:22

Hello , 

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

waclawek.jan
Super User
January 2, 2018
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