• AVR Freaks

Helpful ReplyHot!Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Targe

Page: 12345 > Showing page 1 of 5
Author
JosepI
Starting Member
  • Total Posts : 54
  • Reward points : 0
  • Joined: 2013/12/19 21:51:53
  • Location: 0
  • Status: offline
2016/11/17 07:54:36 (permalink)
0

Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Targe

Hi,
 
I was programming well with the pickit 3 and using MPLAB X IDE, with PIC12f1572, when suddently I start receiving error messages such as:
Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device.
 
AND NOW i CAN NOT PROGRAM IT ANY MORE.
I have checked Vcc, change PIC, revert to previous versions of my code, bu nothing.
Can anyone help me please?
#1
MatthewM
Super Member
  • Total Posts : 204
  • Reward points : 0
  • Joined: 2014/08/08 03:49:49
  • Location: UK
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/17 08:25:40 (permalink)
+1 (1)
I find that this is usually a connection problem. Check all the wiring is still intact and that you have good connections. 
 
The other most common issue I find is a software error/bug that causes it to constantly throw 0x0 error, and to solve this I just remove the USB programmer, replug the device, and then reselect it in the project properties.
 
If non of those work, can you confirm that the device is still working, and that you haven't destroyed it?
#2
JosepI
Starting Member
  • Total Posts : 54
  • Reward points : 0
  • Joined: 2013/12/19 21:51:53
  • Location: 0
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/17 09:12:56 (permalink)
0
Hi,
I have doublé check the connetions and try to connect disconnect USB, select again and so on.
Also I have tried 3 different PICs IC's, and no working. In addition I bough a second PICkit3, but still the same.
I have a pull-up resistor of 10kOHm from MCLR to Vdd. I have tried from 5V initial votage down to 3.5V, but still no working!!!!
 
Any other idea?
Thank you
 
 
#3
MatthewM
Super Member
  • Total Posts : 204
  • Reward points : 0
  • Joined: 2014/08/08 03:49:49
  • Location: UK
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/17 09:21:32 (permalink)
0
Q1) How have you checked the connections? Are you checking for continuity with a multi-meter?
Q2) How are you powering the device? and how is this configured
Q3) Is the MCU still working with the old program?
Q4) Can you use an oscilloscope to probe the programming lines, and MCLR on the MCU to see them changing?
#4
NorthGuy
Super Member
  • Total Posts : 6219
  • Reward points : 0
  • Joined: 2014/02/23 14:23:23
  • Location: Northern Canada
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/17 09:39:42 (permalink)
+1 (1)
Something has died. The PIC, the programmer, or the connection.
#5
JosepI
Starting Member
  • Total Posts : 54
  • Reward points : 0
  • Joined: 2013/12/19 21:51:53
  • Location: 0
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/17 10:07:36 (permalink)
+1 (1)
A1) Yes I use multimeter
A2) It is power by a DC programable voltaje source, current limited to 1A, and I can change voltaje from 100mV step
A3) They are not working. I think they are erased because the last 3 lines from the error message are:
Target voltage detected
Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device.
Device Erased...
A4) Yes, and MCLR is changing, goes from 5 to 0 and sometimes to 10Vdc, but the SDL and CLK not. I changed the PIC by another new one and also the same.
 
#6
MatthewM
Super Member
  • Total Posts : 204
  • Reward points : 0
  • Joined: 2014/08/08 03:49:49
  • Location: UK
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/17 10:49:50 (permalink)
0
Are you using the MCLR and ICSP pins for general IO purposes? If so, are you isolating the programmer and corresponding pins from the normal circuitry?
#7
JosepI
Starting Member
  • Total Posts : 54
  • Reward points : 0
  • Joined: 2013/12/19 21:51:53
  • Location: 0
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/17 11:26:42 (permalink)
0
In the program I use ICSPDAT and ICSPCLK as TX/RX pins for UART communication. But while programming the cable that connects PIC with another device is not connected, only the PICkit3, are attached to those pins.
 
As I mention before, I am using 2 PICkit3 and both with the same messages....
 
 
#8
MatthewM
Super Member
  • Total Posts : 204
  • Reward points : 0
  • Joined: 2014/08/08 03:49:49
  • Location: UK
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/17 12:05:44 (permalink)
0
Are you in low-programming mode?
#9
Mysil
Super Member
  • Total Posts : 3676
  • Reward points : 0
  • Joined: 2012/07/01 04:19:50
  • Location: Norway
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/17 12:14:13 (permalink)
+1 (1)
Hi,
If a PICkit 3 have been used with other families of PIC devices,
with PICkit 3 Programmer application, or with MPLAB 8.x,
MPLAB X will need to update the Firmware in PICkit 3.
 
This seem to not always work as it should.
Some times it have worked to force a Firmware update manually:
Either by opening Project Properties panel > PICkit 3 >Firmware,
or pushing and holding the PICkit 3 button while plugging in the USB cable. Before starting MPLAB X
 
With the Latest MPLAB X version 3.45 on Windows 7,
I have observed another Bug, that Firmware updater perform one step of the update,
do a Disconnect, and is then is not able to continue.
This is somehow recorded in Properties as PICkit 3 unavailable, even when Restarting MPLAB X IDE !
A workaround seem to be to open Project Properties, select Simulator, click Apply and close Properties.
Pull the USB plug, and connect PICkit 3 USB plug again.
Open Project properties again and Select PICkit 3 serial number if it is again present.
 
Regards,
   Mysil
#10
JosepI
Starting Member
  • Total Posts : 54
  • Reward points : 0
  • Joined: 2013/12/19 21:51:53
  • Location: 0
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/17 21:24:07 (permalink)
0
Ho do I know if I am in LPM?, should I configure anythink from hardware or in MPLAB?
regards
#11
qhb
Superb Member
  • Total Posts : 9999
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/17 21:33:06 (permalink)
+1 (1)
The correct name for low voltage programming mode is "LVP".
The PK3 will NOT use LVP unless you go out of your way to change the settings.
If you are sometimes seeing 10V on MCLR, it is definitely not in LVP.
 

A3) They are not working. I think they are erased because the last 3 lines from the error message are:
Target voltage detected
Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the Target Device.
Device Erased...

I would ignore that last line.
If it can't read the Device ID, then it most certainly can not erase the device.
The message usually means the device is not getting power, or there is a connection problem on MCLR, PGC or PGD.
 
 
#12
JosepI
Starting Member
  • Total Posts : 54
  • Reward points : 0
  • Joined: 2013/12/19 21:51:53
  • Location: 0
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/17 23:48:22 (permalink)
0
I have tried to programm using the PCB of another Project where I had PIC24FJ64GB002, and none of the two PICkit3 work. I receive the same error message.
Does it means that the old and the new PICkit3 are destroyed?
 
#13
qhb
Superb Member
  • Total Posts : 9999
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/18 00:40:03 (permalink)
+1 (1)
I've heard of instances where the PK3 firmware gets corrupted.
Try selecting a totally different family in MPLABX (e.g. a PIC18F device), and let it update the firmware in the PK3, then go back to your PIC12 project.
 
#14
JosepI
Starting Member
  • Total Posts : 54
  • Reward points : 0
  • Joined: 2013/12/19 21:51:53
  • Location: 0
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/18 01:31:56 (permalink)
0
I did it but it is the same!!
#15
MatthewM
Super Member
  • Total Posts : 204
  • Reward points : 0
  • Joined: 2014/08/08 03:49:49
  • Location: UK
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/18 01:56:55 (permalink)
+1 (1)
Can you take a few pictures of your set up, and how you're interfacing the PICKIT and your MCU. Take a few screen grabs of who the program configuration also looks.
 
At the moment we're just throwing darts in the dark and seeing what sticks.
#16
JosepI
Starting Member
  • Total Posts : 54
  • Reward points : 0
  • Joined: 2013/12/19 21:51:53
  • Location: 0
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/18 03:20:54 (permalink)
0
Hello I try to past figures in editing window but I canot sent the message then!
 
Is there any amail where I can send it?
#17
qhb
Superb Member
  • Total Posts : 9999
  • Reward points : 0
  • Joined: 2016/06/05 14:55:32
  • Location: One step ahead...
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/18 03:39:09 (permalink)
+1 (1)
Posting just works over at PicForum
Post it there, then a link to the post here.
 
#18
MatthewM
Super Member
  • Total Posts : 204
  • Reward points : 0
  • Joined: 2014/08/08 03:49:49
  • Location: UK
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/18 03:41:40 (permalink)
+1 (1)
or post on imgur. Whatever you prefer.
#19
JosepI
Starting Member
  • Total Posts : 54
  • Reward points : 0
  • Joined: 2013/12/19 21:51:53
  • Location: 0
  • Status: offline
Re: Target Device ID (0x0) is an Invalid Device ID. Please check your connections to the T 2016/11/18 05:13:00 (permalink)
-2 (2)
Sorry but what does it means imgur?
#20
Page: 12345 > Showing page 1 of 5
Jump to:
© 2020 APG vNext Commercial Version 4.5