Skip to main content
esukh
Associate II
November 8, 2018
Question

Why do I get DMA1->LISR FIFO error when I use direct mode with double buffer mode

  • November 8, 2018
  • 2 replies
  • 883 views

DMA1_Stream0->FCR = 0

DMA configured to work in double buffer direct mode.

And I get FEIF0 error interrupt flag?

This topic has been closed for replies.

2 replies

AVarg.19
Associate
November 8, 2018

Same problem for me also ( but I don't use a double buffer).

The FEIFx bit is being set when the DMA stream is enabled(EN = 1) in the DMA_SxCR.

Interestingly, it seems to happen only with Memory to Peripheral transfer.

waclawek.jan
Super User
November 9, 2018

This is the expected behaviour in the 'F2/'F4/'F7 DMA, see the note in 4.3 Software sequence to enable DMA in AN4031.

In Direct mode, simply ignore this flag, i.e. don't enable DMA_SxFCR.FEIE.

JW