This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Code10 after installing own driver on x64 win 7 prof

Hello everyone,

I tried to install an driver via INF-file for USB-CDC (based on mcb2300_vcom.inf) on Windows 7 Professional x64 (in the following text called 'target system'). This is to get a COM-Port to send data via USB to an LPC2368 microcontroller.

The installation failed the first time with the message that the driver is not a x64-based system driver.

So I changed the driver as described in MSDN-article for "Cross-Platform INF Files". After a day of hard mind-work I finished the driver and tried to install it again. Now the installation starts on the target system, gives a message about the missing signature, and finishes with following message:

Driver software was found, but an error occured while installation.
The device could not be started. (Code 10)

I checked the INF-file with ChkInf (WDK 7.1.0) on the target system and got only one error (no warnings):

Line x: ERROR: (E22.1.1081) Directive: CatalogFile required (and must not be blank) in section [Version] for WHQL digital signature.

I do not think this error is the reason for Code10.

I furthermore checked the usbser.sys on the target system. It's version is 6.1.7600.16385.
It's date is 14.07.2009 02:06.

I do not know what to do now to make the driver work.

Finally, here is my revised INF source:

[Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%MYCOMPANY%
DriverVer=10/13/2010,5

[DestinationDirs]
FakeModemCopyFileSection=12
DefaultDestDir=12

[Manufacturer]
%MYCOMPANY%=USBDevice,NTia64,NTamd64

;------------------------------------------------------------------------------
; Models sections
;------------------------------------------------------------------------------

[USBDevice]
%DRIVERNAME%=InstallXXUSB, USB\VID_c251&PID_1705

[USBDevice.NTia64]
%DRIVERNAME%=InstallXXUSB, USB\VID_c251&PID_1705

[USBDevice.NTamd64]
%DRIVERNAME%=InstallXXUSB, USB\VID_c251&PID_1705

[SourceDisksFiles]

[SourceDisksNames]

;------------------------------------------------------------------------------
; Installation
;------------------------------------------------------------------------------

[InstallXXUSB]
include=mdmcpq.inf
CopyFiles=FakeModemCopyFileSection
AddReg=XXUSB.AddReg

[XXUSB.AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,usbser.sys
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"

[InstallXXUSB.Services]
AddService=usbser, 0x00000002, DriverService

[DriverService]
DisplayName=%DRIVERNAME%
Description=%DESCRIPTION%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%\usbser.sys


;------------------------------------------------------------------------------
;  String Definitions
;------------------------------------------------------------------------------

[Strings]
MYCOMPANY="The name of my company"
DRIVERNAME="XX USB VCom Port"
DESCRIPTION="Provides a virtual COM-Port when connecting an XX via USB"

Has anyone hints for me to solve the problem and make the port work?

Best regards

Parents
  • I performed a USB data log again while connecting the device to the target system via USB cable. I saw an interesting behaviour:
    For some seconds (maybe 3 sec) no exclamation mark was to be seen in device manager of the target system, but the device was shown. I wondered if the USB communication works well now, but then the device got an exclamation mark. :(
    While there was no exclamation mark, the logger counted approx. 5200 Byte(?). After some seconds the exclamation mark appeared and the logger counted approx 7300 Byte(?). I don't know exactly if the logger counts the logged Byte, that is why I added an (?). But i will find out.
    I conclude, that the problem may be identified at the end of the logged data. At the end of the posted log file there is no OUT transmission any more - Am I right to think that this is the timepoint where the host (target system) signals the connection as failed and add an exclamation mark in device manager?

    Best regards

Reply
  • I performed a USB data log again while connecting the device to the target system via USB cable. I saw an interesting behaviour:
    For some seconds (maybe 3 sec) no exclamation mark was to be seen in device manager of the target system, but the device was shown. I wondered if the USB communication works well now, but then the device got an exclamation mark. :(
    While there was no exclamation mark, the logger counted approx. 5200 Byte(?). After some seconds the exclamation mark appeared and the logger counted approx 7300 Byte(?). I don't know exactly if the logger counts the logged Byte, that is why I added an (?). But i will find out.
    I conclude, that the problem may be identified at the end of the logged data. At the end of the posted log file there is no OUT transmission any more - Am I right to think that this is the timepoint where the host (target system) signals the connection as failed and add an exclamation mark in device manager?

    Best regards

Children
No data