• AVR Freaks

Hot!PIC Verify Failed: expected 2802, got 2800.

Author
HungryBadger
New Member
  • Total Posts : 9
  • Reward points : 0
  • Joined: 2018/11/10 06:23:47
  • Location: United Kingdom
  • Status: offline
2021/03/05 10:42:56 (permalink)
0

PIC Verify Failed: expected 2802, got 2800.

So, after a few attempts at hot air SMD soldering, I finally got a QFN package PIC16F18344 to program (I think I cooked the previous ones). I'm using a PICKIT 4 and managed to program a simple blinky sketch just fine ~2 hours ago. Now I'm trying to reprogram the chip and it's throwing the same error over and over again:
 
MPLAB X IDE
Verify failed.  [ Pgm ] at 0x1, expected 0x00002802, got 0x00002800

 
I've been trying for at least an hour now with both the PICKIT 3 and PICKIT 4 to try to get this to program and I'm having no luck. I can read the device successfully, I can erase the device successfully, I just can't program the device successfully, any ideas why?
 
There are NO external components interfering (literally none even mounted to the PCB, just the PICKIT and the micro), the connections are fine (no shorts or anything) otherwise things like reading and erasing would fail. Switching between HVP and LVP makes no difference either. The PICKIT 4 is supplying 5V (which should easily be enough) and the chip itself isn't getting hot at all.
 
The only anomaly is that the PICKIT 3 doesn't detect 5V on VDD, although dropping to a lower programming voltage, or using the PICKIT 4 @ 5V works fine. PICKIT 3 throws an identical error by the way.
 
Any ideas people? Is this a symptom of ESD or something?
#1

3 Replies Related Threads

    MBedder
    Circuit breaker
    • Total Posts : 6988
    • Reward points : 0
    • Joined: 2008/05/30 11:24:01
    • Location: Zelenograd, Russia
    • Status: offline
    Re: PIC Verify Failed: expected 2802, got 2800. 2021/03/05 10:54:52 (permalink)
    0
    Have you provided absolutely every condition listed on page 20 of the datasheet?
    #2
    NorthGuy
    Super Member
    • Total Posts : 6589
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: online
    Re: PIC Verify Failed: expected 2802, got 2800. 2021/03/05 11:11:12 (permalink)
    0
    Can you read the contents of the chip after you erase the chip and verify that you get 0x3fff at all locations (especially at address 0x01)?
    #3
    HungryBadger
    New Member
    • Total Posts : 9
    • Reward points : 0
    • Joined: 2018/11/10 06:23:47
    • Location: United Kingdom
    • Status: offline
    Re: PIC Verify Failed: expected 2802, got 2800. 2021/03/10 08:08:21 (permalink)
    0
    NorthGuy
    Can you read the contents of the chip after you erase the chip and verify that you get 0x3fff at all locations (especially at address 0x01)?

     
    I think it might have been a very marginal solder joint (i.e. marginal enough to be making contact when still warm but not at room temperature)? I de-soldered and re-soldered the exact chip and have had no issues since then. So I'm guessing the chip wasn't fried. I've also seen that failure of verification is often down to incorrect connections between PIC and PICKIT... Still interesting how it never threw any errors at any point whilst reading or erasing the chip though.
    #4
    Jump to:
    © 2021 APG vNext Commercial Version 4.5