View previous topic :: View next topic |
Author |
Message |
IIDD Guest
|
a probme: ICDWarn0020: Invalid target device id |
Posted: Fri May 04, 2007 3:05 am |
|
|
I use MPLAB7.41, CCS v3.871, PIC16F877A
I always have this problem,
ICDWarn0020: Invalid target device id (expected=3FFFF, read=0)
and in the "help" of MPLAB , It is said that: MPLAB ICD 2 has read the device ID of the target device and found it different than expected for the device type selected within MPLAB IDE. If ReadID is 0 then it is likely that the target device is not powered, not connected, or simply missing. In any case, this is just a warning that MPLAB ICD 2 has not found the expected target device. Click OK to proceed.
But I am sure that the PIC is powered and the device type is just what I use.
Now, I don't konw what I can do , is there someone can help me?
thanks! |
|
|
pom
Joined: 25 Nov 2004 Posts: 30 Location: Germany
|
|
Posted: Fri May 04, 2007 4:24 am |
|
|
Hello IIDD,
I know that error. Unfortunately I cannot exactly remember what to do. But try this:
Use the "MPLAB ICD2 Wizard" (in "Programmer") and chose the power setting, that the target has it's own device. After this, control the setting in "Programmer --> Settings". I think that was the problem which causes error 020.
Good luck, Martina |
|
|
IIDD Guest
|
|
Posted: Fri May 04, 2007 5:48 am |
|
|
I have trryed, but still the same problem
pom wrote: | Hello IIDD,
I know that error. Unfortunately I cannot exactly remember what to do. But try this:
Use the "MPLAB ICD2 Wizard" (in "Programmer") and chose the power setting, that the target has it's own device. After this, control the setting in "Programmer --> Settings". I think that was the problem which causes error 020.
Good luck, Martina |
|
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Fri May 04, 2007 2:24 pm |
|
|
Search the ICD2 forum on the Microchip website for that error message.
Do this by using the following search string with http://www.google.com
Quote: | site:forum.microchip.com ICDWarn0020 |
I did that and I got 189 hits. |
|
|
meereck
Joined: 09 Nov 2006 Posts: 173
|
|
Posted: Tue May 08, 2007 5:46 am |
|
|
Hi, I got the same problem. Unfortunately mine was caused by HW fault of a ICD2 programmer. I solved it by connecting +5V from USB to Vdd pin of a PIC (can't use external power supply any more!).
Further info can be found on the Microchip forum in ICD 2 section : http://forum.microchip.com/tt.aspx?forumid=49 |
|
|
|