AnsweredAssumed Answered

STM32F103RBT6 - USB DRIVER

Question asked by siqueira.erisson.001 on Jan 15, 2015
Latest reply on Jan 17, 2015 by Chinzei.Tsuneo
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)
   #define USB_DISCONNECT GPIOD
   #define 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!!!!

Attachments

Outcomes