AnsweredAssumed Answered

memcpy() function

Question asked by obid.matic on Nov 6, 2015
Latest reply on Nov 6, 2015 by obid.matic
Hi there.

I read an article about copying data using CPU ("for" loop) and DMA (Mem2Mem).

http://www.embedds.com/using-direct-memory-access-dma-in-stm23-projects/

Below in the comments of that article is described also an approach, which uses memcpy() function. Interestingly, this is also (much) faster than DMA. I never used memcpy() function, so I would like to ask, how could it be faster than DMA? As long as it is a function, I suppose it occupy CPU? But how it works? Where can I see its definition?

Thanks

Outcomes