Hi, I couldn't install the virtual comport driver given by NXP (USBCDC project) on win7.No problem on XP. Is there anyone run USBCDC on win7 ? Has anyone experiences about this subject? Where can find a suitable driver for win7 if there exist?
I am waiting suggestions asap.
Thanks.
Hi, It was discused in thread http://www.keil.com/forum/docs/thread16230.asp Excuse me. Thanks.
Hi, Ok. I am in trouble. Please help me to modify and run CDC example on windows7. Is there anyone have already done it?
This is INF file content.
; ; Keil - An ARM Company Comunication Device Class driver installation file ; (C)2007 Copyright ; [Version] Signature="$Windows NT$" Class=Ports ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} Provider=%Keil% ;LayoutFile=layout.inf DriverVer=01/06/07 [Manufacturer] %Keil%=DeviceList [DestinationDirs] DefaultDestDir=12 [SourceDisksFiles] [SourceDisksNames] [DeviceList] %DESCRIPTION%=LPC17xxUSB, USB\VID_1FC9&PID_2002 ;------------------------------------------------------------------------------ ; Windows 2000/XP Sections ;------------------------------------------------------------------------------ [LPC17xxUSB.nt] include=mdmcpq.inf CopyFiles=DriverCopyFiles AddReg=LPC17xxUSB.nt.AddReg [DriverCopyFiles] usbser.sys,,,0x20 [LPC17xxUSB.nt.AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,usbser.sys HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" [LPC17xxUSB.nt.Services] include=mdmcpq.inf AddService=usbser, 0x00000002, DriverService [LPC17xxUSB.nt.HW] include=mdmcpq.inf [DriverService] DisplayName=%DESCRIPTION% ServiceType=1 StartType=3 ErrorControl=1 ServiceBinary=%12%\usbser.sys ;------------------------------------------------------------------------------ ; String Definitions ;------------------------------------------------------------------------------ [Strings] NXP="NXP - Founded by Philips" DESCRIPTION="LPC17xx USB VCom Port"
Not sure, but maybe see this: http://www.keil.com/forum/docs/thread16493.asp
I did not see significant differences. If there is someone running it on win7 with this INF, please inform me. Thus, I can search problem elsewhere.
> I did not see significant differences.
Ah, you can see the significant difference, but you don't know what it is. ;-)
The error lies in CopyFiles directive on [LPC17xxUSB.nt] section
[LPC17xxUSB.nt] include=mdmcpq.inf CopyFiles=DriverCopyFiles ; <------ wrong one, reference to a section of THIS INF
As CopyFiles references to the section of THIS INF, [SourceDisksNames] and [SourceDisdsFiles] of THIS INF is applied. In your case, both sections are empty. "include=mdmcpq.inf" line is vain, because you refer nothing from mdmcpq.inf.
The right one is,
[LPC17xxUSB.nt] include=mdmcpq.inf CopyFiles= FakeModemCopyFileSection ; <------ right one: reference to a section in mdmcpq.inf
When CopyFiles references to "FakeModemCopyFileSection" derived from mdmcpq.inf, [SourceDisksNames] and [SourceDisdsFiles] declared in mdmcpq.inf is applied. mdmcpq.inf points the right place of original usbser.sys location in [Source...] sections There is no difference on the CDC (usbser.sys) INF file among Win XP, Vista and 7 The major difference lies in the pre-installation of usbser.sys to the driver folder on each PC.
Most of Win XP still have usbser.sys installed in the driver folder, But for Vista and 7, usbser.sys is not installed there, but held in the installation archive (such as I386 folder).
MS has warned to us not to reference usbser.sys location directly on our custom INF file (*1) Instead, they suggest to "include" mdmcpq.inf AND reference to "FakeModemCopyFileSection" because mdmcpq.inf knows the right place on which the original usbser.sys exists.
Just writing "include = mdmcpq.inf" does nothing. Reference to the section on mdmcpq.inf correctly. (*1) "How to use or to reference the Usbser.sys driver from universal serial bus (USB) modem .inf files" support.microsoft.com/.../837637
Tsuneo
You are absolutely right :) I will try to run it in a few hours and inform you.
Thank you. Regards.
Hi,
I modified the stmcdc.inf based on Tsuneo suggestions as follows in order to run under windows 7:
; ; STMicroelectronics Comunication Device Class driver instalation file ; (C)2006 Copyright STMicroelectronics ; [Version] Signature="$Windows NT$" Class=Ports ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} Provider=%STM% LayoutFile=layout.inf DriverVer=01/06/07 [Manufacturer] %STM%=DeviceList [DestinationDirs] FakeModemCopyFileSection=12 DefaultDestDir=12 [DeviceList] %DESCRIPTION%=STMUSB, USB\VID_0483&PID_5740 ;------------------------------------------------------------------------------ ; Windows 2000/XP Sections ;------------------------------------------------------------------------------ [STMUSB.nt] include=mdmcpq.inf CopyFiles=FakeModemCopyFileSection AddReg=STMUSB.nt.AddReg [STMUSB.nt.AddReg] HKR,,NTMPDriver,,*ntkern HKR,,NTMPDriver,,usbser.sys HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" HKR,,PortSubClass,1,01 [STMUSB.nt.Services] include=mdmcpq.inf AddService=usbser, 0x00000002, DriverService [DriverService] DisplayName=%DESCRIPTION% ServiceType=1 StartType=3 ErrorControl=1 ServiceBinary=%12%\usbser.sys HKR,,PortSubClass,1,01 [STMUSB.nt.HW] include=mdmcpq.inf ;------------------------------------------------------------------------------ ; String Definitions ;------------------------------------------------------------------------------ [Strings] STM="STMicroelectronics" DESCRIPTION="STR91x CDC Communication Port"
However, I got the error message " Windows was unable to install your ST VIRUAL COM PORT"
Tsuneo, Could you please help me to figure out the reason?
Thanks a lot for your help.
Lillian
Hi all,
More infomation for my scenario. My machine is 64 bit Windows 7. I run the command " bcdedit.exe -set TESTSIGNING ON" in the command prompt and make the windows go to TESING MODE. However, I still get the same error message.
I greatly apperiate any suggestions.
Finally, the driver is installed under WINDOWS 7. I add the part NTamd64 in the inf file.
;------------------------------------------------------------------------------ ; Windows 7-64bit Sections ;------------------------------------------------------------------------------ [STMUSB.NTamd64] include=mdmcpq.inf ;CopyFiles=FakeModemCopyFileSection.NTamd64 CopyFiles=DriverCopyFiles.NTamd64 AddReg=STMUSB.NTamd64.AddReg [STMUSB.NTamd64.AddReg] HKR,,NTMPDriver,,*ntkern HKR,,NTMPDriver,,usbser.sys HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" HKR,,PortSubClass,1,01 [STMUSB.NTamd64.Services] include=mdmcpq.inf AddService=usbser, 0x00000002, DriverService.NTamd64 [DriverService.NTamd64] DisplayName=%DESCRIPTION% ServiceType=1 StartType=3 ErrorControl=1 ServiceBinary=%12%\usbser.sys [STMUSB.NTamd64.HW] include=mdmcpq.inf
Have a good weekend.
Hi Lillian,
Could you please send the hole INF file. Thus, It will be a certain reference for me and the others.
Thanks, Regards.
Here is my inf file.
[Version] Signature="$Windows NT$" Class=Ports ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} Provider=%STM% LayoutFile=layout.inf DriverVer=01/06/07 [Manufacturer] %STM%=DeviceList, NTamd64 [DestinationDirs] ;FakeModemCopyFileSection=12 ;FakeModemCopyFileSection.NTamd64=12 DefaultDestDir=12 [DeviceList] %DESCRIPTION%=STMUSB, USB\VID_0483&PID_5740 [DeviceList.NTamd64] %DESCRIPTION%=STMUSB, USB\VID_0483&PID_5740 ;------------------------------------------------------------------------------ ; Windows 2000/XP Sections ;------------------------------------------------------------------------------ [STMUSB.nt] include=mdmcpq.inf ;CopyFiles=FakeModemCopyFileSection CopyFiles=DriverCopyFiles.nt AddReg=STMUSB.nt.AddReg [STMUSB.nt.AddReg] HKR,,NTMPDriver,,*ntkern HKR,,NTMPDriver,,usbser.sys HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" HKR,,PortSubClass,1,01 [STMUSB.nt.Services] include=mdmcpq.inf AddService=usbser, 0x00000002, DriverService [DriverService] DisplayName=%DESCRIPTION% ServiceType=1 StartType=3 ErrorControl=1 ServiceBinary=%12%\usbser.sys HKR,,PortSubClass,1,01 [STMUSB.nt.HW] include=mdmcpq.inf ;------------------------------------------------------------------------------ ; Windows 7-64bit Sections ;------------------------------------------------------------------------------ [STMUSB.NTamd64] include=mdmcpq.inf ;CopyFiles=FakeModemCopyFileSection.NTamd64 CopyFiles=DriverCopyFiles.NTamd64 AddReg=STMUSB.NTamd64.AddReg [STMUSB.NTamd64.AddReg] HKR,,NTMPDriver,,*ntkern HKR,,NTMPDriver,,usbser.sys HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" HKR,,PortSubClass,1,01 [STMUSB.NTamd64.Services] include=mdmcpq.inf
Thanks to everyone who wrote in this thread. This is my INF file.
[Version] Signature="$Windows NT$" Class=Ports ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318} Provider=%PRVDR% LayoutFile=layout.inf DriverVer=22/03/2010,2.0.2200.2 [Manufacturer] %MFGNAME%=VirComDevice,NT,NTamd64 [DestinationDirs] DefaultDestDir = 12 [VirComDevice.NT] %DESCRIPTION%=DriverInstall,USB\VID_1FC9&PID_2002 [VirComDevice.NTamd64] %DESCRIPTION%=DriverInstall,USB\VID_1FC9&PID_2002 [DriverInstall.NT] Include=mdmcpq.inf CopyFiles=FakeModemCopyFileSection AddReg=DriverInstall.NT.AddReg [DriverInstall.NT.AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,usbser.sys HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider" [DriverInstall.NT.Services] AddService=usbser, 0x00000002, DriverServiceInst [DriverServiceInst] DisplayName=%SERVICE% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary= %12%\usbser.sys LoadOrderGroup = Base [Strings] PRVDR = "ProviderNAME" MFGNAME = "ManfNAME" DESCRIPTION = "MyUSB_CDC" SERVICE = "MyUSB_CDC driver"