Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

USB low-full-high speed peripherals Forum Discussions

SeungM_41
Employee
Employee
First solution authored 10 replies posted 10 questions asked

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
1 Solution
YatheeshD_36
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

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
YatheeshD_36
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

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

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

Hi Yatheesh

Solved. Thank you so much for your support.

Regards,

Jake

0 Likes