cancel
Showing results for 
Search instead for 
Did you mean: 

Double buffer DMA

s7v7n92
Associate II
Posted on July 24, 2014 at 22:55

Hi,

I am trying to develop an application for STM32L series. I need to use DMA in double buffer mode. I found information in the reference manual for a double buffer circular mode which uses a single DMA buffer with half and full complete flags. However I want to use two separate buffer and have a way to switch between the two of them and fill them separately. I am looking for something like DMA_DoubleBufferModeConfig that is available for STM32F series.

Thanks

DMA_DoubleBufferModeConfig

DMA_DoubleBufferModeConfig

DMA_DoubleBufferModeConfig

#stm32-dma-double-buffer
3 REPLIES 3
Posted on July 24, 2014 at 22:59

You could also use Normal mode, and then chain through a list of transfer buffers at the TC of the prior buffer, setting up a new DMA transaction.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
s7v7n92
Associate II
Posted on July 24, 2014 at 23:26

Thanks for the response. Now I want this DMA transfer process to happen repeatedly since its capturing a continuous signal from an ADC. How should I configure the DMA to restart the process in normal mode?

Posted on July 25, 2014 at 01:55

I built a USART example at the end of

https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/DMA%20Memory%20To%20UART5&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=3121

.

This could be optimized significantly, by prefilling structures, etc.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..