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 CDC communication

Hi,
I have question regarding the USB connection. i am using LPC1768 and the USB CDC example(its demo example come up with lpc1768). when i connect the board usb device with my pc it generates error no driver found and it not connects usb device with my pc. This example have the Abstract File too which have the following description:-

The Virtual COM port project is a demo program for using the NXP
LPC17xx Microcontroller.

It demonstrates an USB Virtual COM port based on a Windows USB host
driver (usbser.sys).

The PC will install a virtual COM port on the PC (see Driver Installation).
After installation an additional port "LPC17xx USB VCom Port(COMx)"
can be found under System/Hardware/Device Manager/Ports(COM&LPT).
Number "x" is not fixed as different PC configuration may have different
"x" displayed on the device manager. The USB host driver assigns "x"
dynamically based on the existing COM port configuration of the system.

Testing the USB Virtual COM port with serial cable:

Open two Hyperterminal windows. One with "LPC17xx USB VCom Port(COMx)" One with "Communications Port (COM1)". Connect PC port COM1 to the comport on the board and open "COM1" and "COMx". Data from COM1 will be echoed on "COMx" and visa versa. So, this is bi-directional communication between the physical COM port 0 or 1 on the board and the virtual COM port COMx on host PC. By default, COM PORT1 on the board is used for VirtualCOM port test. In order to use COM PORT0 on the board, modify the definition PORT_NUM from 1 to 0 in serial.h, recompile and reprogram the flash. RST jumper needs to removed to start the Virtual COM port test.

The Virtual COM Port program is available for the following targets: Keil MCB1700 Eval board: configured for on-chip Flash ROM (used for production or target debugging)

Driver Installation:
-------------------- "Welcome to the Found New Hardware Wizard" appears - select 'No, not this time' - press 'Next'

- select 'Install from a list or specific location (Advanced)' - press 'Next'

- select 'Search for the best driver in these locations' - check 'include this location in the serach' - set to <project folder> - press 'Next'

"Hardware Installation" appears "has not passed Windows Logo testing..." - press 'Continue Anyway'

"Completing the Found New Hardware Wizard" appears - press 'Finish'
but when i connect my device with pc it did not show me "Welcome to the Found New Wizard". please do help me. What will be the problem? Is there any Class configuration error or somewhat else?
Thanks in advance

Parents
  • i also have the .inf file with this. Is this .inf file is correct or needs to be changed?
    here is my .inf file:-

    ;
    ; 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"
    
    

Reply
  • i also have the .inf file with this. Is this .inf file is correct or needs to be changed?
    here is my .inf file:-

    ;
    ; 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"
    
    

Children
No data