2015-01-15 04:18 AM
I am using the kit below:
After installing the USB driver on windows7VCP_V1.3.1_Setup.exe
Note: I had to change Usbser.sys Serenum.sys to recognize♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯
[Version]Signature=''$Windows NT$''Class=PortsClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}Provider=%PRVDR%LayoutFile=layout.infDriverVer=22/03/2010,2.0.2200.2[Manufacturer]%MFGNAME%=VirComDevice,NT,NTamd64[DestinationDirs]DefaultDestDir = 12[VirComDevice.NT]%DESCRIPTION%=DriverInstall,USB\VID_1FC9&PID_2002[VirComDevice.NTamd64]%DESCRIPTION%=DriverInstall,USB\VID_1FC9&PID_2002[DriverInstall.NT]Include=mdmcpq.infCopyFiles=FakeModemCopyFileSectionAddReg=DriverInstall.NT.AddReg[DriverInstall.NT.AddReg]HKR,,DevLoader,,*ntkernHKR,,NTMPDriver,,serenum.sysHKR,,EnumPropPages32,,''MsPorts.dll,SerialPortPropPageProvider''[DriverInstall.NT.Services]AddService=serenum, 0x00000002, DriverServiceInst[DriverServiceInst]DisplayName=%SERVICE%ServiceType = 1 ; SERVICE_KERNEL_DRIVERStartType = 3 ; SERVICE_DEMAND_STARTErrorControl = 1 ; SERVICE_ERROR_NORMALServiceBinary= %12%\serenum.sysLoadOrderGroup = Base[Strings]PRVDR = ''ProviderNAME''MFGNAME = ''ManfNAME''DESCRIPTION = ''MyUSB_CDC''SERVICE = ''MyUSB_CDC driver''♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯After this, I opened the ST example for uVision4:C:\Keil\ARM\Examples\ST\STM32F10xUSBLib\Demos\Virtual_COM_Port\project
Modified the device to STM32F103RBT6 as my kit (STM32_SCHEMA.pdf)and the pins of USB Disconnect to GPIOD: 2 (usb_regs.c)&sharpdefine USB_DISCONNECT GPIOD
&sharpdefine USB_DISCONNECT_PIN GPIO_Pin_2Compiled and recorded the firmwareAt this moment I would like to know ifconnecting the USB cable to my computer the USB drivershould already be recognized by windows?????Thanks!!!! #stm32f103rbt6-usb-cdc-vcp-v1.3.12015-01-17 07:15 AM
> Note: I had to change Usbser.sys Serenum.sys to recognize
Do you really know, what Usbser.sys and Serenum.sys do, respectively? Usbser.sys is a USB CDC (Communication Device Class) driver on Windows. Serenum.sys is a serial enumerator filter driver, which is applied to serial drivers, including usbser.sys, as a upper filter driver, to add extra functionarity(*1). (*1)Features of Serial and Serenum http://msdn.microsoft.com/en-us/library/ff546505%28v=vs.85%29.aspx Serenum.sys is not directly applied to any device. You should not replace Usbser.sys with Serenum.sys Unless you've changed VID/PID of your CDC device, the driver (INF file) supplied by VCP_V1.3.1_Setup.exe should work on Windows (x86/x64) since WinXP. Tsuneo