2015-12-16 04:44 PM
Hi, is there any example of how to implement DoubleBuffer mode for DMA transfer?
I have I2S stream and DMA configured on Circular Mode, but I need to implement double buffering. Thank2016-03-23 02:28 PM
nobody?
2016-03-24 07:00 AM
Hi elgarbe,
I recommendthat you refer tothe firmware of AN4678 ''Full deuplex SPI emulation for STM32F4'' here . Also, you can get more inspiration from this where they share a code that may seve your need. -Hannibal-2016-03-26 04:40 AM
Thank for your answer!
I'm looking for a DMA_MultiBufferSetConfig example and both code your provide are not MultiBuffer DMA. You provide example of another tecnique that is make the buffer twice the needed size and use Half Transfer and Complete Transfer to determine wich half is currently in use. My application implement that. But I saw on HAL library that there is a MultiBuffer mode functions. The problem is that there is no information on how to use it. Thank again.