AnsweredAssumed Answered

Help with DMA1 and DMA2

Question asked by B3rsui on Sep 3, 2013
Latest reply on Sep 3, 2013 by B3rsui
Hello guys, I have a problem with DMA2, while using DMA1 in the STM32F407VGT6

The thing is I´m doing a program which reproduce MP3 music while it reads the data from an SD.
I use the DMA1 Stream 7 for sending data to the DAC (I2S3) and DMA2 Stream3 to send and recieve data from the SD.

I was able to run both codes independently, I mean, I could reproduce music saved in the internal flash, as constant data, and also I could save and read data from the SD.

But when I want to use both codes mixed it happens something strange at least for me.

I read some data from the SD, then I reproduce it and when I want to read more data from the SD, the DMA2 stops working.

I didn't post the code because it's kind of big, but if you need some special part let me know.

Thank you very much for all and sorry if my english isn't good.

Best regards!


Outcomes