• AVR Freaks

AnsweredHot!Programming PIC16F18876, powering from PICkit 4, fails every other attempt

Author
awolfe
Starting Member
  • Total Posts : 79
  • Reward points : 0
  • Joined: 2009/08/20 09:52:07
  • Location: Ashland, OH
  • Status: offline
2019/03/28 05:29:26 (permalink)
0

Programming PIC16F18876, powering from PICkit 4, fails every other attempt

I am wanting to ICSP a PIC16F18876 device from a PICkit 4, powering from the PICkit 4.  Using MPLAB IPE, if I program multiple boards, the programming fails the first time, passes the second.  This happens consistently with multiple boards.  The failure is:
Erasing...
Verify failed.  [config mem] 0x8007, expected 0x2977, got 0x0
You have set the program speed to High. 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.
If I lower the speed to the lowest setting I get:
Erasing...
Verify failed.  [config mem] 0x8007, expected 0x2977, got 0x0
Programming did not complete.

If the board is externally powered, it succeeds every time.
 
It is very odd that it is very consistently every other attempt.  Even if I leave the same board attached, every other attempt to program fails.
 
I am using IPE version 5.10
Details from the output window:
Connecting to MPLAB PICkit 4...

Currently loaded versions:
Application version............00.04.03
Boot version...................01.00.00
Script version.................00.02.65
Script build number............69cc1f643c
PICkit 4 is supplying power to the target (5.00 volts).
Target device PIC16F18876 found.
Device Revision Id  = 0x0


A Wolfe
#1
qhb
Superb Member
  • Total Posts : 9993
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: online
Re: Programming PIC16F18876, powering from PICkit 4, fails every other attempt 2019/03/28 12:18:10 (permalink)
5 (1)
My guess is you have too much load or capacitance on the Vdd connection, and the PK4 cannot always lift it from ground to operating voltage quickly enough.
 

Only 7 to go...
#2
awolfe
Starting Member
  • Total Posts : 79
  • Reward points : 0
  • Joined: 2009/08/20 09:52:07
  • Location: Ashland, OH
  • Status: offline
Re: Programming PIC16F18876, powering from PICkit 4, fails every other attempt 2019/04/15 14:40:09 (permalink)
0
Sorry for the delayed response.  I hooked up my Saleae logic analyzer to the PICkit 4 and this is what it looks like (file attached).  To me, that looks like the PICkit is definitely acting differently every other programming cycle.
 

Attached Image(s)


A Wolfe
#3
DevMod1
Administrator
  • Total Posts : 446
  • Reward points : 0
  • Joined: 2009/02/10 09:34:30
  • Location: 0
  • Status: offline
Re: Programming PIC16F18876, powering from PICkit 4, fails every other attempt 2019/04/16 13:24:57 (permalink) ☼ Best Answerby awolfe 2019/04/18 14:31:03
0
Have you tried the latest MPLAB X v5.15 on the web??

_____________________________

Please read the forum posting guidelines. Do not double post, please help keep these forums professional and comments respectful.
Please notify the moderators of problems/spam/trolls.
#4
awolfe
Starting Member
  • Total Posts : 79
  • Reward points : 0
  • Joined: 2009/08/20 09:52:07
  • Location: Ashland, OH
  • Status: offline
Re: Programming PIC16F18876, powering from PICkit 4, fails every other attempt 2019/04/18 14:32:08 (permalink)
0
That fixed it.  I don't think MPLAB suggested that there was a new IDE available...
 
Thank you!

A Wolfe
#5
Jump to:
© 2019 APG vNext Commercial Version 4.5