Skip to main content
Alexandre T
Associate III
October 10, 2017
Solved

How to use DMA on STM32L0 with FIFO threshold ?

  • October 10, 2017
  • 1 reply
  • 1593 views
Posted on October 10, 2017 at 11:31

Hello,

I saw on the STM32L0 User Manual that FIFO mode and its threshold can be configured thanks to HAL_DMA_Init().

For a given stream, HAL_DMA_Init() API allows programming the required configuration

through the following parameters:

- Transfer Direction

- Source and Destination data formats

- Circular, Normal or peripheral flow control mode

- Channels Priority level

- Source and Destination Increment mode

- FIFO mode and its Threshold (if needed)

- Burst mode for Source and/or Destination (if needed).

But I don't find where I can enable it and choose my threshold as I never used DMA before ?

    This topic has been closed for replies.
    Best answer by waclawek.jan
    Posted on October 10, 2017 at 11:46

    AFAIK the DMA in 'L0 (and 'F0/'L1/'L4) has no FIFO.

    I guess this is some copy/paste artefact.

    JW

    1 reply

    waclawek.jan
    waclawek.janBest answer
    Super User
    October 10, 2017
    Posted on October 10, 2017 at 11:46

    AFAIK the DMA in 'L0 (and 'F0/'L1/'L4) has no FIFO.

    I guess this is some copy/paste artefact.

    JW

    Alexandre T
    Associate III
    October 10, 2017
    waclawek.jan
    Super User
    October 10, 2017
    Posted on October 10, 2017 at 12:11

    That does not make it more real. Search for FIFO in the DMA chapter of the respective RM.

    JW