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

USB inf for win7 32bit and 64bit not working.

Dear All,

I have below INF which is said to be working for vista, win7 32 bit and 64 bit.
But i am not able to get the com port using this INF. I am getting code28 error.

Please find the INF i am using.

Can any one tell what is missing to run this INF successfully for win 7 32-bit and 64 bit.

;
; Keil - An ARM Company Communication Device Class driver installation file
; (C)2007-2008 Copyright
;

[Version]
Signature="$Windows NT$"
Class=Ports
ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
Provider=%Keil%
;;; LayoutFile=layout.inf ;; not supported in Vista and later
DriverVer =04/14/2008, 5.1.2600.5512
; CatalogFile=mcb2300-vcom.cat

[Manufacturer]
%Keil%=DeviceList,ntamd64

;------------------------------------------------------------------------------
; Device list
;------------------------------------------------------------------------------

[DeviceList]
%DESCRIPTION%=MCB2300USB, USB¥VID_c251&PID_1705
%COMPOSITE% =MCB2300USB, USB¥VID_FF28&PID_0001&MI_01

[DeviceList.ntamd64]
%DESCRIPTION%=MCB2300USB, USB¥VID_c251&PID_1705
%COMPOSITE% =MCB2300USB, USB¥VID_FF28&PID_0001&MI_01

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

[SourceDisksNames]
;;; this blank section satisfies chkinf
[SourceDisksFiles]
;;; this blank section satisfies chkinf

[DestinationDirs]
FakeModemCopyFileSection=12
DefaultDestDir = 12

[MCB2300USB]
include=mdmcpq.inf
CopyFiles=FakeModemCopyFileSection
AddReg=MCB2300USB.AddReg

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

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

[DriverService]
DisplayName=%DRIVER.SVC%
ServiceType=1
StartType=3
ErrorControl=1
ServiceBinary=%12%¥usbser.sys

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

[Strings]
Keil = "Keil - An ARM Company"
DRIVER.SVC = "MCB2300 USB VCom Driver"
DESCRIPTION= "MCB2300 USB VCom Port"
COMPOSITE = "MCB2300 MSC-CDC COM Port"

  • Customize these lines of above INF file, so that they fit to your device.

    [DeviceList]
    %DESCRIPTION%=MCB2300USB, USB¥VID_c251&PID_1705
    %COMPOSITE% =MCB2300USB, USB¥VID_FF28&PID_0001&MI_01  ;;; <----
    
    [DeviceList.ntamd64]
    %DESCRIPTION%=MCB2300USB, USB¥VID_c251&PID_1705
    %COMPOSITE% =MCB2300USB, USB¥VID_FF28&PID_0001&MI_01  ;;; <----
    

    VID_FF28&PID_0001: VID/PID of your device
    MI_01: Interface number of the CDC communication interface.

    Above example was made for a composite device of MSC + CDC
    For CDC only device, no MI_xx is required.

    Tsuneo

  • Thanks for the Reply Tsuneo.

    I have a application which makes use of both MCS and CDC( composite) for LPC2368.

    Could you please guide me what shall be the VID and PID for LPC2368.

    Thanks,

    Hitesh

  • Hello,

    I'm with a similar problem, I have a code that works on Win7 32bits but doesn't works on Win7 64 bits.

    The code:

    Version]
    Signature="$Windows NT$"
    Class=Ports
    ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
    Provider=%Compsis%
    LayoutFile=layout.inf
    DriverVer=01/06/07

    [Manufacturer]
    %Keil%=DeviceList,ntamd64

    [DeviceList]
    %DESCRIPTION%=SMV2USB, USB\VID_c251&PID_1705

    [DeviceList.ntamd64]
    %DESCRIPTION%=SMV2USB, USB\VID_c251&PID_1705

    [DestinationDirs]
    FakeModemCopyFileSection=12
    DefaultDestDir=12

    ;------------------------------------------------------------------------------
    ; Windows 2000/XP Sections
    ;------------------------------------------------------------------------------

    [SMV2USB.nt]
    include=mdmcpq.inf
    CopyFiles=FakeModemCopyFileSection
    AddReg=SMV2USB.nt.AddReg

    [MCB2300USB.nt.AddReg]
    HKR,,NTMPDriver,,*ntkern
    HKR,,NTMPDriver,,usbser.sys
    HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
    HKR,,PortSubClass,1,01

    [SMV2USB.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

    [SMV2SB.nt.HW]
    include=mdmcpq.inf

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

    [Strings]
    Compsis="COMPSIS Computadores e Sistemas LTDA"
    DESCRIPTION="SMV 2.0"

    Anyone can help me?

  • Hello,

    Please use the below INF. It is suuccesfully working for
    XP, Vista, win7 32 bit and win7 64 -bit.

    ;
    ; Keil - An ARM Company Communication Device Class driver installation file
    ; (C)2007-2008 Copyright
    ;

    [Version]
    Signature="$Windows NT$"
    Class=Ports
    ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}
    Provider=%Keil%
    ;;; LayoutFile=layout.inf ;; not supported in Vista and later
    DriverVer =04/14/2008, 5.1.2600.5512
    ; CatalogFile=mcb2300-vcom.cat

    [Manufacturer]
    %Keil%=DeviceList,ntamd64

    ;------------------------------------------------------------------------------
    ; Device list
    ;------------------------------------------------------------------------------

    [DeviceList]
    %DESCRIPTION%=MCB2300USB, USB\VID_c251&PID_1705
    %COMPOSITE% =MCB2300USB, USB\VID_FF28&PID_0001&MI_01

    [DeviceList.ntamd64]
    %DESCRIPTION%=MCB2300USB, USB\VID_c251&PID_1705
    %COMPOSITE% =MCB2300USB, USB\VID_FF28&PID_0001&MI_01

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

    [SourceDisksNames]
    ;;; this blank section satisfies chkinf
    [SourceDisksFiles]
    ;;; this blank section satisfies chkinf

    [DestinationDirs]
    FakeModemCopyFileSection=12
    DefaultDestDir = 12

    [MCB2300USB]
    include=mdmcpq.inf
    CopyFiles=FakeModemCopyFileSection
    AddReg=MCB2300USB.AddReg

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

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

    [DriverService]
    DisplayName=%DRIVER.SVC%
    ServiceType=1
    StartType=3
    ErrorControl=1
    ServiceBinary=%12%\usbser.sys

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

    [Strings]
    Keil = "Keil - An ARM Company"
    DRIVER.SVC = "MCB2300 USB VCom Driver"
    DESCRIPTION= "MCB2300 USB VCom Port"
    COMPOSITE = "MCB2300 MSC-CDC COM Port"