USB device not recognized.

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

cross mob
Anonymous
Not applicable
        Hi there, I am trying to check the USBUART example code. I am connecting my PSoC kit via a USB to my PC but the PC doesn't recognizes the USB. ------------------------------------ As per a suggestion on "psocdeveloper.com", I tried to integrate the .inf file. On Windows XP SP3, I get the message "Software is not compatible with Windows XP" and on Windows 8, I get the message, "the INF file does not contain the digital signature." However, it works perfectly fine on Windows 7. What about non-Windows7 users? Regards.   
0 Likes
1 Solution
Anonymous
Not applicable

 Hi,

   

 

   

What is the inf file that you are using?

   

If you are using the same inf file that gets generated when using the project, then it uses the standard drivers in the OS.

   

I assume your steps should have been the following:

   

 

   

1. Compile and project, and program the device with the hex file.

   

2. After connecting the device, use the inf file at the location 

   

x:\USB_UART01\USB_UART01.cydsn\Generated_Source\PSoC3 or \PSoC5

   

where x is where the project is located, to bind the device  to a driver.

   

3. The OS should itself connect it to usbser.sys driver.

   

 

   

If this does not work. Can you take a snapshot of the error and add here.

   

Also, you can delete the old registry of the attached device/ or simply update the driver of the connected device.

   

 

   

If you are not using this inf file, then what are the inf and drivers used?

   

 

   

-Garima

View solution in original post

0 Likes
7 Replies
Anonymous
Not applicable

 Hi,

   

 

   

What is the inf file that you are using?

   

If you are using the same inf file that gets generated when using the project, then it uses the standard drivers in the OS.

   

I assume your steps should have been the following:

   

 

   

1. Compile and project, and program the device with the hex file.

   

2. After connecting the device, use the inf file at the location 

   

x:\USB_UART01\USB_UART01.cydsn\Generated_Source\PSoC3 or \PSoC5

   

where x is where the project is located, to bind the device  to a driver.

   

3. The OS should itself connect it to usbser.sys driver.

   

 

   

If this does not work. Can you take a snapshot of the error and add here.

   

Also, you can delete the old registry of the attached device/ or simply update the driver of the connected device.

   

 

   

If you are not using this inf file, then what are the inf and drivers used?

   

 

   

-Garima

0 Likes
Anonymous
Not applicable

 Hi,

   

 

   

What is the inf file that you are using?

   

If you are using the same inf file that gets generated when using the project, then it uses the standard drivers in the OS.

   

I assume your steps should have been the following:

   

 

   

1. Compile and project, and program the device with the hex file.

   

2. After connecting the device, use the inf file at the location 

   

x:\USB_UART01\USB_UART01.cydsn\Generated_Source\PSoC3 or \PSoC5

   

where x is where the project is located, to bind the device  to a driver.

   

3. The OS should itself connect it to usbser.sys driver.

   

 

   

If this does not work. Can you take a snapshot of the error and add here.

   

Also, you can delete the old registry of the attached device/ or simply update the driver of the connected device.

   

 

   

If you are not using this inf file, then what are the inf and drivers used?

   

 

   

-Garima

lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable
        I dont know what I was doing wrong earlier but now the device is working fine on my OS [XP]. However, the USB is not working in debug mode. I get the following error [check attached file]....I get this response everytime I try to debug a USB code. Is there an explanation as to why the USB component doesn't work in debug mode? Regards.   
0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable
        Also...one more thing. At times when I connect the USB component to my PC, I get the 3 CDC Communication Interfaces [as usual].........but I also get 3 CDC DATA Interfaces...... . .Will these 3 Data Interfaces be installed the same way?.............. (program doesn't work as long as they are uninstalled) Please Check attached file. Regards.   
0 Likes
Anonymous
Not applicable

 For your problem on debugging,

   

 

   

Keep a breakpoint after 

   

while(!USBUART_1_GetConfiguration());

   

 

   

The error is coming, because you have started the USBFS component, and thus the host sees a pull-up on the USB D+ line. But when the hosts requests the descriptors, it does not receive it (because the code is not running). Thus, the device is not recognized by the host. 

   

So free running it till it enumerates ensures proper operation.

   

 

   

I am not sure of your second problem.

   

I really don't know. Can you attach your project here? Can you also check your registry settings? I can't say what's wrong here if you are using the example  project of USBUART.

   

You can also create a Tech support case if you feel it is needed.

   
    -Garima   
0 Likes
Anonymous
Not applicable

Hello Gari,

   

I tried putting a breakpoint in the USBUART example code. But I am still getting the same error.

   

Everytime I run the code in debug mode I get the message "USB Device Not Recognized".

0 Likes
Anonymous
Not applicable

 Hi,

   

 

   

The problem is that you break the loop when the host must be expecting the descriptors. Take care that you stop the code only after the device has enumerated. For this, do not stop till the while(!isconfigchanged()) code statement executes, i.e. put a breakpoint after that statement.

   

 

   

Cheers.!!

   

-Garima