|
From: Xiaofan C. <xia...@gm...> - 2007-06-26 21:18:58
|
On 6/26/07, Stephan Meyer <ste...@we...> wrote: > > And if I want to try out a libusb based program ported from Linux, how do I > > use the HID backend (without using the device driver)? > > You can just use the libusb API as if the HID would be a 'normal' libusb > based device. > Somehow this does not work yet. It fails to find PICKit 2 with this approach. If I "update" the HID driver to the libusb-win32 device driver, then it works. XFCHEN@APSGSGPXFCHEN /c/Myprog/pickit/pk2-3.00-alpha10 $ ./pk2.exe -on PK2 version 3.00 alpha 10 - 2007/06/10 Fatal error> Could not find PICkit2 programmer-- you might try lsusb to see if it's actually there. If I am using the libusb-win32 device driver, then it seems to work. XFCHEN@APSGSGPXFCHEN /c/Myprog/pickit/pk2-3.00-alpha10 $ ./pk2.exe -on PK2 version 3.00 alpha 10 - 2007/06/10 Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033) LIBUSB-DLL - trace: usb_init(): dll version: 1.0.0.0 Found USB PICkit as device 'dev0002' on USB bus /bus0 Communication established. PICkit2 firmware version is 2.2.0 |