"Connection Failed." with MPLAB X 2.30, PICkit 3, PIC12F675

Author
KrisBlueNZ
New Member
  • Total Posts : 11
  • Reward points : 0
  • Joined: 2014/01/29 06:27:39
  • Location: 0
  • Status: offline
2015/02/24 10:16:09 (permalink)
0

"Connection Failed." with MPLAB X 2.30, PICkit 3, PIC12F675

Hi all :-)
 
I'm having a consistent problem programming the PIC12F675 in my board. My code assembles, but will not download to the target. I get the following messages:
 
------------------------------
Connecting to MPLAB PICkit 3...
Firmware Suite Version.....01.35.16
Firmware type..............Midrange

PICkit 3 is trying to supply 5.000000 volts from the USB port, but the target VDD is measured to be 4.750000 volts. This could be due to the USB port power capabilities or the target circuitry affecting the measured VDD.

The target circuit may require more power than the debug tool can provide. An external power supply might be necessary.
Connection Failed.
------------------------------
 
I have a genuine Microchip PICkit 3, labelled Assy# 10-00424-R7 Serial# BUR140361602. That serial number appears in the Dashboard pane in the Debug Tool section. I've tried unplugging the USB connection, waiting ten seconds and replugging, and that doesn't help. (It used to fix problems in the past.)
 
I am using the PICkit 3 to supply power to my target board. I've assembled one board with only the PIC, a 33k pullup on -MCLR/VPP, a 0.1 µF decoupler, and the programming connector (6-pin 0.1" header). There is no load on VDD apart from the PIC. VDD is about 4.75V, as reported in the message. I've checked that the programming connector has continuity, the pins are connected to the right places, and pin 1 matches pin 1 on the PICkit 3.
 
I've tried two PICs - markings as follows:
 
#1:
12F675
E/P e3 4RV (the "e3" is in a circle)
M 0944 (the "M" is the Microchip logo)
 
#2:
12F675
E/P e3 4PC (the "e3" is in a circle)
M 1026 (the "M" is the Microchip logo)
 
I'm relatively new to the Microchip development system and the PICkit 3 and this is the first time I've used it in earnest, though I am an experienced embedded systems developer and electronics engineer.
 
I'm running Windows 7 SP1 on an Asus P550LA laptop. The MPLAB X About box says:
Product Version: MPLAB X IDE v2.30
Java: 1.7.0_67; Java HotSpot(TM) 64-Bit Server VM 24.65-b04
System: Windows 7 version 6.1 running on amd64; Cp1252; en_ZA (mplab) (That's a lie about the CPU being AMD; it's Intel.)
Userdir: C:\Users\Kris\AppData\Roaming\.mplab_ide\dev\v2.30
 
Does anyone have any suggestions? Thanks in advance!
 
#1

6 Replies Related Threads

    Medic
    New Member
    • Total Posts : 24
    • Reward points : 0
    • Joined: 2012/01/05 20:33:18
    • Location: 0
    • Status: offline
    Re: "Connection Failed." with MPLAB X 2.30, PICkit 3, PIC12F675 2015/02/25 18:49:38 (permalink)
    0
     
    I had this exact issue too on a PIC24F board I've been programming with a PICKIT 3 successfully without issue for over 2 years.
     
    It's only started after I updated to v2.30 of MPLAB X.
    I backed out to v2.15 and everything works fine again.
    #2
    ric
    Super Member
    • Total Posts : 22098
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: "Connection Failed." with MPLAB X 2.30, PICkit 3, PIC12F675 2015/02/25 18:58:08 (permalink)
    +2 (2)
    It sounds like the voltage coming out your laptop's USB port is low.
    Try either:
    [1] Reduce the voltage the PICkit is trying to supply to the device from 5.0V to 4.7V, or
    [2] Connect the PICkit3 to the laptop via a powered USB hub.

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #3
    whoisjim
    New Member
    • Total Posts : 4
    • Reward points : 0
    • Joined: 2007/05/14 02:04:03
    • Location: 0
    • Status: offline
    Re: "Connection Failed." with MPLAB X 2.30, PICkit 3, PIC12F675 2015/02/26 03:17:22 (permalink)
    +1 (1)
    I had the same issue
    The target circuit may require more power than the debug tool can provide. An external power supply might be necessary.
    Connection Failed.
    After I upgraded from windows 7 to windows 8.1. It turned out that 'advanced power management' was switching off the pickit3 after plugging it in. To resolve this issue I needed to tweak the registry as detailed here:
    blogs.msdn.com/b/usbcoreblog/archive/2013/11/08/help-after-installing-windows-8-1-my-usb-device-doesn-t-charge-or-it-disconnects-and-reconnects-frequently.aspx
     
    Symptoms:
    pickit3 power and active LEDs would be on, but not the status LED.
     
    Hitting 'program' immediately after connecting the pickit3 USB cable would sometimes work.
     
    I had a breadboard wired up with a microchip demo USB program on it, that flashes an LED whilst waiting for a program to bind to the device. Normally it would continue flashing indefinitely, but instead it was stopping after ~5sec. 
     
    I tried supplying independent power to the project, I no longer had the message
    The target circuit may require more power than the debug tool can provide. An external power supply might be necessary.But I would still get
    Connection Failed.
     
    post edited by whoisjim - 2015/02/26 03:23:41
    #4
    VincenzoV
    New Member
    • Total Posts : 28
    • Reward points : 0
    • Joined: 2011/02/06 10:41:25
    • Location: Monticello Brianza - LC - Italy
    • Status: offline
    Re: "Connection Failed." with MPLAB X 2.30, PICkit 3, PIC12F675 2015/03/21 15:16:26 (permalink)
    +2 (2)
    You need to change with regedit.exe a register key: HKEY_LOCAL_MACHINE → SYSTEM →  CurrentControlSet → Enum → USB → VID_04D8&PID_900A → BURxxxxxxxx → Device Parameters → EnhancedPowerManagementEnabled. Set it to "0"
     
    (or HKEY_LOCAL_MACHINE → SYSTEM →  CurrentControlSet → Enum → USB → VID_04D8&PID_0033 → BURxxxxxxxx → Device Parameters → EnhancedPowerManagementEnabled for PICkit2)

    Vincenzo Villa - https://www.vincenzov.net
    #5
    jonesy
    Super Member
    • Total Posts : 199
    • Reward points : 0
    • Joined: 2012/09/18 06:16:43
    • Location: 0
    • Status: offline
    Re: "Connection Failed." with MPLAB X 2.30, PICkit 3, PIC12F675 2015/03/27 09:27:51 (permalink)
    0
    Well, FWIW, here is what I did today.  I'd been programming with a 32mx675f512H board all day.  I accidentally unplugged pk3 from mplabx 2.10 to plug in a printer.  I did my printing, plugged pk3 back in, but kept getting the failed to connect message.  I swapped over to IPE and it connected ok, and for the rest of the day I used this work around - compiling with mplabx and programming with ipe.
    I rebooted this morning, but the same error message from mplabx, but ok on IPE.  Tried every trick going, but same problem.  I did notice that it would connect ok with a 16f, but it simply would not play with a 32mx. USB enumeration was ok on USBVIEW.
    Eventually I downloaded labx 2.35.  I got the same error initially, but power cycled pk3, and labx updated the FW from 01.31.20 to 01.36.10 (pic32mx).  Programming ok now.
    Compilation time has halved from 32s to 15s (xc32 1.31) -  and it wasnt due to the parallel make option!
    #6
    Hammered
    New Member
    • Total Posts : 1
    • Reward points : 0
    • Joined: 2015/03/28 16:56:34
    • Location: 0
    • Status: offline
    Re: "Connection Failed." with MPLAB X 2.30, PICkit 3, PIC12F675 2015/03/28 18:03:08 (permalink)
    0
    Thank you jonesy!  I had a very similar setup with the same error and this fixed it.  My first PIC project so I was almost ready to give up.
    #7
    Jump to:
    © 2017 APG vNext Commercial Version 4.5