Skip to main content
ogriz
Associate
July 25, 2018
Question

fifo error on direct mode DMA

  • July 25, 2018
  • 3 replies
  • 981 views

Hi there,

I'm using stm32F411 MCU

I configured the UART6 to transmit data with DMA.

Once in a while i'm getting FIFO ERROR from the DMA even though i'm using direct mode and not FIFO mode.

Although the error occur, the data is still transfer successfully.

what can cause this error?

thanks.

    This topic has been closed for replies.

    3 replies

    T J
    Senior III
    August 1, 2018

    I checked your chip, this is not trivial.

    mode 1 or mode 2 ?

    surely you can find an example of the schematic

    ogriz
    ogrizAuthor
    Associate
    August 7, 2018

    this is the configuration of the DMA i use for RX:

    hdma_rx.Init.Direction = DMA_PERIPH_TO_MEMPRY;

    hdma_rx.Init.PeriphInc = DMA_PINC_DISABLE;

    hdma_rx.Init.MemInc = DMA_MINC_ENABLE;

    hdma_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE;

    hdma_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE;

    hdma_rx.Init.Mode = DMA_CIRCULAR;

    hdma_rx.Init.Priority = DMA_PRIORITY_LOW;

    hdma_rx.Init.FIFOMode = DMA_FIFOMODE_DISABLE;

    Other than that, i'm using STM32 standard HAL driver for receiving from uart.

    the HAL driver version is 1.18

    thanks

    waclawek.jan
    Super User
    August 7, 2018

    For explanation, see AN4031, chapter 4.3 Software sequence to enable DMA.

    JW