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 virtual comm

Hello friends,

I am trying to implement USB virtual comm on lpc2148 board

I am referring AN801 USB Virtual comport.zip code

which has following files

Demo.c - main entry of the sample software
Demo.h - definitions and include file for the main entry
Startup.s - boot-up file
Type.h - various type definition
Usb.h - USB descriptor data structures and class definitions
Usbcfg.h - USB configuration header file
Usbcore.c - USB standard class request, USB command processor
Usbcore.h - definition and include file for usbcore.c
Usbdesc.c - USB descriptor configuration
Usbdesc.h - definition and include file for usbdesc.c
Usbhw.c - USB hardware initialization and lower-level driver APIs
Usbhw.h - prototyping for usbhw.c
Usbreg.h - hardware USB block register definitions for LPC214x
Vcomuser.c - Virtual COM port configuration and physical COM port APIs
Vcomuser.h - endpoint event definition and include files for vcomuser.c
Virtualcom.prj - Keil uVision III project file

I am stuck in demo.c if ( Data2Host0 || Data2Host1 )
to find out the problem i put few print statements in some functions
when i connect my device to usb the pc is not giving any warning like usb detected...
please help me....

Parents Reply Children
  • I said, it isn't a firmware problem, but PC side.
    When the PC driver would be installed without error, the driver should put Set_Configuration request (Select_Configuration URB) at enumeration. As your LPC chip doesn't see Set_Configuration, there should be trouble on driver installation.

    Check Device Manager on your PC.

    Tsuneo

  • Dear Tsuneo chinzei, am working on IAR evalution board (LPC2148) for USB virtual com. The sample code from keil is not working in this board.

    Let me know wether it'll work or not, if possible what are the changes to be done?

    wait 4 ur reply

    thanking you....