cancel
Showing results for 
Search instead for 
Did you mean: 

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

macam1
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.

View solution in original post

3 REPLIES 3
SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.

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

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 on "Accept as Solution" on the reply which solved your issue or answered your question.