Skip to main content
Explorer II
December 11, 2024
Solved

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

  • December 11, 2024
  • 1 reply
  • 808 views

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

    This topic has been closed for replies.
    Best answer by mƎALLEm

    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

     

     

     

    1 reply

    mƎALLEmAnswer
    Technical Moderator
    December 11, 2024

    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

     

     

     

    macam1Author
    Explorer II
    December 11, 2024

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

    Technical Moderator
    December 11, 2024

    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