- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello
My customer is using CY7C65211A as USB-SPI master on Linux.
They have some question like the following.
When isCypressDevice() is called thru printListOfDevices(), this seem to have a memory leak.
Code | while(1) { rStatus = CyOpen(0, 0, &handle); if (rStatus == CY_SUCCESS) CyClose (handle); else printf("CyOpen Fail(%d)\n", rStatus); } |
---|---|
Log message | [ERROR]CY:Kernel driver active on the interface number 0 CyOpen Fail(4) |
Deription :
if System board is connected with good device (as Cypress CY7C65211A) and called CyOpen(),
System board seems to be good working with CyClose() as rStatus == CY_SUCCESS.
but, if System board is called CyOpen() (as No device), it seems to have a memory leak.
if CY_ERROR_DRIVER_OPEN_FAILED as return value thru CyOpen() is repeated infinitely,
They would like to know if there can be happened a memory leak as symptom. also, if yes, could you please let me know method to solve memory leak?
Regards,
Jake
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Jake,
Can you please ask the customer to re-build the library by replacing the cyusb.c present in the <installation path>/linux/library folder with the one attached to this response and use the newly built library.
Let me know if they still face the issue.
Thanks,
Yatheesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yatheesh
Thank you so much for your comment.
I will ask it to them and will update if they have the issue still.
Regards,
Jake
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yatheesh
Solved. Thank you so much for your support.
Regards,
Jake