Question
STM32F4 DMA streams init sequence
Posted on January 23, 2014 at 12:49
Hello all,
while implementing two different tasks for DMA2 transfer, which of courseuses different streams and channels I have noticed, that stream initialization sequenceplays some role. For example I am using stream 3 and stream 1 and if I initializefirst stream 3 followed stream 1, then sometimes happens, that data is not transferredin the right way. If start-up sequence initializes first stream 1 followed stream 3 I amnot experiences any troubles. In my case interaction is between DCMI-SDRAM-SDwhich all uses DMA to transfer data.Could someone give me some explanation of this curious case? Since I do not know the reason why is this like explained I am worried, that this is notjust some coincidence and later my fails!Second question is, in what relationship are DMA streams and DMA channels. Like I seenumber of streams are the same as numbers of channels, but in some examples streamnumber does not match channel number! Why this reason? I also tried to change channelnumber and DMA fails. regards