cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F103RBT6 - USB DRIVER

erisson
Associate II
Posted on January 15, 2015 at 13:18

I am using the kit below:

http://www.dx.com/p/mini-stm32-stm32f103rbt6-development-board-w-2-8-tft-lcd-touch-screen-157301♯.VLeslivF-Sg

After installing the USB driver on windows7

VCP_V1.3.1_Setup.exe

Note: I had to change Usbser.sys Serenum.sys to recognize

♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯♯

[Version]

Signature=''$Windows NT$''

Class=Ports

ClassGuid={4D36E978-E325-11CE-BFC1-08002BE10318}

Provider=%PRVDR%

LayoutFile=layout.inf

DriverVer=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.inf

CopyFiles=FakeModemCopyFileSection

AddReg=DriverInstall.NT.AddReg

[DriverInstall.NT.AddReg]

HKR,,DevLoader,,*ntkern

HKR,,NTMPDriver,,serenum.sys

HKR,,EnumPropPages32,,''MsPorts.dll,SerialPortPropPageProvider''

[DriverInstall.NT.Services]

AddService=serenum, 0x00000002, DriverServiceInst

[DriverServiceInst]

DisplayName=%SERVICE%

ServiceType = 1 ; SERVICE_KERNEL_DRIVER

StartType = 3 ; SERVICE_DEMAND_START

ErrorControl = 1 ; SERVICE_ERROR_NORMAL

ServiceBinary= %12%\serenum.sys

LoadOrderGroup = 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_2

Compiled and recorded the firmware

At this moment I would like to know if

connecting the USB cable to my computer the USB driver

should already be recognized by windows?????

Thanks!!!!

#stm32f103rbt6-usb-cdc-vcp-v1.3.1
1 REPLY 1
tsuneo
Senior
Posted on January 17, 2015 at 16:15

> 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