Skip to main content
Associate III
Dec 11, 2024 8:17 AM UTC
Solved

Can the DMA memory generated by the DAC be accessed/read?

Can the memory generated by DMA be accessed and used as data? And how?

This topic has been closed for replies.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
Dec 11, 2024 8:29 AM UTC

Hello @macam1 ,

If you mean data transfer from memory to DAC with DMA, yes it's possible.

You didn't mention  the exact STM32F4 part number. 

This is for STM32F4x7 using DMA1:

SofLit_0-1733905761992.png

 

 

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.

3 replies

mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
Dec 11, 2024 8:29 AM UTC

Hello @macam1 ,

If you mean data transfer from memory to DAC with DMA, yes it's possible.

You didn't mention  the exact STM32F4 part number. 

This is for STM32F4x7 using DMA1:

SofLit_0-1733905761992.png

 

 

 

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
macam1Author
Associate III
Dec 11, 2024 8:36 AM UTC

thank you for your response, yes using stm32f405. can you give an explanation about this dma memory access, I'm so blind.

mƎALLEm
ST Technical Moderator
Dec 11, 2024 8:50 AM UTC

What explanation you need?

You need to configure DMA and DAC especially to choose the correct DMA stream and DMA channel (see the figure I shared above).

Please refer to this example. It's using DMA and DAC for signal generation:

https://github.com/STMicroelectronics/STM32CubeF4/tree/master/Projects/STM324xG_EVAL/Examples/DAC/DAC_SignalsGeneration

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.