Amontec JTAGkey and libusb under Vista 32-bit
Luca Ottaviano <lottaviano <at> develer.com>
2009-07-27 15:59:33 GMT
Hi all,
I can't get a device recognized under Vista. I'm using Amontec JTAGkey
to flash an embedded board using Openocd; the problem is that WinXp
correctly recognizes the device, while Vista doesn't.
These are the what I'm doing to install the driver:
- download binary distribution (libusb-win32-device-bin-0.1.12.2.tar.gz)
- extract the archive and create an .inf file (see attachment) using inf
wizard and edit to suit my system
- attach the device; when prompted for drivers, use the directory bin/.
The driver for both channels seem properly installed
- run testlibusb-win, which will report the message "Couldn't retrieve
descriptors"
If I run testlibusb under WinXp, instead, I get the listing of all
device's properties.
If I try to run Openocd, it segfaults when trying to access to the
device (which is reasonable, as it's not correctly installed).
Versions used:
libusb: 0.12.2
openocd: 0.2.0
I've also tried to use libusb-filter, which however it's not the
recommended method to install the driver, without luck.
Do you have any clues on how to make it work?
--
Ing. Luca Ottaviano - lottaviano <at> develer.com
Develer S.r.l. - http://www.develer.com/
.hardware . software .innovation
Tel.: +39 055 3986627 - ext.: 218
[Version]
Signature = "$Chicago$"
provider = %manufacturer%
DriverVer = 07/07/2009,0.1.12.2
CatalogFile = libusb.cat
CatalogFile.NT = libusb.cat
CatalogFile.NTAMD64 = libusb_x64.cat
Class = LibUsbDevices
ClassGUID = {EB781AAF-9C70-4523-A5DF-642A87ECA567}
[ClassInstall]
AddReg=libusb_class_install_add_reg
[ClassInstall32]
AddReg=libusb_class_install_add_reg
[libusb_class_install_add_reg]
HKR,,,,"LibUSB-Win32 Devices"
HKR,,Icon,,"-20"
[Manufacturer]
%manufacturer%=Devices,NT
;--------------------------------------------------------------------------
; Files
;--------------------------------------------------------------------------
[SourceDisksNames]
1 = "Libusb-Win32 Driver Installation Disk",,
[SourceDisksFiles]
libusb0.sys = 1,,
libusb0.dll = 1,,
[DestinationDirs]
libusb_files_sys = 10,system32\drivers
libusb_files_dll = 10,system32
[libusb_files_sys]
libusb0.sys
[libusb_files_dll]
libusb0.dll
;--------------------------------------------------------------------------
; Device driver
;--------------------------------------------------------------------------
[LIBUSB_DEV]
CopyFiles = libusb_files_sys, libusb_files_dll
AddReg = libusb_add_reg
[LIBUSB_DEV.NT]
CopyFiles = libusb_files_sys, libusb_files_dll
[LIBUSB_DEV.HW]
DelReg = libusb_del_reg_hw
AddReg = libusb_add_reg_hw
[LIBUSB_DEV.NT.HW]
DelReg = libusb_del_reg_hw
AddReg = libusb_add_reg_hw
[LIBUSB_DEV.NT.Services]
AddService = libusb0, 0x00000002, libusb_add_service
[libusb_add_reg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,libusb0.sys
; Older versions of this .inf file installed filter drivers. They are not
; needed any more and must be removed
[libusb_del_reg_hw]
HKR,,LowerFilters
HKR,,UpperFilters
; Device properties
[libusb_add_reg_hw]
HKR,,SurpriseRemovalOK, 0x00010001, 1
;--------------------------------------------------------------------------
; Services
;--------------------------------------------------------------------------
[libusb_add_service]
DisplayName = "LibUsb-Win32 - Kernel Driver 07/07/2009, 0.1.12.2"
ServiceType = 1
StartType = 3
ErrorControl = 0
ServiceBinary = %12%\libusb0.sys
;--------------------------------------------------------------------------
; Devices
;--------------------------------------------------------------------------
[Devices]
"Amontec JTAGkey (Channel A)"=LIBUSB_DEV, USB\VID_0403&PID_cff8&MI_00
"Amontec JTAGkey (Channel B)"=LIBUSB_DEV, USB\VID_0403&PID_cff8&MI_01
"egnite Turtelizer 2 (Channel A)"=LIBUSB_DEV, USB\VID_0403&PID_bdc8&MI_00
"JTAG-lock-pick - USB <=> JTAG adapter"=LIBUSB_DEV, USB\VID_0403&PID_cff8&MI_00
[Devices.NT]
"Amontec JTAGkey (Channel A)"=LIBUSB_DEV, USB\VID_0403&PID_cff8&MI_00
"Amontec JTAGkey (Channel B)"=LIBUSB_DEV, USB\VID_0403&PID_cff8&MI_01
"egnite Turtelizer 2 (Channel A)"=LIBUSB_DEV, USB\VID_0403&PID_bdc8&MI_00
"JTAG-lock-pick - USB <=> JTAG adapter"=LIBUSB_DEV, USB\VID_0403&PID_cff8&MI_00
;--------------------------------------------------------------------------
; Strings
;--------------------------------------------------------------------------
[Strings]
manufacturer = "Amontec"
------------------------------------------------------------------------------
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel