PDA

View Full Version : Microchip CDC Firmware with My OWN VID/PID ?



viewgsm
- 3rd June 2007, 18:45
can we use Microchip CDC firmware and change the VID/PID to another one ?
or change the device name ?

Thanks

msalcher
- 8th June 2007, 02:33
You can change the devicename in the following file, find the String Definitions and change it as you need it.

..\fw\cdc\inf\win2k_winxp\mchpcdc.inf

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

[Strings]
MCHP="Microchip Technology Inc."
MFGNAME="Microchip Technology Inc."
DESCRIPTION="Communications Port"
SERVICE="USB RS-232 Emulation Driver"




If you want to change the VID/PID you have to change it in two files, in the mchpcdc.inf file for windows and in the usbdsc.c file for the pic. The VID and the PID must match in both files.

File:
..\fw\cdc\inf\win2k_winxp\mchpcdc.inf

[DeviceList]
%DESCRIPTION%=DriverInstall, USB\VID_04D8&PID_000A

and in this File:

..\fw\cdc\autofiles\usbdsc.c
(VID = Vendor ID and PID = Product ID)


/* Device Descriptor */
rom USB_DEV_DSC device_dsc=
{
sizeof(USB_DEV_DSC), // Size of this descriptor in bytes
DSC_DEV, // DEVICE descriptor type
0x0200, // USB Spec Release Number in BCD format
CDC_DEVICE, // Class Code
0x00, // Subclass code
0x00, // Protocol code
EP0_BUFF_SIZE, // Max packet size for EP0, see usbcfg.h
0x04D8, // Vendor ID
0x000A, // Product ID: CDC RS-232 Emulation Demo
0x0000, // Device release number in BCD format
0x01, // Manufacturer string index
0x02, // Product string index
0x00, // Device serial number string index
0x01 // Number of possible configurations
};