Skip to main content
Explorer
June 23, 2025
Question

STM32F767 DMA double buffer mode with differing buffer lengths

  • June 23, 2025
  • 1 reply
  • 199 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?

    This topic has been closed for replies.

    1 reply

    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.