IT lexicon › Hardware › DMA FIFO

DMA FIFO

Hardware På svenska → Updated: 2026-11-05

A small staging buffer in each DMA stream that collects data before writing it out, turning small peripheral transfers into larger memory transfers.

On the STM32F2, F4 and F7, every DMA stream has a four-word (16-byte) FIFO. In direct mode, the default, each element passes straight through. In FIFO mode you pick a threshold — quarter, half, three-quarters or full — and the controller only drains once it is reached. That lets a UART delivering one byte at a time be packed into 32-bit words on the memory side, and it is a prerequisite for burst transfers.

The rules are fussy: the burst has to fit within the threshold, otherwise the configuration is invalid and the FIFO error flag goes up. That error is not always fatal, so it tends to get ignored until one day a transfer drops a byte and nobody can work out why.

← Back to the lexicon