cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to clear a memory area in RAM with the DMA?

sima2
Associate III
Posted on April 13, 2011 at 13:53

Is it possible to clear a memory area in RAM with the DMA?

3 REPLIES 3
Posted on May 17, 2011 at 14:31

You could try memory-to-memory, from a region that contains zeros, the regions could overlap.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
sima2
Associate III
Posted on May 17, 2011 at 14:31

So if I set buffer[0] = 0 and then initiate a DMA block copy from &buffer[0] to &buffer[1] it should work?

Posted on May 17, 2011 at 14:31

Yeah, but you'd probably want to do it in 32-bit or 16-bit units, or whatever alignment works for the DMA.

You could use a different fill pattern too.

I there are reason to be using DMA, because it's going to steal a lot of bus cycles?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..