PDA

View Full Version : ICDWarn0020: Invalid target device id



pravec065
- 30th July 2008, 06:20
Hi All,

I am using PIC16F946 uC and MPLAB ICD2 as programmer, using USB connection and the target is powered from ICD2. When I connect everything up and select the MPLAB ICD-2 as the programmer in MPLAB I get this error message.

Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
ICDWarn0020: Invalid target device id (expected=0xA3, read=0x0)
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready


Also I have seen lot of discussions about the same problem and am not able to find any solution on this. Will you please suggest solution for the above problem ?

Praveen Nayak
[email protected]

BrianT
- 30th July 2008, 09:46
I have had similar messages that I think were caused by:-

1. USB cable too long - 5 metres is about it. Definitely will not work on 10 metres.
2. Voltage too low at target PIC.
3. Had to add 0.1 uF caps to programmer as per MeLabs troubleshooting advice.

HTH
BrianT

pravec065
- 4th August 2008, 12:23
Hi Mr.Brian,

Thank you for the reply.

The USB cable used is <2 mts. length. Also the Target is powered from MPLAB ICD2.

Where I have to connect 0.1uF capacitor ? Please specify the pin numbers.

Thanks
Praveen

skimask
- 4th August 2008, 13:43
Hi Mr.Brian,
Thank you for the reply.
The USB cable used is <2 mts. length. Also the Target is powered from MPLAB ICD2.
Where I have to connect 0.1uF capacitor ? Please specify the pin numbers.
Thanks
Praveen
Between Vdd and Vss.