• AVR Freaks

Error while trying to upload code to PIC (Verify failed)

Author
WD0UG
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2018/10/08 05:32:12
  • Location: Huntsville Alabama
  • Status: offline
2018/10/08 11:29:59 (permalink)
0

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:
Application version............00.04.00
Boot version...................01.00.00
Script version.................00.02.53
Script build number............825de4df13
Target voltage detected
Target device PIC16F628A found.
Device Id Revision = 0x5

Erasing...
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.

using:
  MPLAB X IDE v5.05
  mpasm (V5.81)


    TITLE "PIC16F628A_Test2"
    LIST   P=PIC16F628A
#include "p16f628a.inc"
 __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

setup
    GOTO    setup
    END
...that's all folks...
Thanks and 73 de WD0UG, Doug
 
#1

2 Replies Related Threads

    WD0UG
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2018/10/08 05:32:12
    • Location: Huntsville Alabama
    • Status: offline
    Re: Error while trying to upload code to PIC (Verify failed) 2018/10/18 08:53:38 (permalink)
    0
    Please close this
    #2
    NorthGuy
    Super Member
    • Total Posts : 5805
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: Error while trying to upload code to PIC (Verify failed) 2018/10/18 09:21:56 (permalink)
    0
    This is some sort of a bug. 0x2110 is what the config bits should be according to your program. PICkit4 should not expect 0x21ff.
     
    Regardless, it should work after programming.
     
    #3
    Jump to:
    © 2019 APG vNext Commercial Version 4.5