2011-04-13 04:53 AM
Is it possible to clear a memory area in RAM with the DMA?
2011-05-17 05:31 AM
You could try memory-to-memory, from a region that contains zeros, the regions could overlap.
2011-05-17 05:31 AM
So if I set buffer[0] = 0 and then initiate a DMA block copy from &buffer[0] to &buffer[1] it should work?
2011-05-17 05:31 AM
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?