- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
We have been using CYUSB3014-BZXI and EZ-USB FX3 SDK 1.0 version.
The problem is it takes long time (about 250msec) in function CyU3PUartTransmitBytes.
We send 7Bytes, it takes more than 250msec. I think the time is derived from the wait time in CyU3PUartTransmitBytes before actually sending UART.
How to improve the UART transfer speed?
Thanks for your quick response in advance.
Regards,
KJ
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi KJ,
It is recommended to use the latest FX3 SDK 1.3.4.
Please refer to this KBA on optimizing the code size:
https://community.cypress.com/t5/Knowledge-Base-Articles/Optimizing-Code-Size-in-FX3-SDK-KBA230335/t....
Also could you share your firmware project with us?
Best Regards,
AliAsgar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi KJ,
1. What is the return status of the CyU3PUartTransmitBytes(..) API call?
2. Could you check by decreasing the write timeout value in CyU3PUartSetTimeout(..) API.
Also, CyU3PUartTransmitBytes() and CyU3PUartReceiveBytes() implementation are updated in FX3 SDK 1.3.4 to speed up data transfers. If possible, try using FX3 SDK 1.3.4.
Best Regards,
AliAsgar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi AliAsgar,
Thank you for your fast response.
1. The return status of the API call is CY_U3P_SUCCESS.
2. I can't find the API CyU3PUartSetTimeout(..).
We have no choice but to use FX3 SDK 1.0 version because our board has limited memory.
(The board has already been produced and sold commercially.)
If I build with FX3 SDK 1.3.4 the image size is over 60KBytes than E2PROM size. So, Programming of I2C E2PROM failed.
Could you suggest if there is any other way or check point?
Best Regards,
KJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi KJ,
Could you let us know the size of the firmware image when built using FX3 SDK 1.3.4.
Best Regards,
AliAsgar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi AliAsgar,
The image file size is 171KB when built using FX3 SDK 1.3.4.
The image file size is 112KB when built using FX3 SDK 1.0.0.
Best Regards,
KJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi KJ,
Could you build you project using 'Release' Build Configuration in FX3 SDK 1.3.4 and check the firmware image size?
What is the maximum size of the firmware image that can be loaded onto your board?
Best Regards,
AliAsgar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi AliAsgar,
The 171kB, and 112kB above are the result of 'Release' build.
The maximum size of the firmware image that can be loaded onto our board is 120kB.
Best Regards,
KJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi KJ,
It is recommended to use the latest FX3 SDK 1.3.4.
Please refer to this KBA on optimizing the code size:
https://community.cypress.com/t5/Knowledge-Base-Articles/Optimizing-Code-Size-in-FX3-SDK-KBA230335/t....
Also could you share your firmware project with us?
Best Regards,
AliAsgar