November 23, 2024, 05:00:56 AM

PIC-KIT3 getting started?

Started by awallin, April 05, 2016, 01:16:26 PM

Previous topic - Next topic

awallin

Hi all,

The first time I connected my Olimex PIC-KIT3 the USB-driver installed OK and the PIC-KIT3 showed up in MPLAB X.

However when I tried to program my device, I got an error message about insufficient power through USB. The error came when trying to upgrade the firmware in the programmer itself I think (some reference to dsPIC33F I think).

Now I can't get the PIC-KIT3 drivers to install correctly on Windows anymore! Device manager has "USB input device" but with an "!" error icon on it. Status says "This device cannot start. (Code 10)" - and ofcourse MPLAB X doesn't find the device.
When plugging in the USB, device-manager repeatedly refreshes for many times, and after this reports that the driver could not be installed.

Any ideas on how to proceed? I tried this on another Windows 7 machine with the same result. I also tried it with an external +12VDC powersupply connected to the PIC-KIT3 but no change.

Thanks!

awallin

/var/log/syslog on Ubuntu 14.04LTS shows the following. However MPLAB X always hangs when creating a new project so I am not sure if MPLAB X sees the device or not..

Apr  5 13:29:22  kernel: [ 6558.044711] usb 3-2: new full-speed USB device number 4 using xhci_hcd
Apr  5 13:29:22  kernel: [ 6558.174810] usb 3-2: New USB device found, idVendor=04d8, idProduct=900a
Apr  5 13:29:22  kernel: [ 6558.174816] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr  5 13:29:22  kernel: [ 6558.174819] usb 3-2: Product: PICkit 3
Apr  5 13:29:22  kernel: [ 6558.174821] usb 3-2: Manufacturer: Microchip Technology Inc.
Apr  5 13:29:22  kernel: [ 6558.174823] usb 3-2: SerialNumber: OLI360000312
Apr  5 13:29:22  kernel: [ 6558.175318] usb 3-2: can't set config #1, error -71
Apr  5 13:29:22  kernel: [ 6558.175471] usb 3-2: USB disconnect, device number 4
Apr  5 13:29:25  kernel: [ 6561.410234] usb 3-2: new full-speed USB device number 5 using xhci_hcd
Apr  5 13:29:25  kernel: [ 6561.540356] usb 3-2: New USB device found, idVendor=04d8, idProduct=900a
Apr  5 13:29:25  kernel: [ 6561.540361] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr  5 13:29:25  kernel: [ 6561.540364] usb 3-2: Product: PICkit 3
Apr  5 13:29:25  kernel: [ 6561.540366] usb 3-2: Manufacturer: Microchip Technology Inc.
Apr  5 13:29:25  kernel: [ 6561.540369] usb 3-2: SerialNumber: OLI360000312
Apr  5 13:29:30  mtp-probe: checking bus 3, device 5: "/sys/devices/pci0000:00/0000:00:14.0/usb3/3-2"
Apr  5 13:29:30  mtp-probe: bus: 3, device: 5 was not an MTP device
Apr  5 13:29:30  kernel: [ 6566.541298] usbhid 3-2:1.0: can't add hid device: -71
Apr  5 13:29:30  kernel: [ 6566.541318] usbhid: probe of 3-2:1.0 failed with error -71

awallin

have now tried entering bootloader mode by holding down the button while connecting USB. no change - tried about a dozen times.
Two different windows machines, both fail to install the driver.

Can't go on to "manual download of firmware" as suggested by manual because IPE or MPLAB doesn't find the device at all.

my PIC-KIT3 seems bricked then...

LubOlimex

Hey,

Use PICKit 3 programmer application to revert the firmware - download and install the "PICkit 3 Programmer App and Scripting Tool v3.10"; then try if it detects the PIC-KIT3. If it does - use it to upload PIC programmer operating system and then to revert to MPLAB mode. The software tool can be found here:

http://ww1.microchip.com/downloads/en/DeviceDoc/PICkit3%20Programmer%20Application%20v3.10.zip


Once inside click "Tools" –> "Check communication" and then "Tools" –> "Download PICKit Operating System". If the upgrade is successful click "Tools –> Revert to MPLAB" mode. Try with MPLAB again.

Note that it sometimes hangs during reverting so give it a few tries until it completes the two procedures without error messages and without hanging.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex