I'm working with PSoC 5LP. My code was working properly initially. Now, whenever I program the PSoC, it gives me a message "USB not recognized" and the program hangs on the USBUART_1_GetConfiguration line of the code. Has anybody faced this issue? Please

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

cross mob
1 Solution
NoriTan
Employee
Employee
25 sign-ins 5 questions asked 10 sign-ins

Please try to add an additional USBUART_IsConfigurationChanged() prior USBUART_CDC_Init() as follows.

    for(;;) {

        // Wait for initialization completed

        while (USBUART_GetConfiguration() == 0);

        USBUART_IsConfigurationChanged();       // Ensure to clear the CHANGE flag

        USBUART_CDC_Init();                     // Initialize the CDC feature

        for (;;) {

            // Re-initialize if the configuration is changed

            if (USBUART_IsConfigurationChanged()) {

                break;

            }

This is required for me because Windows issues two SET_CONFIGURATION requests.

Regards,

Noriaki

View solution in original post

0 Likes
4 Replies