AnsweredAssumed Answered

STM3220G_Eval SDIO/DMA Multi_block Transfer

Question asked by preston.rob on Aug 2, 2011
Latest reply on Aug 2, 2011 by preston.rob

I have the STM3220G_Eval board that has the STM32F207IG processor.  I have successfully ran the demo code for transferring data to and from the SD card in Single and Multi_Block mode.  

For my application I need to write data to the card using Multi_Block; However I "First" need to set up all the registers, enable the DMA Stream and keep it open.  The data should be sent to the card as soon as a buffer with a size of 512 bytes is filled.  I need to also manually close the DMA stream after a timeout or other events that occur.

After reading through the reference manual and running the original program, it seems as if the Data has to be ready before the DMA stream is Enabled.  There is a counter SDIO_DCOUNT that decrements as data is transferred and fires an Transfer Complete when all the data has been transferred.  I am not sure if what I am trying to accomplish is applicable to how the DMA and SDIO drivers are set up for the STM32F207Ig.  

If there are any question to clarify my problem feel free to ask.  

Thanks in advance for your help.