PIC16f877A first 8 bytes destroyed after closing PicKit2 programmer app....
Hello to the forum,
Using PicKit2 i write/verify a hex file on 16F877A , all ok.
I even load another file and back read the 877A and all still ok.
BUT then i close the pickit application,
when i re-open Pickit application and read the 877A the first 8 bytes are FF , the rest bytes are proper.
My program has nothing to do with on-the-fly code-programming to overwrite the first 8 program memory bytes ...
The program is (now only a simple port-toggle , problem is still happening ...)
OPTION_REG.7 = 0 ; ENABLE PORTB PULLUPS
LOOP:
portb.0 = not portb.0
GOTO LOOP