STM32F767 DMA double buffer mode with differing buffer lengths
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-06-23 1:32 PM
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?
Labels:
- Labels:
-
DMA
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2025-06-23 1:49 PM
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".
