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.

[SOLVED] PICKIT2 incorrect programming

Status
Not open for further replies.

usama14

Member level 5
Member level 5
Joined
Oct 31, 2015
Messages
90
Helped
0
Reputation
0
Reaction score
0
Trophy points
6
Activity points
756
Hello all.
I used pickit2 last week to program PIC18F4550 and PIC16F877A correctly. But now I tried to program them yesterday and it first showed an error of "PK error 0027" at some specified memory location for the PIC18F4550. Thinking it might be the microcontroller issue, I wrote a test program of LED blinking for PIC16F877A and programmed it. Pickit2 didnt show error for this one, but when I implement it on the breadboard, the output is totally undesireable (I turned RB0 on and off after every 3 seconds, but it is continuosly giving 3V at the specified output).
Any suggestions?
Thankyou.
 

If you look at the PicKit2 User Guide, Error 27 is "Failed verify".
Are you setting any "Code Protect" bits as this can cause the verification to fail (the MCU can't tell the difference between a verify immediately after programming and an attempt to read the program which is will not allow).
The User Guide also contains several other suggestions as to what can cause this error.
Susan
 
Are you using bought PICKIT2 or you own clone?
 
If you look at the PicKit2 User Guide, Error 27 is "Failed verify".
Are you setting any "Code Protect" bits as this can cause the verification to fail (the MCU can't tell the difference between a verify immediately after programming and an attempt to read the program which is will not allow).
The User Guide also contains several other suggestions as to what can cause this error.
Susan

Yes..Actually I found the problem. It was the connection issue that was creating the problems. I actually connected the PGM port to the PGD one...But ironically it worked well previous week for unknown reasons. But now it works fine.
Thanks for your help. :)

- - - Updated - - -

Are you using bought PICKIT2 or you own clone?

No, its the original one.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top