• AVR Freaks

Hot!Failed to program PIC18F67K22 after location 14000

Author
markdem
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2011/05/21 18:34:17
  • Location: 0
  • Status: offline
2020/09/30 19:54:55 (permalink)
0

Failed to program PIC18F67K22 after location 14000

I have a PIC that will fail to program if the program goes over location 14000. The error I get is "Address: 14003 Expected Value: 4f Received Value: 0"
If I try this with a different PIC18F67K22 it will work.
 
If I comment out a large part of my program and make is smaller it works fine.
I have tried;
1. MPLAB X 5.20, 5.35 and 5.40 (PICKIT3 firmware changed each time)
2. Tried at 3.3v from external supply and PICKI3
3. Tried at 5v from PICKIT3
 
Nothing else is connected to the board.
 
I guess there is just something work with the PIC but before I bin it, is there anything I can try?
 
Thanks
#1

2 Replies Related Threads

    mbrowning
    USNA79
    • Total Posts : 1811
    • Reward points : 0
    • Joined: 2005/03/16 14:32:56
    • Location: Melbourne, FL
    • Status: online
    Re: Failed to program PIC18F67K22 after location 14000 2020/10/01 12:06:45 (permalink)
    0
    0x14000 is the start of a code protection block. If CP5 config bit is 0, then 14000 to 17fff will always read back 0. This may be a clue.
    #2
    1and0
    Access is Denied
    • Total Posts : 11343
    • Reward points : 0
    • Joined: 2007/05/06 12:03:20
    • Location: Harry's Gray Matter
    • Status: offline
    Re: Failed to program PIC18F67K22 after location 14000 2020/10/01 13:22:13 (permalink)
    #3
    Jump to:
    © 2020 APG vNext Commercial Version 4.5