PIC18F13K22 Failed to program device

Discussion in 'General Electronics Chat' started by adrenalina, Sep 18, 2014.

  1. adrenalina

    Thread Starter Active Member

    Jan 4, 2011
    78
    3
    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
     
  2. ISB123

    Well-Known Member

    May 21, 2014
    1,239
    527
    At what voltage are you programming?
     
  3. adrenalina

    Thread Starter Active Member

    Jan 4, 2011
    78
    3
    5V
     
  4. ISB123

    Well-Known Member

    May 21, 2014
    1,239
    527
    Are you using voltage from the programmer module(target power) or external?
     
  5. adrenalina

    Thread Starter Active Member

    Jan 4, 2011
    78
    3
    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.
     
  6. Sensacell

    Well-Known Member

    Jun 19, 2012
    1,130
    266
    Sometimes the programmer gets 'hung up' - if this happens again, close MPLAB, unplug the Pickit3 and start over, this should reset everything.
     
Loading...