Skip to main content
VNado.1
Associate III
December 14, 2020
Question

Once the DAC DMA is started, do I need to stop it in order to change the content of the buffer? Or I can simply do a HAL_DAC_Start_DMA() again with an updated buffer?

  • December 14, 2020
  • 2 replies
  • 779 views

..

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
December 14, 2020

> Once the DAC DMA is started, do I need to stop it in order to change the content of the buffer?

DMA does not care what you do in your buffer. If it runs (e.g. in Circular mode), DMA simply takes whatever it finds there and puts it into DAC.

JW

Ozone
Principal
December 15, 2020

You cannot stop DMA in a reproducible manner, the data item will be random.

You would need to divide the output into small enough sections.