You are here

CyU3PMemCopy too slow | Cypress Semiconductor

CyU3PMemCopy too slow

Summary: 1 Reply, Latest post by scutifer on 10 Sep 2014 03:18 AM PDT
Verified Answers: 0
Last post
Log in to post new comments.
Stones's picture
1 post

Hi guys,

I run the sample code "USBBlukStreams" in cyusb3014 DVK with PC's full speed USB port. The speed that send data to PC is able to up to 40MB/S. When I add "CyU3PMemCopy(buf_p.buffer,gpBuffer,buf_p.size);"  in callback "CyFxBulkStreamsDmaCallback ", the transfer speed drop down to 11MB/S. gpBuffer is allocated by CyU3PMemAlloc in function "BulkStreamsAppThread_Entry". Is there any way to speed up CyU3PMemCopy?  Any suggestion is appreciated. Thanks !

scutifer's picture
Cypress Employee
134 posts

 There's no way to speed this up. If your data source is from another peripheral (i.e GPIF, SPI etc), then create a DMA channel from that socket to your USB socket.


However, if CPU is the data source, there's really not much you can do to speed it up. If the data being sent doesn't change, then you can load the buffers once and then just re-commit each time the buffer is sent out (like how BulkSourceSink does it).

Log in to post new comments.