Skip to main content
sima2
Associate III
April 13, 2011
Question

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

  • April 13, 2011
  • 3 replies
  • 712 views
Posted on April 13, 2011 at 13:53

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

    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    May 17, 2011
    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 VenmoUp vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    May 17, 2011
    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 VenmoUp vote any posts that you find helpful, it shows what's working..
    sima2
    sima2Author
    Associate III
    May 17, 2011
    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?