PIC18F13K22 Failed to program device

Thread Starter

adrenalina

Joined Jan 4, 2011
78
Hello everybody. I was hoping that you could help me with a problem I'm having. I was programming a PIC perfectly until I started getting the following message. It seems to be a problem in the configuration bits. Have any of you had a similar problem before. I tried searching online, but didn't find information.

Connecting to MPLAB PICkit 3...
Firmware Suite Version.....01.27.15
Firmware type..............PIC18F

Target detected
Device ID Revision = a

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

Programming...
configuration memory
Address: 300006 Expected Value: 81 Received Value: 85
Failed to program device
 

Thread Starter

adrenalina

Joined Jan 4, 2011
78
It's external Power. Somehow the problem was fixed. When I got the error I was trying to simply download the program, then I tried debugging and that worked. After debugging I tried loading the program again and it worked. I really don't understand how it was fixed, but I am now able to program the PIC again.
 

Sensacell

Joined Jun 19, 2012
3,447
Sometimes the programmer gets 'hung up' - if this happens again, close MPLAB, unplug the Pickit3 and start over, this should reset everything.
 
Top