AnsweredAssumed Answered

Using DMA in two SPI ports simultaneously

Question asked by p.p.santos on Jan 14, 2010
Latest reply on Jan 21, 2010 by p.p.santos

Hi all.

I'm in a project that I need to access two SPI ports in the same time and with synchronism. I only need to receive data (in both channels), don't need to send anything.

I have made a program that uses ports SPI and SPIB sharing the same clock to get data via DMA. The two DMA transfers should get 1000 packages in each channel AT THE SAME TIME.

But the program is getting one full 1000 vector first and only then getting the other. This causes my system to desynchronize.

Why is it making one transfer after another and not both at the same time even though these two SPI ports use two different DMA channels?

Thanks to all!