Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Error in mplab icd2 regarding invalid target device id

Status
Not open for further replies.

dspic30f

Newbie level 3
Joined
May 22, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,309
I am using mplab icd 2 programmer for programming dspic30f4012 controller..
I gave all the supply connections correctly but i am getting the following error.

Auto-connect not enabled - Not connecting (Try enabling auto-connect on the ICD2 settings pages.)
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
ICDWarn0020: Invalid target device id (expected=0x100, read=0x0)
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 ready for next operation



Someone please help me..I am not able to debug.I am in a very crucial ctage of my project
 

Re: regarding mplab icd2

Is this a bread broad prototype or a development board?

The ICD is not seeing the dsPIC, is it powered up or are you trying to supply the project power via ICD?
 

Re: regarding mplab icd2

I made the circuit on breadboard...The pic is powered from external supply
 

Re: regarding mplab icd2

Can you post a schematic?

Have you specified the correct PIC model in MPLAB?

Make sure you disable the power to target option in ICD2 configuration dialog.

Exit MPLAB, unplug and replug the ICD2 into USB port

Restart MPLAB and select ICD2 debugger or programmer.

This is particular troublesome if indeed autoconnect is selected:

Auto-connect not enabled - Not connecting (Try enabling auto-connect on the ICD2 settings pages.)

These are procedures I have used in the past to correct ICD2 problems.
 

Re: regarding mplab icd2

I cannot post the schematic...but its just simple.I gave the following connections.
Vdd-5v,Vss -ground,4Mhz crystal at osc pins.Avdd-Vdd.AVss-Vss and i gave the connections from icd 2.
I have specified the pic in mplab.I unchecked the 'power target from icd2;auto connect in not enabled....
I tried to use dspic30f 4011.Then also,I was getting the same problem..I changed the RS232 cable.Then,my device is detected but programming is failed.I got the following output.



Auto-connect not enabled - Not connecting (Try enabling auto-connect on the ICD2 settings pages.)
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
Target Device dsPIC30F4011 found, revision = Rev 0x1002
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 ready for next operation
Programming Target...
...Validating configuration fields
...Erasing Part
...Programming Programming Executive
...Verifying Programming Executive
ICD0161: Verify failed (MemType = Test, Address = 0x800000, Expected Val = 0x40080, Val Read = 0x80)
ICD0275: Programming failed.
MPLAB ICD 2 ready for next operation
 

Re: regarding mplab icd2

Have you tried using the USB connection? If not, give it a try and enable autoconnect.

---------- Post added at 19:14 ---------- Previous post was at 19:12 ----------

What is the exact model of dsPIC you're using?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top