| 
      
      
      From: Xiaofan C. <xia...@gm...> - 2006-08-24 23:26:44
      
     | 
| On 8/24/06, Stephan Meyer <ste...@we...> wrote: > > Have you tried to install/update the driver by using the DLL's > (undocumented) usb_install_driver_np function? > > You can call it from the command line through its rundll interface: > > rundll32 libusb0.dll,usb_install_driver_np_rundll your_inf_file.inf > > > Stephan > Wow, it works! Now the libusb-win32 program can talk to PICkit 2 again. Thanks a lot! Maybe it is a good idea to document this in the libusb-win32 distribution. C:\Myprog\pickit\pk2-2.02-beta1>pk2 -device PK2 version 2.02 beta 1 - 2006/08/21 pk2 -device Locating USB Microchip PICkit2 (vendor 0x04d8/product 0x0033) found 5 busses Found USB PICkit as device '\\.\libusb0-0000--0x04d8-0x0033' on USB bus bus-0 Communication established. PICkit2 firmware version is 1.21.0 Device ID 0x1060 PIC16F628A Rev 4 found Family: Midrange Program size: 0x800 (2048) words, width 0x3fff Eeprom size: 0x80 (128) bytes ID location: 0x0 ID size: 0x4 (4) bytes Device ID 0x1060 Write burst 1 Program command P Program mode 1 Program timing N Data timing D Erase mode 0 CP mask 0x2100 Bandgap mask 0x0000 0x0000 Config mask 0x21ff Save osccal 0 Save bandgap 0 Command table 63 00 02 03 04 05 06 08 18 0a 09 0b ff ff ff ff Regards, Xiaofan |