Helpful ReplyHot!PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware

Page: 123 > Showing page 1 of 3
Author
kevd
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2011/11/16 06:11:28
  • Location: 0
  • Status: offline
2011/11/16 07:44:35 (permalink)
0

PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware

Hi, I am trying to program a PIC32 with MPLAB X and a PICKit 3. My OS is Windows 7 64-bit. I installed the driver (I tested both windows default and Microchip driver), I installed Java in last 32 and 64 bits versions and tested them both. I'm running everything as administrator. When MPLAB tries to connect to the PICKit 3 after build and load, it returns this message :

BUILD SUCCESSFUL (total time: 554ms)
Loading E:/Kev/Documents/EPL/ELEC21/ELEC2531-ElectroniqueII/Travail6/MyApp_v1/MyApp_v1/dist/default/production/MyApp_v1.production.elf...
Configuration Bits: address 0x1FC02FF0: USERID = 65535 does not match any valid value in the device database. Setting it to the default value.
Loading completed
Connecting to programmer...
The programmer could not be started: Could not connect to tool hardware: PICkit3PlatformTool, com.microchip.mplab.mdbcore.PICKit3Tool.PICkit3DbgToolManager

My PICKit is plugged and detected by both Windows and MPLAB X (in the project properties). I'm not the only one who has this issue (with a similar configuration). I've tried everything I could... Can anyone help me ?
post edited by kevd - 2011/11/16 07:50:47
#1
JMH08
Super Member
  • Total Posts : 440
  • Reward points : 0
  • Joined: 2008/02/11 14:19:16
  • Location: 0
  • Status: offline
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2011/11/18 14:36:41 (permalink)
0
The error you are seing doesn't necessarily have to do with USB communications (although it might) so let's start with the basics. Please let me know what version of MPLABX you are using and what device you are trying to debug?
#2
kevd
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2011/11/16 06:11:28
  • Location: 0
  • Status: offline
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2011/11/19 04:56:18 (permalink)
0
Thanks for your answer. I'm trying to program a custom PIC32 device (designed by my teacher) which, btw, is working fine with other computers. The exact reference is PIC32MX795F512H. I'm using the last version of MPLAX X (i.e. Beta 7.12).
I see the PICKit3 in the project properties when it is connected but MPLAB does not seem to connect.
I thought of a software conflict... is it possible ? If so do you have any idea of how can I troubleshoot and fix it ?
post edited by kevd - 2011/11/19 05:02:59
#3
kevd
New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2011/11/16 06:11:28
  • Location: 0
  • Status: offline
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2011/11/19 05:39:14 (permalink)
0
I just noticed that in the bottom right corner of MPLAB, we can click to see Java Exception. It says that:

java.lang.NullPointerException
at com.microchip.mplab.mdbcore.PICKit3Tool.PK3DbgToolCom.BlockSend(PK3DbgToolCom.java:85)
at com.microchip.mplab.mdbcore.RealICETool.RIDbgToolCommands.InitComm(RIDbgToolCommands.java:95)
at com.microchip.mplab.mdbcore.RealICETool.RIDbgToolBase.CheckForUSBInit(RIDbgToolBase.java:989)
at com.microchip.mplab.mdbcore.RealICETool.RIDbgToolBase.InternalConnect(RIDbgToolBase.java:317)
at com.microchip.mplab.mdbcore.RealICETool.RIDbgToolBase$ConnectThread.run(RIDbgToolBase.java:7246)
[catch] at java.lang.Thread.run(Unknown Source)

Maybe it will help ?
#4
Guest
Super Member
  • Total Posts : 80499
  • Reward points : 0
  • Joined: 2003/01/01 00:00:00
  • Location: 0
  • Status: online
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2011/11/20 09:06:23 (permalink)
0
I finally found an alternative solution! I don't know why but in windows safe mode, MPLABX is able to connect my PICKit3. So...
1) its not a driver issue
2) its not an installation issue
3) its not a java issue...

Furthermore, in normal mode, I can use the software PICKit3 Programmer V1.0.0.0. It detects and connects my PICKit3 and succeed to program my PIC32. All I have to do is to export the Built project from MPLABX into a hex file, import the hex file with PICKit3 Programmer and program it. I'm not fully happy with this pseudo-solution but well... it works. If I find out why MPLAB does not want to connect the PICKit in normal mode I'll tell you. Maybe the bug will be fixed in a next release.
#5
JMH08
Super Member
  • Total Posts : 440
  • Reward points : 0
  • Joined: 2008/02/11 14:19:16
  • Location: 0
  • Status: offline
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2011/11/21 10:32:35 (permalink)
0
One thing that caught my attention was the fact that you are also using the PICkit stand alone program as well.  You can't have more than one application connected to the PICkit at the same time. Make sure that the stand alone program is closed when you try to connect to MPLAB X.
#6
Guest
Super Member
  • Total Posts : 80499
  • Reward points : 0
  • Joined: 2003/01/01 00:00:00
  • Location: 0
  • Status: online
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2011/12/04 13:04:24 (permalink)
0
I have exactly the same issue :-( Does anybody have any idea to help us ? Thanks in advance.
#7
Guest
Super Member
  • Total Posts : 80499
  • Reward points : 0
  • Joined: 2003/01/01 00:00:00
  • Location: 0
  • Status: online
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2012/02/13 05:44:26 (permalink)
0
I have the same problem! Any solution?
#8
Leonimer
Starting Member
  • Total Posts : 33
  • Reward points : 0
  • Joined: 2009/07/18 04:23:41
  • Location: 0
  • Status: offline
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2012/02/14 09:08:14 (permalink)
0
dear friend. I'm experiencing the same problems. I can not connect with my PICkit3 using the MPLAB X. Using MPLAB 8 all stufs works perfectly. I think it's a bug in MPLAB X V1.0. Let's wait for a new version!
#9
Guest
Super Member
  • Total Posts : 80499
  • Reward points : 0
  • Joined: 2003/01/01 00:00:00
  • Location: 0
  • Status: online
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2012/03/16 08:45:15 (permalink)
0
I had the same issue, and it turned out to be because I had MBLAB 8 open at the same time.  The PICkit3 was connecting to MPLAB 8 instead of MPLAB X v1.0.  So I just closed MPLAB 8, and now it works fine.  
#10
Guest
Super Member
  • Total Posts : 80499
  • Reward points : 0
  • Joined: 2003/01/01 00:00:00
  • Location: 0
  • Status: online
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2012/05/24 23:39:59 (permalink)
0 (2)
I FOUND THE SOLUTION. I got a hint from the above reply saying that it worked in Safemode, but not in normal mode.
I had the same issue in both MPLAB(v8.85) and MPLAB-X(v1.10) in Windows7 64bit. Both couldn't connect Pickit3.
 
Solution:
When you execute either MPLAB or MPLABX, you can run the program as an administrator. Then, it works beautifully~! For those who don't know how to run it as an administrator, you can right-click on the icon, then go to "properties", go to "Compatibility" tab, make sure "Run this program as an administrator" box is checked. Enjoy~!!
 
#11
Guest
Super Member
  • Total Posts : 80499
  • Reward points : 0
  • Joined: 2003/01/01 00:00:00
  • Location: 0
  • Status: online
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2012/05/29 13:52:33 (permalink)
0
this, didn't work for me
 
do you have another tip??
 
thanks
#12
meereck
Starting Member
  • Total Posts : 86
  • Reward points : 0
  • Joined: 2006/10/23 08:19:19
  • Location: 0
  • Status: offline
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2012/05/31 02:52:15 (permalink)
0
I can confirm that MPLABX does not see the Pickit3 when I run it as a normal user.
If I run the MPLABX as administrator, Pickit3 works properly.
I do NOT think this is a bug in MPLABX since I am experiencing the same issue with some other applications and other USB interfaces (such as logic analyser and its GUI app).
Using Windows7 64bit.
 
I have no clue where the problem is, I would guess somewhere in Windows USB permissions.
Possilble problematic apps: MS Virtual PC (USB sharing), NOD32 antivirus
Guys, do we have anything in common?
 
Cheers, Meereck
post edited by meereck - 2012/05/31 02:59:31
#13
bartt
Super Member
  • Total Posts : 130
  • Reward points : 0
  • Joined: 2012/06/27 15:16:52
  • Location: Left coast
  • Status: offline
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2012/07/26 15:32:35 (permalink)
0
Try turning UAC off. Windoze strikes again..
 
#14
~Maddy~
Senior Member
  • Total Posts : 153
  • Reward points : 0
  • Joined: 2012/08/03 21:06:18
  • Status: offline
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2012/08/16 03:33:17 (permalink) ☄ Helpfulby gurcankivci 2014/11/09 10:48:42
+1 (1)
kevd

Hi, I am trying to program a PIC32 with MPLAB X and a PICKit 3. My OS is Windows 7 64-bit. I installed the driver (I tested both windows default and Microchip driver), I installed Java in last 32 and 64 bits versions and tested them both. I'm running everything as administrator. When MPLAB tries to connect to the PICKit 3 after build and load, it returns this message :

BUILD SUCCESSFUL (total time: 554ms)
Loading E:/Kev/Documents/EPL/ELEC21/ELEC2531-ElectroniqueII/Travail6/MyApp_v1/MyApp_v1/dist/default/production/MyApp_v1.production.elf...
Configuration Bits: address 0x1FC02FF0: USERID = 65535 does not match any valid value in the device database. Setting it to the default value.
Loading completed
Connecting to programmer...
The programmer could not be started: Could not connect to tool hardware: PICkit3PlatformTool, com.microchip.mplab.mdbcore.PICKit3Tool.PICkit3DbgToolManager

My PICKit is plugged and detected by both Windows and MPLAB X (in the project properties). I'm not the only one who has this issue (with a similar configuration). I've tried everything I could... Can anyone help me ?

 
When you go to Properties of your project Which Hardware Tool you had selected? Instead of selecting PIC Kit 3 Serial Number Select PIC Kit 3 Main Tree Only. I was getting same error and it is solved once I have selected this way.
#15
Guest
Super Member
  • Total Posts : 80499
  • Reward points : 0
  • Joined: 2003/01/01 00:00:00
  • Location: 0
  • Status: online
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2012/08/20 22:24:17 (permalink)
+2 (1)
Let me report my case.  I apologize my poor English.

OS: Windows7 64bit
Solution: Update PICKit3's firmware with MPLAB v8.

This was first time I make PIC-program.
My Target IC is PIC24FJ64GB002 on "RT-ADK mini" .
I installed MPLABX v1.30 and C30. (the sample-program I wanted to
compile needed C30)
I tried also "Run In Administrator" but I didn't succeed  to write .hex to PIC.

So I tried MPLAB v8.86 and connected PICKit3.
I did that in menu ...
* Configure -> Select Device  "PIC24FJ64GB002"
* Programmer -> Select Programmer  "PICKit3"
 
Then MPLAB v8 updated PICKit3's firmware to below.

Firmware Suite Version...... 01.27.20
Firmware type......................dsPIC33F/24F/24H


I succeeded to write .hex to PIC. :-)


Next, I stopped MPLAB v8.86 and started MPLAB X v1.30 .
I succeeded to write with tool button.


I hope this information helps someone.
Thank you.
 
#16
Guest
Super Member
  • Total Posts : 80499
  • Reward points : 0
  • Joined: 2003/01/01 00:00:00
  • Location: 0
  • Status: online
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2012/09/20 00:59:55 (permalink)
0
Hi,
I tried to solve the same issue by installing MPLAB 8.87 and updating the PICkit 3 firmware as described Dirk_G in another thread. This didn't help as MPLABX 1.3 produced the following:
Connecting to MPLAB PICkit 3...
Firmware Suite Version.....01.28.02
Firmware type..............Enhanced Midrange
Target detected
Target Device ID (0x3fe0) does not match expected Device ID (0x2760).
The following memory area(s) will be programmed:
"
program memory: start address = 0x0, end address = 0x7ff
configuration memory
Programming...
program memory
Address: 0 Expected Value: 3180 Received Value: 0
Failed to program device
"
I've tried running the
Note, I try to program PIC16F1825 so the message that the device ID read (0x3fe0) does not match with the expected is incorrect because I do manage to program in safe mode. But it's not very convenient to work in safe mode as no office program runs in there and the screen resolution is 800x600.
know.
#17
Guest
Super Member
  • Total Posts : 80499
  • Reward points : 0
  • Joined: 2003/01/01 00:00:00
  • Location: 0
  • Status: online
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2012/09/20 13:30:16 (permalink) ☄ Helpfulby SAMO6 2017/04/09 05:10:06
+3 (2)
A way to work fine when change from Pickit3 standalone to MPLAB, is that you have to change opertation mode, but how ? easy ... Tools> Revert MPLAB mode. You'll have to do the same to use with Pickit3 standalone again !
#18
oscarserna
New Member
  • Total Posts : 18
  • Reward points : 0
  • Joined: 2008/04/24 07:50:31
  • Location: Barranquilla - Colombia
  • Status: offline
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2012/09/27 08:04:38 (permalink)
0
I find the solution, just to change the USB port on Windows 7 and the program star to update pickit3, this USB port must be different to used by MPLAB8 (I uninstalled to it):MPLABX: 1.41Pickit 3: fimware: 1.28.07 Windows 7
Message =))).Connecting to MPLAB PICkit 3...Firmware Suite Version.....01.28.07Firmware type..............PIC18FJTarget detectedDevice ID Revision = 3The following memory area(s) will be read:program memory: start address = 0x0, end address = 0x1fff7configuration memoryReading...Read complete
You can write me
oscarsernabarranquilla@gmail.com
post edited by oscarserna - 2012/09/27 09:01:52
#19
Guest
Super Member
  • Total Posts : 80499
  • Reward points : 0
  • Joined: 2003/01/01 00:00:00
  • Location: 0
  • Status: online
Re:PICKit 3 Connection Failed MPLAB X Could not connect to tool hardware 2012/09/27 23:26:41 (permalink)
0
Hi,
 
My Pickit3 worked only in safe mode. Therefor I investigated which driver was the problem.
The following program caused the problem:
Name: LaunchHPOSIAPP
Path:  c:\program files (x86)\hewlett-packard\hp mainstream keyboard\launchapp.exe
I used the freeware program Autoruns  (see http://technet.microsoft.com/en-us/sysinternals) to disable this program in the tab Logon.
 
You can use autoruns to disable the drivers at logon and try which one cause the incompatibility.
 
Hope this helps you.
Succes!
 
Wim
#20
Page: 123 > Showing page 1 of 3
Jump to:
© 2017 APG vNext Commercial Version 4.5