• AVR Freaks

Helpful ReplyTarget Device ID (0x0) does not match expected Device ID (...) (I'm frustrated)

Page: 12 > Showing page 1 of 2
Author
Pel155
New Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2013/01/09 06:48:13
  • Location: Argentina - Cordoba
  • Status: offline
2013/11/19 13:05:45 (permalink)
0

Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated)

I'm using: MPLAB X IDE v1.95 - PicKit3 - PIC18F27J53 - Windows 7 (64 bits)
 
The error!

 
The output message

 
My test circuit
 
I'm just trying to load a .hex file into a PIC18F27J53.
My target device is powered (3.3v) from the PICKIT3 .
I have a capacitor (100uF Tantalum to vss) connected in VDDCORE.
I have a capacitor (100nF ceramic) connected to vdd-vss.
I have a pull-up resistor (10k) connected to MCLR.
I'm uploading old .hex file that works correctly with this device.

Other tests..
I tried to program with another IDE (MPLAB v8.60) and another operating system (Windows XP), but the problem persists.
I can program PIC12F675 (5.0v) device, only if my target device is powered from PICkit3, otherwise I get the same error: Target Device ID (0x0) does not match expected Device ID (0xfc0).
I can't program PIC18F4620 (5.0v) device, I get a similar error: Target Device ID (0xffe0) does not match expected Device ID (0xc00).
I tried to reprogram old boards that worked properly, but the problem persists.
 
 
- Is it broke my PICKIT3?
- Why I can program some devices?
- Any idea?
- What I can do?
 
Thanks!
Pablo
(Sorry for my bad English)
#1
Brick
Super Member
  • Total Posts : 1684
  • Reward points : 0
  • Joined: 2006/05/25 09:10:40
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/19 16:25:53 (permalink)
0
A classic and very common issue, we've all been here :)
 
Since this topic has been covered so many times I'm sure that a quick search of the forums will really help you far more that a single post: Though in a nutshell - odds are its not wired up right or you have selected the wrong device in MPLAB.
#2
Pel155
New Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2013/01/09 06:48:13
  • Location: Argentina - Cordoba
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/19 16:49:43 (permalink)
0
Hi Brick, thanks for your reply.
 
I have the correct device selected.
I used boards that ran a few days ago and now do not work, but I did not change.
 
My board was turned on for a few days with the programmer connected on PGC PGD lines, on these pins, my original circuit has a LED connected that are flashing, this may have damaged the PICKIT3?
#3
Brick
Super Member
  • Total Posts : 1684
  • Reward points : 0
  • Joined: 2006/05/25 09:10:40
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/19 16:54:00 (permalink)
0
I'd try re-powering your board (with the PICKIT3 connected) and try again
#4
Pel155
New Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2013/01/09 06:48:13
  • Location: Argentina - Cordoba
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/19 17:04:58 (permalink)
0
I tried in several ways: 
I changed my board.. 
I changed my PC.. 
I changed operating system.. 
I changed IDE version.. 
  
but the problem persist. 
I do not understand what happens, everything worked two days ago 
#5
Brick
Super Member
  • Total Posts : 1684
  • Reward points : 0
  • Joined: 2006/05/25 09:10:40
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/19 17:06:03 (permalink)
0
Woh! some of those are big changes that I wouldn't have gone to. Ok I'm going to look in more depth as you seem to have really tried...
 
Target Device ID (0xffe0) does not match expected Device ID (0xc00).
 
This would have been cause by you not selecting the correct chip (did you change the device you selected when you moved chip?)
 
#6
Brick
Super Member
  • Total Posts : 1684
  • Reward points : 0
  • Joined: 2006/05/25 09:10:40
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/19 17:08:10 (permalink)
0
A clue would also be in why it only works with the PICKIT3 supplying power, can you double check all your wiring?
#7
Pel155
New Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2013/01/09 06:48:13
  • Location: Argentina - Cordoba
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/19 17:21:45 (permalink)
0
Until last Friday I had three projects running.
 
The weekend I left my board on with the programmer connected.
Yesterday I tried to make some minimal changes (only the value of a constant) in a firmware and since then my programmer shows me errors.
 
(All this is very strange..) 

I can only program the PIC12F675 powered from the PICKIT3.
If I connect the PIC18F27J53 to PICKIT3, the programmer never puts 8v-12v  on the MCLR line.
 
(Sorry for my bad english)
post edited by Pel155 - 2013/11/19 17:39:03
#8
Brick
Super Member
  • Total Posts : 1684
  • Reward points : 0
  • Joined: 2006/05/25 09:10:40
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/19 17:46:20 (permalink)
0
I haven't worked on an 18F part for nearly a decade, so I'm not sure if you need to use the high voltage mode or it also has a LVP option?
 
Just a thought, but I would change your IDE back to whatever version you had that was working.
#9
Pel155
New Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2013/01/09 06:48:13
  • Location: Argentina - Cordoba
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/19 18:24:47 (permalink)
0
I use MPLAB X IDE v1.95. Until a few days my projects operating in this IDE. After the past weekend, I can't record my projects (with PIC18F27J53 device) using PICKIT3 in any IDE. The firmware and the connections of this project did not change.
I don't think the problem is the version of the IDE.
I think the problem is in my PICKIT3 programmer.
#10
newfound
Super Member
  • Total Posts : 1851
  • Reward points : 0
  • Joined: 2003/11/07 12:35:49
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/19 18:43:04 (permalink)
0
Brick

I haven't worked on an 18F part for nearly a decade, so I'm not sure if you need to use the high voltage mode or it also has a LVP option?

It's a "J" part. You don't go near it with anything over 3.6V, well except for the 5V tolerant pins but that has nothing to do with programming it.
#11
Pel155
New Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2013/01/09 06:48:13
  • Location: Argentina - Cordoba
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/19 19:01:32 (permalink)
0
Hi newfound, thanks for your reply.
 
Yes, this part is powered with 3.3v.

- In test circuit, this part is powered from PICKIT3 (to 3.3v).
- In my board circuit, this part is powered from a external supply (to 3.3v).

Until a few days, my PICKIT3 programmer recorder the PIC18F27J53 from my board circuit. Today, the programmer, does not record the PIC18F27J53, but the circuit has not changed.
 
I built a test circuit with minimal components (circuit is the image of post # 1), but the PICKIT3 continues with the same error.
I don't understand which is the problem.
#12
Brick
Super Member
  • Total Posts : 1684
  • Reward points : 0
  • Joined: 2006/05/25 09:10:40
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/19 19:42:13 (permalink)
0
Hi Pel155, you mentioned before...
 
"If I connect the PIC18F27J53 to PICKIT3, the programmer never puts 8v-12v  on the MCLR line."
 
and newfound says...
 
It's a "J" part. You don't go near it with anything over 3.6V, well except for the 5V tolerant pins but that has nothing to do with programming it.
 
So just to be clear have you ever put 12-14v on this chip?

#13
Pel155
New Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2013/01/09 06:48:13
  • Location: Argentina - Cordoba
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/19 19:48:49 (permalink)
0
I'm sorry, I misspoke
I meant that the PICKIT3 never get to put on programming MCLR tension, I did not put 8v-14v on this chip, I only connected my oscilloscope.
post edited by Pel155 - 2013/11/19 19:52:59
#14
Brick
Super Member
  • Total Posts : 1684
  • Reward points : 0
  • Joined: 2006/05/25 09:10:40
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/19 19:50:25 (permalink)
4 (1)
Are you saying the MCLR is always low (0 Volts?)
#15
Pel155
New Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2013/01/09 06:48:13
  • Location: Argentina - Cordoba
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/19 20:01:27 (permalink) ☄ Helpful
0
When the programmer starts programming, my PICKIT3 drops to 2v for about micro-seconds and then put about 8v on MCLR.

In my case, MCLR remains at 3.3V (due to the resistance of pull-up), and before start "programming" voltage drops to 2v and back up to 3.3v at that moment appears the error window in MPLAB X.
post edited by Pel155 - 2013/11/20 08:08:57
#16
newfound
Super Member
  • Total Posts : 1851
  • Reward points : 0
  • Joined: 2003/11/07 12:35:49
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/19 20:34:27 (permalink) ☄ Helpful
5 (1)
Well it looks like you have damaged the Vpp/MCLR grounding transistor. That is a guess but to the best of my expertise it fits 2/3 failure modes on the different PIC you have tried. Vpp/MCLR MUST be able to go to 0V or very close and 2V is not low enough.
#17
Pel155
New Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2013/01/09 06:48:13
  • Location: Argentina - Cordoba
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/19 21:01:35 (permalink)
0
Hi newfound
what you say is possible, because the disconnect the programmer from my PIC, and click over programm button in MPLAB, the signal in MCLR pin from the PICKIT3 is reduced to 2v, but it's not reduce to 0v.
 
Tomorrow I will review that trasnistor and I will return with news
 
Pablo
#18
Pel155
New Member
  • Total Posts : 22
  • Reward points : 0
  • Joined: 2013/01/09 06:48:13
  • Location: Argentina - Cordoba
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/20 06:31:24 (permalink) ☄ Helpful
5 (1)
[PROBLEM SOLVED]
Really what newfound user said was correct, my PICKIT3 had a transistor damaged in the "vpp-tar" stage. I have tested this stage and found a damaged transistor.

The image below shows the transistor which was damaged.

The full schematic is in the PICkit3 User's Guide document (Apendix A - DS51795A-page 66).
 
Now everything works fine!!

Thanks for your replies, your answers helped me.
Pablo
#19
newfound
Super Member
  • Total Posts : 1851
  • Reward points : 0
  • Joined: 2003/11/07 12:35:49
  • Status: offline
Re:Target Device ID (0x0) does not match expected Device ID (...) (I'm frustrated) 2013/11/20 10:11:33 (permalink)
0
Great! Although my theory was in fact incorrect, (I plugged for Q7 being the culprit) I am glad it was "ballpark" enough to get you to examine the required area of the circuit.
 
All filed for future reference.
#20
Page: 12 > Showing page 1 of 2
Jump to:
© 2021 APG vNext Commercial Version 4.5