Skip to main content
KHarb.1
Senior
July 3, 2024
Question

Is priority gauranteed to make two DMA transfers initiated by the same trigger arrive at a static destination address in order?

I need to process samples from two different ADCs by transferring their samples to the FMAC via DMA. This is done by writing repeat values to FMAC->WDATA. Both ADCs have the same trigger and I want to insure one ADC's value arrives before the other. I know I can adjust the priority, but they are both using channels on DMA1 and they trigger at the exact same time, so I’m still suspicious there might be more to it. Is priority enough?

This topic has been closed for replies.

2 replies

waclawek.jan
Super User
July 3, 2024

According to DMA description and AN, yes. 

To gain confidence, you can arrange the ADC inputs to have very distinct values, and use the DMA to transfer their values to GPIOs, observed by oscilloscope/LA.

JW

KHarb.1
KHarb.1Author
Senior
July 3, 2024

Right...that's only confidence though. I'm going to be adding more and more DMA channels and traffic, it could get really hard to test if the order isn't consistent, hence the the search of definitive info.