AnsweredHot!board won't program anymore

Author
Zachary Vander Klippe
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2015/04/20 12:49:27
  • Location: 0
  • Status: offline
2015/05/19 13:57:09 (permalink)
0

board won't program anymore

I've just started getting the below error when trying to program a pic24fj256GB206
 
Target Device ID (0xffff0000) does not match expected Device ID (0x41040000).
 
It's been a trouble board for a while now, I accidentally shorted out a resistor feeding an LED and we figured that the micro had been damaged.  Anyway we replaced the micro and have been having difficulty ever since, sometimes it will program and other times it won't. currently It is resetting every three seconds or so, which i can tell because it is sending its initialization prompt through the serial port over and over again.  I have two identical boards actually, they are well on their way to being finished and as soon as I am done the software development I will only need one working board, however for testing purposes I need to be able to program both boards.    I'm just wondering if anyone has Ideas on what could cause the ID to be interpreted as 0xffff0000.   
#1
TJ2015
The New Math
  • Total Posts : 491
  • Reward points : 0
  • Joined: 2015/04/19 11:38:37
  • Location: OSI
  • Status: offline
Re: board won't program anymore 2015/05/19 14:16:18 (permalink)
4 (2)
What are you programming it with?
 
How are you powering the board?
#2
NKurzman
A Guy on the Net
  • Total Posts : 16282
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: offline
Re: board won't program anymore 2015/05/19 14:26:34 (permalink)
4 (2)
What Chip Package?
How good was the solder?
#3
Zachary Vander Klippe
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2015/04/20 12:49:27
  • Location: 0
  • Status: offline
Re: board won't program anymore 2015/05/20 06:26:46 (permalink)
0
I've been programming with a n ICD 3 from the start,  power is external and comes in at 5v, there is a 3.3v linear regulator on the board for powering the micro.  This micro was selected because it has a number of 5v tolerant pins which greatly simplified the design.
#4
Zachary Vander Klippe
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2015/04/20 12:49:27
  • Location: 0
  • Status: offline
Re: board won't program anymore 2015/05/20 06:48:49 (permalink)
0
ummm chip package is the 64-Pin TQFP.   Solder is a likely problem, these chips are hard to solder the first time, after lifting the micro and adding a new one we had to jumper a few wires because there were some through holes under the micro that lost connection.     Clearly connections could be an issue, but i wasn't sure if that could cause an ID error to appear as 0xffff0000.
 
#5
NKurzman
A Guy on the Net
  • Total Posts : 16282
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: offline
Re: board won't program anymore 2015/05/20 07:00:02 (permalink)
5 (1)
I am pretty sure you have shorts or Opens.
get a loupe and inspect.
 
There is also the possibility the chip was over heated during soldering, and damaged.
#6
Zachary Vander Klippe
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2015/04/20 12:49:27
  • Location: 0
  • Status: offline
Re: board won't program anymore 2015/05/20 07:04:58 (permalink)
0
I was just now able to program it again, all I did was leave it sit overnight with the power off.  I think the chip is fine, maybe I have an intermittent connection somewhere.
#7
Zachary Vander Klippe
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2015/04/20 12:49:27
  • Location: 0
  • Status: offline
Re: board won't program anymore 2018/03/07 13:19:37 (permalink)
0
I figured out the real source of this issue a while ago.  I had one of our custom built power supplies about 2-3 inches from the ribbon cable connecting the ICD3 to the "problematic microchip". When this power supply was on I would often have these programming issues. 
Take home point is that the ICD3 is designed for high speed programming, but it doesn't handle a somewhat noisy environment very well. 
post edited by Zachary Vander Klippe - 2018/03/07 13:21:22
#8
qɥb
Monolothic Member
  • Total Posts : 3329
  • Reward points : 0
  • Joined: 2017/09/09 05:07:30
  • Location: Jupiter
  • Status: offline
Re: board won't program anymore 2018/03/07 13:39:20 (permalink) ☼ Best Answerby Zachary Vander Klippe 2018/03/13 06:26:18
5 (2)
How long is the ribbon cable?
You really should keep it below 8" / 200mm.
 
You can improve things by a slight modification on your target board.
Putting a small series resistor (33 to 100 ohm) in series with the PGD signal helps reduce crosstalk to the PGC signal.
Also, splitting the ribbon so PGD and PGC are no longer right next to each other makes it more robust.
 
 
post edited by qɥb - 2018/03/07 13:41:47

This forum is mis-configured so it only works correctly if you access it via https protocol.
The Microchip website links to it using http protocol. Will they ever catch on?
PicForum "it just works"
#9
Zachary Vander Klippe
New Member
  • Total Posts : 8
  • Reward points : 0
  • Joined: 2015/04/20 12:49:27
  • Location: 0
  • Status: offline
Re: board won't program anymore 2018/03/13 06:26:27 (permalink)
0
My ribbon cable is 5" and I have about 1" of trace length on the PCB. These traces are spaced by only 20mil, and they run parallel to each other. 
 
For now I'll just stick to programming in a quiet environment, but I appreciate the tip and I will certainly keep that in mind for future projects.
#10
David
Super Member
  • Total Posts : 1277
  • Reward points : 0
  • Joined: 2007/12/17 23:19:53
  • Location: uk sussex
  • Status: offline
Re: board won't program anymore 2018/03/13 17:26:32 (permalink)
0
you did clean the flux off the pcb ?

David
I support http://picforum.ric323.com because this forum is often too broken to use!
#11
Jump to:
© 2018 APG vNext Commercial Version 4.5