Author Topic: [SOLVED] Problem with USB device enumeration in Windows 7 x64: Wrong values  (Read 10524 times)

0 Members and 1 Guest are viewing this topic.

Offline ElektroQuarkTopic starter

  • Supporter
  • ****
  • Posts: 1245
  • Country: es
    • ElektroQuark
Some days ago I bought an MSP-FET, a debugger for MSP430 microcontrollers from TI.

My system, with Windows 7 x64, is unable to install the correct drivers. My notebook, with Windows XP does without any problem.

The device is described in the in file as:

%DESCRIPTION_DBG%=TIUSB, USB\Vid_2047&Pid_0014&MI_00
%DESCRIPTION1%=TIUSB, USB\Vid_2047&Pid_0014&MI_02

It installs two devices. Windows XP shows the correct VID/PID pairs and installs both devices correctly.

But my system with Win7 shows the MSP-FET as:

USB\VID_2047&PID_0014&REV_0200
USB\VID_2047&PID_0014


Complains about missing drivers and hardware don't work.
What is working bad in my Windows 7 x64 installation?
« Last Edit: June 09, 2015, 03:12:49 pm by EdoNork »
 

Offline John_ITIC

  • Frequent Contributor
  • **
  • Posts: 522
  • Country: us
  • ITIC Protocol Analyzers
    • International Test Instruments Corporation
Re: Problem with USB device enumeration in Windows 7 x64: Wrong values
« Reply #1 on: June 07, 2015, 10:53:30 pm »
Both operating systems appear to detect the same VID/PID combination (2047/0014). the difference between the two strings reported by the device manager is due to implementation differences between the two OSs. I suspect your issue is that Windows 7 does not automatically prompt the user for drivers to install, while Windows XP always does so.

Try to go to the device manager and right-click on your device. Then click update driver and direct the device installer to the .inf file for the driver. By default, Windows 7 x64 requires the driver to be "pre-installed" which is much more complex for the device driver writer and therefore often not done.
Pocket-Sized USB 2.0 LS/FS/HS Protocol Analyzer Model 1480A with OTG decoding.
Pocket-sized PCI Express 1.1 Protocol Analyzer Model 2500A. 2.5 Gbps with x1, x2 and x4 lane widths.
https://www.internationaltestinstruments.com
 

Offline ElektroQuarkTopic starter

  • Supporter
  • ****
  • Posts: 1245
  • Country: es
    • ElektroQuark
Re: Problem with USB device enumeration in Windows 7 x64: Wrong values
« Reply #2 on: June 08, 2015, 06:37:07 am »
I done that. Win7 doesn't want the drivers.
If I edit the inf file to mach the strings it install one device. But two devices must be installed for the FET to work, the debugger and the UART.

Anyone knows what Win7 services are for USB enumeration or device installation?

Offline John_ITIC

  • Frequent Contributor
  • **
  • Posts: 522
  • Country: us
  • ITIC Protocol Analyzers
    • International Test Instruments Corporation
Re: Problem with USB device enumeration in Windows 7 x64: Wrong values
« Reply #3 on: June 08, 2015, 06:48:03 am »
I done that. Win7 doesn't want the drivers.
If I edit the inf file to mach the strings it install one device. But two devices must be installed for the FET to work, the debugger and the UART.

Anyone knows what Win7 services are for USB enumeration or device installation?

If you edit the INF then the Windows x64 would no longer treat the driver package as signed. How did you manage to install? What is the exact error message you're getting when attempting to install?

One thing you could try is to enable the Setup API logging. This will show you why the install fails.
https://msdn.microsoft.com/en-us/library/windows/hardware/ff550887(v=vs.85).aspx
Pocket-Sized USB 2.0 LS/FS/HS Protocol Analyzer Model 1480A with OTG decoding.
Pocket-sized PCI Express 1.1 Protocol Analyzer Model 2500A. 2.5 Gbps with x1, x2 and x4 lane widths.
https://www.internationaltestinstruments.com
 

Offline ElektroQuarkTopic starter

  • Supporter
  • ****
  • Posts: 1245
  • Country: es
    • ElektroQuark
Re: Problem with USB device enumeration in Windows 7 x64: Wrong values
« Reply #4 on: June 08, 2015, 06:56:53 am »
There are no error. Win7 complains about no adecuate drivers to install. If I edit the inf file for the VID/PID to mach complains about not signed drivers of course, but I can install them.

I will try creating the log but I think the problem is the bad enumeraion string. I don't know why Win7 reads it different than XP does.

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8488
Re: Problem with USB device enumeration in Windows 7 x64: Wrong values
« Reply #5 on: June 08, 2015, 02:13:18 pm »
From https://www.osronline.com/showthread.cfm?link=252964
Quote
The MI_pp portion is only present if you have a composite device,
meaning it exposes multiple interfaces.  pp in that case is the
interface number.
That leads me to believe there is a problem in enumerating a composite device.

A bit of Googling reveals that attempting to install the driver for the composite device manually might work:

http://www.aheil.de/2009/12/12/fixing-wrong-usb-devices-in-windows-7/
 

Offline ElektroQuarkTopic starter

  • Supporter
  • ****
  • Posts: 1245
  • Country: es
    • ElektroQuark
Re: Problem with USB device enumeration in Windows 7 x64: Wrong values
« Reply #6 on: June 08, 2015, 02:26:48 pm »
Yes, it's a composite device. And it doesn't enumerate the MI_** part correctly.

I have tried to install drivers manually but I don't remember selecting "Show compatible hardware". I will try and report. Thanks.

Offline rsjsouza

  • Super Contributor
  • ***
  • Posts: 6083
  • Country: us
  • Eternally curious
    • Vbe - vídeo blog eletrônico
Vbe - vídeo blog eletrônico http://videos.vbeletronico.com

Oh, the "whys" of the datasheets... The information is there not to be an axiomatic truth, but instead each speck of data must be slowly inhaled while carefully performing a deep search inside oneself to find the true metaphysical sense...
 

Offline ElektroQuarkTopic starter

  • Supporter
  • ****
  • Posts: 1245
  • Country: es
    • ElektroQuark
Re: Problem with USB device enumeration in Windows 7 x64: Wrong values
« Reply #8 on: June 08, 2015, 03:17:11 pm »
Yes,it's me.

I have upgrade the MSP-FET firmware in Windows XP but nothing changed.

Offline ElektroQuarkTopic starter

  • Supporter
  • ****
  • Posts: 1245
  • Country: es
    • ElektroQuark
Re: Problem with USB device enumeration in Windows 7 x64: Wrong values
« Reply #9 on: June 08, 2015, 05:15:07 pm »
SOLVED!

Thanks to amyk I find the problem.

In the last of his links someone solved a similar problem installing manually the drivers for a USB Composite device. I tried but there was no USB Composite drivers available in my system. So I make a search and found out that the driver for composite devices is in usb.inf, a system file that is in EVERY Windows 7 system in C:\Windows\Inf folder. But not in mine. Somewhat that file was deleted. I found it in many places in my system files three, so I copied it to the C:\Windows\Inf folder and reconnected the MSP-FET. And it was detected and both correct drivers intalled.

Thank you.  :)

Offline DrTune

  • Contributor
  • Posts: 22
Re: [SOLVED] Problem with USB device enumeration in Windows 7 x64: Wrong values
« Reply #10 on: December 16, 2015, 01:40:13 am »
OMFG! Thankyou.
I was in Windows driver hell for days there..

My problem (win7 x64) was that at some point a few weeks ago my PC stopped enumerating any composite devices (e.g. FTDI 2232, etc), I could manually force it to install a driver for the single device instance it showed but my dual-port FTDIs (and Blackmagic Probe, and many more things) were all broken.  My desk is piled high with devboards and the like and it was totally f'ing with me...

WHAT WORKED FOR ME:
1) Finding backup usb.inf and replacing it into c:\windows\inf  (which was missing)
2) Manually doing "let me choose.." on the (oh so tediously familiar) "Update driver" page and picking the newly reappeared "USB Composite Device"

...and lo! All the separate interfaces on my devices are back.  THANK YOU!
 

Offline ElektroQuarkTopic starter

  • Supporter
  • ****
  • Posts: 1245
  • Country: es
    • ElektroQuark
Re: [SOLVED] Problem with USB device enumeration in Windows 7 x64: Wrong values
« Reply #11 on: December 16, 2015, 08:41:23 am »
I'm glad those posts has been of any help.

How do you find them? Google?

Ah, the missing usb.inf headaches...

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8488
Re: [SOLVED] Problem with USB device enumeration in Windows 7 x64: Wrong values
« Reply #12 on: December 16, 2015, 11:54:18 am »
I'm a her, but you're welcome. :)

The usb.inf can be found in your Windows disc (or .iso ;))

http://blog.nirsoft.net/2009/09/17/how-to-extract-missing-system-files-from-the-dvd-of-windows-7vista/
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf