You are here

Can the example USBBulkSourceSink be modified to run ~400MB as we knew the FX3 is capable? | Cypress Semiconductor

Can the example USBBulkSourceSink be modified to run ~400MB as we knew the FX3 is capable?

Summary: 6 Replies, Latest post by Ben2 on 20 Feb 2013 01:09 PM PST
Verified Answers: 2
Last post
Log in to post new comments.
Ben2's picture
User
24 posts

Hi,

we knew the FX3 has very good speed, ('cause we ran existing img to reach that speed) but i'm having trouble to use the example to achief even close to that speed.  Can anybody know how and don't mind to share the secrets shed some light?  Thanks.

Lumpi6's picture
User
341 posts

 Hi Ben,

I am also interested if this is working. A few release versions earlier may be 1.1, the bulksorcesink example with the streamer application had shown me up to 430 MB at a ivy bridge i7 desktop pc with onboard intel USB3. But now with actual driver of the xhci, with updated SDK, with updatd usbsuite and a other DVK board from cypress I just reach a maximum of about 370MB.

How can that be? I tried to get back to the old system configuration with the same xhci driver but still the slow result with the 370MB. The only thing I can not get back is the DVK board which I returned to cypress. But I think it was also same board revision 3. 

any suggestion would be awesome, thanks,

lumpi

rskv's picture
Cypress Employee
1134 posts

Normal
0

false
false
false

EN-US
X-NONE
X-NONE

MicrosoftInternetExplorer4

Hi Lumpi,

Can you please try by disabling the LPM with the help of CyU3PUsbLPMDisable().

This should result in some performance improvement.

Thanks,

Sai Krishna.

 

/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}

Ben2's picture
User
24 posts

Hi Lumpi and Sai,

It's clear that Lumpi got a lot closer than we do.  Please tell us what you did, if you don't mind.  i'm sure there are more viewers could benefit from it, especially the Cypress?  Currently this is my observations with Sai's suggestions:

with No mod #define CY_FX_EP_BURST_LENGTH (8), 64x64, 8192 OUT, ~150MB

with #define  CY_FX_EP_BURST_LENGTH (13), 64x64, 13312 OUT, ~170MB  but (14) and (15) all failed to enumerate the driver.

Also, change dmaCfg.size = (2 * size * CY_FX_EP_BURST_LENGTH) will fail even with CY_FX_EP_BURST_LENGTH (8). - no 2 times size at all!

Thans Sai who kindly provide above info.  i wonder if you can further demenstrate the modifications with an attached file regarding 1. just use one endpoint, and 2. keep one DMA channel accordingly.

Hopefully with you guys help, we all can get ~400MB with mod of USBBulkSourceSink.  thanks alot!

 

 

 

 

 

 

rskv's picture
Cypress Employee
1134 posts

Normal
0

false
false
false

EN-US
X-NONE
X-NONE

MicrosoftInternetExplorer4

Hi Ben,

Please find the attached code which gives better throughput.

Here I have reduced the buffers count so that there will not be any problem with buffer allocation to two DMA channels.

Thanks,

Sai Krishna.

 

/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}

rskv's picture
Cypress Employee
1134 posts
Ben2's picture
User
24 posts

Thank you Sai.  i'd run the mod and it got to ~376MB (OUT), a very very good speed compares to original code, 2+ time faster!  well done.

 

Log in to post new comments.