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?