Update to ST-LINK_USB_V2_1_Driver
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
This commit is contained in:
parent
c949572f52
commit
7a4f2c8d1d
14 changed files with 217 additions and 211 deletions
BIN
win/stlink/ST-LINK_USB_V2_1_Driver/amd64/WdfCoInstaller01009.dll
Normal file
BIN
win/stlink/ST-LINK_USB_V2_1_Driver/amd64/WdfCoInstaller01009.dll
Normal file
Binary file not shown.
BIN
win/stlink/ST-LINK_USB_V2_1_Driver/amd64/winusbcoinstaller2.dll
Normal file
BIN
win/stlink/ST-LINK_USB_V2_1_Driver/amd64/winusbcoinstaller2.dll
Normal file
Binary file not shown.
|
|
@ -1,74 +1,74 @@
|
||||||
|
|
||||||
;
|
;
|
||||||
; Installs the Virtual COM port interface of ST-Link based composite devices.
|
; Installs the Virtual COM port interface of ST-Link based composite devices.
|
||||||
;
|
;
|
||||||
|
|
||||||
[Version]
|
[Version]
|
||||||
Signature = "$Windows NT$"
|
Signature = "$Windows NT$"
|
||||||
Class = Ports
|
Class = Ports
|
||||||
ClassGUID = {4D36E978-E325-11CE-BFC1-08002BE10318}
|
ClassGUID = {4D36E978-E325-11CE-BFC1-08002BE10318}
|
||||||
Provider = %ManufacturerName%
|
Provider = %ManufacturerName%
|
||||||
CatalogFile.NTx86 = STLinkVCP_x86.cat
|
CatalogFile.NTx86 = STLinkVCP_x86.cat
|
||||||
CatalogFile.NTAMD64 = STLinkVCP_x64.cat
|
CatalogFile.NTAMD64 = STLinkVCP_x64.cat
|
||||||
DriverVer=12/10/2013,1.0
|
DriverVer=12/10/2013,1.0
|
||||||
|
|
||||||
; ========== Manufacturer/Models sections ===========
|
; ========== Manufacturer/Models sections ===========
|
||||||
|
|
||||||
[Manufacturer]
|
[Manufacturer]
|
||||||
%ManufacturerName% = Standard,NTx86,NTamd64
|
%ManufacturerName% = Standard,NTx86,NTamd64
|
||||||
|
|
||||||
; List of devices supporting the Virtual COM port (with the corresponding interface ID)
|
; List of devices supporting the Virtual COM port (with the corresponding interface ID)
|
||||||
[Standard.NTx86]
|
[Standard.NTx86]
|
||||||
%DeviceNameVCP% =USB_InstallVCP, USB\VID_0483&PID_374A&MI_02
|
%DeviceNameVCP% =USB_InstallVCP, USB\VID_0483&PID_374A&MI_02
|
||||||
%DeviceNameVCP% =USB_InstallVCP, USB\VID_0483&PID_374B&MI_02
|
%DeviceNameVCP% =USB_InstallVCP, USB\VID_0483&PID_374B&MI_02
|
||||||
%DeviceNameVCP% =USB_InstallVCP, USB\VID_0483&PID_374C&MI_01
|
%DeviceNameVCP% =USB_InstallVCP, USB\VID_0483&PID_374C&MI_01
|
||||||
|
|
||||||
[Standard.NTamd64]
|
[Standard.NTamd64]
|
||||||
%DeviceNameVCP% =USB_InstallVCP, USB\VID_0483&PID_374A&MI_02
|
%DeviceNameVCP% =USB_InstallVCP, USB\VID_0483&PID_374A&MI_02
|
||||||
%DeviceNameVCP% =USB_InstallVCP, USB\VID_0483&PID_374B&MI_02
|
%DeviceNameVCP% =USB_InstallVCP, USB\VID_0483&PID_374B&MI_02
|
||||||
%DeviceNameVCP% =USB_InstallVCP, USB\VID_0483&PID_374C&MI_01
|
%DeviceNameVCP% =USB_InstallVCP, USB\VID_0483&PID_374C&MI_01
|
||||||
|
|
||||||
; ========== Class definition ===========
|
; ========== Class definition ===========
|
||||||
|
|
||||||
[ClassInstall32]
|
[ClassInstall32]
|
||||||
AddReg = ClassInstall_AddReg
|
AddReg = ClassInstall_AddReg
|
||||||
|
|
||||||
[ClassInstall_AddReg]
|
[ClassInstall_AddReg]
|
||||||
HKR,,,,%ClassName%
|
HKR,,,,%ClassName%
|
||||||
HKR,,NoInstallClass,,1
|
HKR,,NoInstallClass,,1
|
||||||
HKR,,IconPath,%REG_MULTI_SZ%,"%systemroot%\system32\setupapi.dll,-20"
|
HKR,,IconPath,%REG_MULTI_SZ%,"%systemroot%\system32\setupapi.dll,-20"
|
||||||
HKR,,LowerLogoVersion,,5.2
|
HKR,,LowerLogoVersion,,5.2
|
||||||
|
|
||||||
; =================== Installation ===================
|
; =================== Installation ===================
|
||||||
|
|
||||||
[USB_InstallVCP]
|
[USB_InstallVCP]
|
||||||
Include = mdmcpq.inf
|
Include = mdmcpq.inf
|
||||||
CopyFiles = FakeModemCopyFileSection
|
CopyFiles = FakeModemCopyFileSection
|
||||||
AddReg = USB_InstallVCP.AddReg
|
AddReg = USB_InstallVCP.AddReg
|
||||||
|
|
||||||
[USB_InstallVCP.AddReg]
|
[USB_InstallVCP.AddReg]
|
||||||
HKR,,DevLoader,,*ntkern
|
HKR,,DevLoader,,*ntkern
|
||||||
HKR,,NTMPDriver,,usbser.sys
|
HKR,,NTMPDriver,,usbser.sys
|
||||||
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
|
HKR,,EnumPropPages32,,"MsPorts.dll,SerialPortPropPageProvider"
|
||||||
|
|
||||||
[USB_InstallVCP.Services]
|
[USB_InstallVCP.Services]
|
||||||
AddService=usbser, 0x00000002, DriverService
|
AddService=usbser, 0x00000002, DriverService
|
||||||
|
|
||||||
[DriverService]
|
[DriverService]
|
||||||
DisplayName=%DeviceNameVCP%
|
DisplayName=%DeviceNameVCP%
|
||||||
ServiceType=1
|
ServiceType=1
|
||||||
StartType=3
|
StartType=3
|
||||||
ErrorControl=1
|
ErrorControl=1
|
||||||
ServiceBinary=%12%\usbser.sys
|
ServiceBinary=%12%\usbser.sys
|
||||||
|
|
||||||
; [DestinationDirs]
|
; [DestinationDirs]
|
||||||
; If your INF needs to copy files, you must not use the DefaultDestDir directive here.
|
; If your INF needs to copy files, you must not use the DefaultDestDir directive here.
|
||||||
; You must explicitly reference all file-list-section names in this section.
|
; You must explicitly reference all file-list-section names in this section.
|
||||||
|
|
||||||
; =================== Strings ===================
|
; =================== Strings ===================
|
||||||
|
|
||||||
[Strings]
|
[Strings]
|
||||||
ManufacturerName="STMicroelectronics"
|
ManufacturerName="STMicroelectronics"
|
||||||
ClassName="Universal Serial Bus devices"
|
ClassName="Universal Serial Bus devices"
|
||||||
DeviceNameVCP="STMicroelectronics STLink Virtual COM Port"
|
DeviceNameVCP="STMicroelectronics STLink Virtual COM Port"
|
||||||
REG_MULTI_SZ = 0x00010000
|
REG_MULTI_SZ = 0x00010000
|
||||||
|
|
@ -1,120 +1,135 @@
|
||||||
;
|
;
|
||||||
; Installation INF for the STMicroelectronics STLINK for Windows XP SP2 or later.
|
; Installation INF for the STMicroelectronics STLINK for Windows XP SP2 or later.
|
||||||
;
|
;
|
||||||
|
|
||||||
[Version]
|
[Version]
|
||||||
Signature = "$Windows NT$"
|
Signature = "$Windows NT$"
|
||||||
Class = STLinkWinUSB
|
Class = STLinkWinUSB
|
||||||
ClassGUID = {88BAE032-5A81-49f0-BC3D-A4FF138216D6}
|
ClassGUID = {88BAE032-5A81-49f0-BC3D-A4FF138216D6}
|
||||||
Provider = %ManufacturerName%
|
Provider = %ManufacturerName%
|
||||||
CatalogFile.NTx86 = STLinkDbgWinUSB_x86.cat
|
CatalogFile.NTx86 = STLinkDbgWinUSB_x86.cat
|
||||||
CatalogFile.NTAMD64 = STLinkDbgWinUSB_x64.cat
|
CatalogFile.NTAMD64 = STLinkDbgWinUSB_x64.cat
|
||||||
DriverVer=12/10/2013,1.01
|
DriverVer=01/21/2013,1.01
|
||||||
|
|
||||||
; ========== Manufacturer/Models sections ===========
|
; ========== Manufacturer/Models sections ===========
|
||||||
|
|
||||||
[Manufacturer]
|
[Manufacturer]
|
||||||
%ManufacturerName% = Standard,NTx86,NTamd64
|
%ManufacturerName% = Standard,NTx86,NTamd64
|
||||||
|
|
||||||
[Standard.NTx86]
|
[Standard.NTx86]
|
||||||
%DeviceName% =USB_Install, USB\VID_0483&PID_3748
|
%DeviceName% =USB_Install, USB\VID_0483&PID_3748
|
||||||
%DeviceName% =USB_Install, USB\VID_0483&PID_374A&MI_00
|
%DeviceName% =USB_Install, USB\VID_0483&PID_374A&MI_00
|
||||||
%DeviceName% =USB_Install, USB\VID_0483&PID_374B&MI_00
|
%DeviceName% =USB_Install, USB\VID_0483&PID_374B&MI_00
|
||||||
%DeviceNameRW% =USB_InstallRW, USB\VID_0483&PID_374A&MI_01
|
%DeviceNameRW% =USB_InstallRW, USB\VID_0483&PID_374A&MI_01
|
||||||
|
|
||||||
[Standard.NTamd64]
|
[Standard.NTamd64]
|
||||||
%DeviceName% =USB_Install, USB\VID_0483&PID_3748
|
%DeviceName% =USB_Install, USB\VID_0483&PID_3748
|
||||||
%DeviceName% =USB_Install, USB\VID_0483&PID_374A&MI_00
|
%DeviceName% =USB_Install, USB\VID_0483&PID_374A&MI_00
|
||||||
%DeviceName% =USB_Install, USB\VID_0483&PID_374B&MI_00
|
%DeviceName% =USB_Install, USB\VID_0483&PID_374B&MI_00
|
||||||
%DeviceNameRW% =USB_InstallRW, USB\VID_0483&PID_374A&MI_01
|
%DeviceNameRW% =USB_InstallRW, USB\VID_0483&PID_374A&MI_01
|
||||||
|
|
||||||
; ========== Class definition ===========
|
; ========== Class definition ===========
|
||||||
|
|
||||||
[ClassInstall32]
|
[ClassInstall32]
|
||||||
AddReg = ClassInstall_AddReg
|
AddReg = ClassInstall_AddReg
|
||||||
|
|
||||||
[ClassInstall_AddReg]
|
[ClassInstall_AddReg]
|
||||||
HKR,,,,%ClassName%
|
HKR,,,,%ClassName%
|
||||||
HKR,,NoInstallClass,,1
|
HKR,,NoInstallClass,,1
|
||||||
HKR,,IconPath,%REG_MULTI_SZ%,"%systemroot%\system32\setupapi.dll,-20"
|
HKR,,IconPath,%REG_MULTI_SZ%,"%systemroot%\system32\setupapi.dll,-20"
|
||||||
HKR,,LowerLogoVersion,,5.2
|
HKR,,LowerLogoVersion,,5.2
|
||||||
|
|
||||||
; =================== Installation ===================
|
; =================== Installation ===================
|
||||||
|
|
||||||
[USB_Install]
|
[USB_Install]
|
||||||
Include = winusb.inf
|
Include = winusb.inf
|
||||||
Needs = WINUSB.NT
|
Needs = WINUSB.NT
|
||||||
|
|
||||||
[USB_InstallRW]
|
[USB_InstallRW]
|
||||||
Include = winusb.inf
|
Include = winusb.inf
|
||||||
Needs = WINUSB.NT
|
Needs = WINUSB.NT
|
||||||
|
|
||||||
[USB_Install.Services]
|
[USB_Install.Services]
|
||||||
Include =winusb.inf
|
Include =winusb.inf
|
||||||
Addservice = WinUSB, 0x00000002, WinUSB_ServiceInstall
|
Addservice = WinUSB, 0x00000002, WinUSB_ServiceInstall
|
||||||
|
|
||||||
[USB_InstallRW.Services]
|
[USB_InstallRW.Services]
|
||||||
Include =winusb.inf
|
Include =winusb.inf
|
||||||
Addservice = WinUSB, 0x00000002, WinUSB_ServiceInstall
|
Addservice = WinUSB, 0x00000002, WinUSB_ServiceInstall
|
||||||
|
|
||||||
[WinUSB_ServiceInstall]
|
[WinUSB_ServiceInstall]
|
||||||
DisplayName = %WinUSB_SvcDesc%
|
DisplayName = %WinUSB_SvcDesc%
|
||||||
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
|
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
|
||||||
StartType = 3 ; SERVICE_DEMAND_START
|
StartType = 3 ; SERVICE_DEMAND_START
|
||||||
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
|
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
|
||||||
ServiceBinary = %12%\WinUSB.sys
|
ServiceBinary = %12%\WinUSB.sys
|
||||||
|
|
||||||
[USB_Install.Wdf]
|
[USB_Install.Wdf]
|
||||||
KmdfService=WINUSB, WinUsb_Install
|
KmdfService=WINUSB, WinUsb_Install
|
||||||
|
|
||||||
[USB_InstallRW.Wdf]
|
[USB_InstallRW.Wdf]
|
||||||
KmdfService=WINUSB, WinUsb_Install
|
KmdfService=WINUSB, WinUsb_Install
|
||||||
|
|
||||||
[WinUsb_Install]
|
[WinUsb_Install]
|
||||||
KmdfLibraryVersion=1.9
|
KmdfLibraryVersion=1.9
|
||||||
|
|
||||||
[WinUsb_InstallRW]
|
[USB_Install.HW]
|
||||||
KmdfLibraryVersion=1.9
|
AddReg=Dev_AddReg
|
||||||
|
|
||||||
[USB_Install.HW]
|
[USB_InstallRW.HW]
|
||||||
AddReg=Dev_AddReg
|
AddReg=Dev_AddRegRW
|
||||||
|
|
||||||
[USB_InstallRW.HW]
|
[Dev_AddReg]
|
||||||
AddReg=Dev_AddRegRW
|
HKR,,DeviceInterfaceGUIDs,0x10000,%STLink_GUID%
|
||||||
|
|
||||||
[Dev_AddReg]
|
[Dev_AddRegRW]
|
||||||
HKR,,DeviceInterfaceGUIDs,0x10000,%STLink_GUID%
|
HKR,,DeviceInterfaceGUIDs,0x10000,%STLink_GUID_RW%
|
||||||
|
|
||||||
[Dev_AddRegRW]
|
[USB_Install.CoInstallers]
|
||||||
HKR,,DeviceInterfaceGUIDs,0x10000,%STLink_GUID_RW%
|
AddReg=CoInstallers_AddReg
|
||||||
|
CopyFiles=CoInstallers_CopyFiles
|
||||||
[USB_Install.CoInstallers]
|
|
||||||
AddReg=CoInstallers_AddReg
|
[USB_InstallRW.CoInstallers]
|
||||||
%11%/WinUSBCoInstaller2.dll
|
AddReg=CoInstallers_AddReg
|
||||||
%11%/WdfCoInstaller01009.dll
|
CopyFiles=CoInstallers_CopyFiles
|
||||||
|
|
||||||
[USB_InstallRW.CoInstallers]
|
[CoInstallers_CopyFiles]
|
||||||
AddReg=CoInstallers_AddReg
|
WinUSBCoInstaller2.dll
|
||||||
%11%/WinUSBCoInstaller2.dll
|
WdfCoInstaller01009.dll
|
||||||
%11%/WdfCoInstaller01009.dll
|
|
||||||
|
[CoInstallers_AddReg]
|
||||||
[CoInstallers_AddReg]
|
HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01009.dll,WdfCoInstaller","WinUSBCoInstaller2.dll"
|
||||||
HKR,,CoInstallers32,0x00010000,"WdfCoInstaller01009.dll,WdfCoInstaller","WinUSBCoInstaller2.dll"
|
|
||||||
|
[DestinationDirs]
|
||||||
; [DestinationDirs]
|
; If your INF needs to copy files, you must not use the DefaultDestDir directive here.
|
||||||
; If your INF needs to copy files, you must not use the DefaultDestDir directive here.
|
; You must explicitly reference all file-list-section names in this section.
|
||||||
; You must explicitly reference all file-list-section names in this section.
|
CoInstallers_CopyFiles=11
|
||||||
|
|
||||||
; =================== Strings ===================
|
; ================= Source Media Section =====================
|
||||||
|
|
||||||
[Strings]
|
[SourceDisksNames]
|
||||||
ManufacturerName="STMicroelectronics"
|
1 = %DISK_NAME%,,,\x86
|
||||||
ClassName="Universal Serial Bus devices"
|
2 = %DISK_NAME%,,,\amd64
|
||||||
DeviceName="STMicroelectronics STLink dongle"
|
|
||||||
DeviceNameRW="STMicroelectronics STLink dongle RW"
|
[SourceDisksFiles.x86]
|
||||||
WinUSB_SvcDesc="WinUSB Driver for STLink"
|
WinUSBCoInstaller2.dll=1
|
||||||
REG_MULTI_SZ = 0x00010000
|
WdfCoInstaller01009.dll=1
|
||||||
|
|
||||||
;------------Replace GUID below with custom GUID-------------;
|
[SourceDisksFiles.amd64]
|
||||||
STLink_GUID="{DBCE1CD9-A320-4b51-A365-A0C3F3C5FB29}"
|
WinUSBCoInstaller2.dll=2
|
||||||
STLink_GUID_RW="{8326506F-7260-4854-9C03-26E416F04494}"
|
WdfCoInstaller01009.dll=2
|
||||||
|
|
||||||
|
; =================== Strings ===================
|
||||||
|
|
||||||
|
[Strings]
|
||||||
|
ManufacturerName="STMicroelectronics"
|
||||||
|
ClassName="Universal Serial Bus devices"
|
||||||
|
DeviceName="STMicroelectronics STLink dongle"
|
||||||
|
DeviceNameRW="STMicroelectronics STLink dongle RW"
|
||||||
|
WinUSB_SvcDesc="WinUSB Driver for STLink"
|
||||||
|
REG_MULTI_SZ = 0x00010000
|
||||||
|
DISK_NAME="WinUSB coinstallers sources on disk"
|
||||||
|
|
||||||
|
;------------Replace GUID below with custom GUID-------------;
|
||||||
|
STLink_GUID="{DBCE1CD9-A320-4b51-A365-A0C3F3C5FB29}"
|
||||||
|
STLink_GUID_RW="{8326506F-7260-4854-9C03-26E416F04494}"
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
@echo off
|
@echo off
|
||||||
if "%PROCESSOR_ARCHITEW6432%" == "AMD64" goto X64
|
if "%PROCESSOR_ARCHITEW6432%" == "AMD64" goto X64
|
||||||
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" goto X64
|
if "%PROCESSOR_ARCHITECTURE%" == "AMD64" goto X64
|
||||||
start "" dpinst_x86.exe
|
start "" dpinst_x86.exe
|
||||||
goto END
|
goto END
|
||||||
:X64
|
:X64
|
||||||
start "" dpinst_amd64.exe
|
start "" dpinst_amd64.exe
|
||||||
:END
|
:END
|
||||||
Binary file not shown.
Binary file not shown.
BIN
win/stlink/ST-LINK_USB_V2_1_Driver/x86/WdfCoInstaller01009.dll
Normal file
BIN
win/stlink/ST-LINK_USB_V2_1_Driver/x86/WdfCoInstaller01009.dll
Normal file
Binary file not shown.
BIN
win/stlink/ST-LINK_USB_V2_1_Driver/x86/winusbcoinstaller2.dll
Normal file
BIN
win/stlink/ST-LINK_USB_V2_1_Driver/x86/winusbcoinstaller2.dll
Normal file
Binary file not shown.
|
|
@ -1,9 +0,0 @@
|
||||||
@echo off
|
|
||||||
if "%PROCESSOR_ARCHITECTURE%"=="x86" goto X86
|
|
||||||
dpinst_amd64.exe /u stlink_dbg_winusb.inf
|
|
||||||
dpinst_amd64.exe /u stlink_VCP.inf
|
|
||||||
goto END
|
|
||||||
:X86
|
|
||||||
dpinst_x86.exe /u stlink_dbg_winusb.inf
|
|
||||||
dpinst_x86.exe /u stlink_VCP.inf
|
|
||||||
:END
|
|
||||||
Loading…
Reference in a new issue