cancel
Showing results for 
Search instead for 
Did you mean: 

USB Low-Full-High Speed Peripherals

Employee

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.

Codewhile(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

0 Likes
Reply
1 Solution
Moderator
Moderator

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

View solution in original post

3 Replies
Moderator
Moderator

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

View solution in original post

Employee

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

0 Likes
Reply
Employee

Hi Yatheesh

Solved. Thank you so much for your support.

Regards,

Jake

0 Likes
Reply