Skip to main content
Associate II
June 23, 2025
Question

STM32F767 DMA double buffer mode with differing buffer lengths

  • June 23, 2025
  • 1 reply
  • 200 views

I'd like to setup the DMA engine to use double buffer mode, but on different size buffers. It seems that there is only one NDTR register per stream, and the user manual says this can only be written to when the stream is disabled.

So combining this information, is it the case that both buffer lengths must always be the same size?

1 reply

TDK
Super User
June 23, 2025

Correct, the buffers must be the same length.

Newer chip families have GPDMA which can be used with linked lists to do things like this.

"If you feel a post has answered your question, please click ""Accept as Solution""."