Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] Need help Pic16f877A using pickit3 error "Failed to program device"

Status
Not open for further replies.

rasp

Newbie level 2
Joined
Jun 27, 2016
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
23
I'm trying to connect a PIC16F877A to program it in MPLAB X IDE, but I'm getting an error about target device ID.

My breadboard: **broken link removed**

MPLAB X:
Code:
Currently loaded firmware on PICkit 3
Firmware Suite Version.....01.43.35
Firmware type..............Midrange

Programmer to target power is enabled - VDD = 5,000000 volts.
Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device.

The following memory area(s) will be programmed:
program memory: start address = 0x0, end address = 0x7

Device Erased...

Programming...
program memory
Address: 0 Expected Value: 2803 Received Value: 0
Failed to program device
 

Re: [PIC] Need help Pic16f877A using pickit3 error "Failed to program device"

Connection looks fine.
What i can suggest you is to give power supply externally.
You are using pgc pgd only connect pgm also, though not necessary but still sometimes such things happen.

I faced such issues several times in my life, some works by supplying power externally, some works by complete connection, some works by using crystal oscillator also.

At last you can use, pic kit3 to program any other micro to see it is fine or not.
Change micro as well.
 

Re: [PIC] Need help Pic16f877A using pickit3 error "Failed to program device"

You must have bypass capacitors for a start.
Also I looks like you are only connecting some of the Vdd and Vss pins - they ALL need to be connected.
Susan
 
Re: [PIC] Need help Pic16f877A using pickit3 error "Failed to program device"

Hi,

Which compiler you are using. XC8 or anyother?

Amit
 

Re: [PIC] Need help Pic16f877A using pickit3 error "Failed to program device"

Silly questions, but are you sure that you are using a PIC16F877A? Are you sure that you have not got the PGD and PGC swapped over?
 

Re: [PIC] Need help Pic16f877A using pickit3 error "Failed to program device"

Sorry about my disappearance. I connected the other 2 Vcc and Vss, then MPLAB X IDE said that the current was high and failed to program. Then I moved the jumpers in the breadboard, this time didn't popup that warning, but it still failed to program. The error was that it was expecting a value for the beginning and end, and found another. So I think I fried the PIC. I'm waiting another one to come in under 10 days. Thank for the help folks! Really appreciated.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top