Error while trying to upload code to PIC (Verify failed)
I was coding along and at a certain point I got a weird error message. All the details are listed below. I'm using a new genuine PICkit 4 to program a PIC16F628A. It worked and worked and .... and then crashed. It just won't program this chip anymore. Any clues? Do the chips 'wear out'? Is the new PICkit 4 defective (I don't think so since I am able to program a PIC16F18326 with no problem). Is it operator error? Like I said, it changed from working to broken in an instant.Yes, I tried setting the programming speed to 'low', as recommended, but no joy. Please see this:
...results of latest session...
Connecting to MPLAB PICkit 4...
Currently loaded versions:
Script build number............825de4df13
Target voltage detected
Target device PIC16F628A found.
Device Id Revision = 0x5
Verify failed. [config mem] 0x2007, expected 0x21ff, got 0x2110
You have set the program speed to Normal. The circuit on your board may require you to slow the speed down. Please change the setting in the tool properties to low and try the operation again.
Programming did not complete.
MPLAB X IDE v5.05
__CONFIG _BOREN_OFF & _CP_OFF & _CPD_OFF & _PWRTE_ON & _LVP_OFF & _WDT_OFF & _MCLRE_OFF & _INTOSC_OSC_NOCLKOUT
#define _RESET_VECTOR 0x00 ; Address of Reset Vector
#define _INTERRUPT_VECTOR 0x04 ; Address of Interrupt Vector
#define _ON_CHIP_PROGRAM_MEMORY 0x20 ; Start of program memory
; Define variable address location names
CBLOCK _ON_CHIP_PROGRAM_MEMORY ; Starting at 20h in memory
COUNT1, CNT, TEMP
ENDC ; End of CBLOCK
ORG _RESET_VECTOR ; Set Program Origin to 00h (processor reset vector)
GOTO setup ; go to beginning of program
...that's all folks...
Thanks and 73 de WD0UG, Doug