How to use DMA on STM32L0 with FIFO threshold ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-10 2: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.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-10 2:46 AM
AFAIK the DMA in 'L0 (and 'F0/'L1/'L4) has no FIFO.
I guess this is some copy/paste artefact.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-10 2:46 AM
AFAIK the DMA in 'L0 (and 'F0/'L1/'L4) has no FIFO.
I guess this is some copy/paste artefact.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-10 4:51 AM
I found this
page 50- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-10 5:11 AM
That does not make it more real. Search for FIFO in the DMA chapter of the respective RM.
JW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-10 6: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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-10 7: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-10 7: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 ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2017-10-10 8:16 AM
A FIFO in an external device has nothing to do with FIFO in STM32 peripheral, nor in DMA.
JW
