![]() Note: One INF file can be used for multiple devices with different VID and PIDs. Modify the below line to use your VID and PID. application program and the firmware on the microcontroller must match. ![]() When developing your USB device, the VID and PID used in the PC side HKR,EnumPropPages32,"MsPorts.dll,SerialPortPropPageProvider"ĪddService=usbser, 0x00000002, DriverService.ntĪddService=usbser, 0x00000002, DriverService.NTamd64 Copyright (C) 2007 Microchip Technology Inc.ĬlassGuid= Copyright (c) 2000 Microsoft Corporation But you need to run it as administrator and use the following switch (I have it in a batch file): If this happens, you can delete the extra instances using the Device Manager. Otherwise you get a LOT of COM ports (I once had up to COM20) and some application software cannot handle port numbers beyond an arbitrary limit. ![]() This causes the device to enumerate to the same COM port number when plugged into various USB ports. ![]() You can add multiple devices for the driver as indicated in the comments of the text, but there was a missing or misplaced comma that caused an error.Īlso note that I added a serial number to the descriptors. And I think there was a subtle bug in the driver supplied by Microchip that caused problems. You will need to change it for your own VID and PID and descriptor strings and such to match what's in your code. I have a USB device using the PIC18F2550 and it has a CDC driver that works with my hardware on Vista and Win7.
0 Comments
Leave a Reply. |