2017-10-10 02:31 AM
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 ?
Solved! Go to Solution.
2017-10-10 02:46 AM
AFAIK the DMA in 'L0 (and 'F0/'L1/'L4) has no FIFO.
I guess this is some copy/paste artefact.
JW
2017-10-10 02:46 AM
AFAIK the DMA in 'L0 (and 'F0/'L1/'L4) has no FIFO.
I guess this is some copy/paste artefact.
JW
2017-10-10 04:51 AM
I found this
page 502017-10-10 05:11 AM
That does not make it more real. Search for FIFO in the DMA chapter of the respective RM.
JW
2017-10-10 06:52 AM
Well, nothing about FIFO in the
...What does it mean, I can't put my device in FIFO mode if I want to use DMA ?
2017-10-10 07:45 AM
What do you mean by 'putting device in FIFO mode'?
DMA does not have FIFO.
Some of the peripherals do have some sort of FIFO built into that peripheral.
JW
2017-10-10 07:53 AM
I want to use DMA for my accelerometer to collect data without any loss (I discovered DMA yesterday).
On my accelerometer I can enable a 32 slots FIFO.I wanted my DMA to collect the entire content of the FIFO at once thanks to the FIFO threshold, but it seems that I didn't undertand how to use DMA ?
2017-10-10 08:16 AM
A FIFO in an external device has nothing to do with FIFO in STM32 peripheral, nor in DMA.
JW