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.

ICD2 clone connecting problem

Status
Not open for further replies.

Hubble

Newbie level 4
Joined
Apr 20, 2006
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,348
inchworm icdwarn0054:

I have built the Stolz clone.
Using the bootloader 'BootLoader16F877A.HEX' I connect to MPLAB IDE 7.20 and get:

ICDWarn0034: Please ensure that your system's serial FIFO buffers are
disabled.
Auto-connect not enabled - Not connecting (Try enabling auto-connect on
the ICD2 settings pages.)
Connecting to MPLAB ICD 2
...Connected
ICDWarn0054: MPLAB IDE has lost communications with the MPLAB ICD 2.
Would you like to attempt to reconnect?
Connecting to MPLAB ICD 2
...Connected
ICD0286: Unable to communicate with ICD
ICD0082: Failed MPLAB ICD 2 operation
MPLAB ICD 2 Ready
Downloading Operating System
ICD0021: Unable to connect with MPLAB ICD 2
...Download Operating System Failed
ICD0286: Unable to communicate with ICD
ICD0286: Unable to communicate with ICD
ICD0286: Unable to communicate with ICD
ICD0286: Unable to communicate with ICD
ICD0286: Unable to communicate with ICD
MPLAB ICD 2 Ready

I have tried on 3 different PC:s also with MPLAB IDE 6.40.
COM1,19200, FIFO disabled.
I have also rebuild the circuit, replaced the 232 chip and the 16F877A.
I can see with a scope that I get the master clear on pin 1. I can also
see that the 20 Mhz clock i running.

What more actions could I take to get closer to the problem?
I'm very happy for any suggestions.
 

icd2 cable (icd2 to target)

Hi Hubble. Try with diferent (more reliable) power supply and change rs232 cable. Use short is possible. Also check max232 and his surrounding. Check voltages on max charge pumps.
 

icd0286: unable to communicate with icd

Thanks predrage
Changed the cable, the new is 15cm.
Static levels on max232:
pin2 +8V
pin6 -9V
pin7 -8V
pin8 -7,5V
When connect in MPLAB I get positive pulses on pin37 (RB4) on 16F877A.
Vdd= 5,02 V but ripple was 0,3V. When manupilating with some small cond I suddenly got something running. I have now minimized the ripple to 30mV but the ICD is still dead.
So once I got this:
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
ICDWarn0020: Invalid target device id (expected=0x71, read=0x0)
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Downloading Operating System
ICD0021: Unable to connect with MPLAB ICD 2
...Download Operating System Failed
MPLAB ICD 2 Ready
 

icd0286: unable to communicate with icd

Hoi,
I have sometimes de same problems now. I have solved it.
Keep the connection cable between the ICD and the target so short as possible.
I have place a cap (1000p) between pin 2 and 6 of de ICD on the target site.
I have disconnect pin B3 (target pic).

After a lot of test its still ok.
 

mplab icd0286

Do you have target device attached to ICD?
 

icd0286 icd2

I have no target u-controller attached.
 

Hi all. I'm going to make a ICD2 clone but i'm not sure ICD2 clone can work with MPLAB IDE 7.31 (i'm using). Can you answer this question for me?
 

Hubble said:
I have no target u-controller attached.

Connect any PIC to yours icd and then try again.

Added after 5 minutes:

escapevn said:
Hi all. I'm going to make a ICD2 clone but i'm not sure ICD2 clone can work with MPLAB IDE 7.31 (i'm using). Can you answer this question for me?

Hi escapevn. Yes icd2 clone works with MPLAB 7.31. Build it and enjoy in all the benefits.
 

predrage said:
Hubble said:
I have no target u-controller attached.

Connect any PIC to yours icd and then try again.

Added after 5 minutes:

escapevn said:
Hi all. I'm going to make a ICD2 clone but i'm not sure ICD2 clone can work with MPLAB IDE 7.31 (i'm using). Can you answer this question for me?

Hi escapevn. Yes icd2 clone works with MPLAB 7.31. Build it and enjoy in all the benefits.
Thank you for your support.:D
 

Thanks predrage for all help.
Perhaps I need your help later.
The clock is now dead on the ICD2 and the target.
I will have to make a PCB for the construction.
 

Hello are,

Please be more specific how do you solved the problem. I don't find "pin 6 of the ICD on the targhet side".

Thank you.
 

Hi,
I have the same problems:
Connecting to MPLAB ICD 2
...Connected
ICD0286: Unable to communicate with ICD
ICD0082: Failed MPLAB ICD 2 operation
I think that ICD2 is "almost alive" because if I turn it off it doesn´t say "connected" anymore.
Are you sure a Target PIC is needded?
I cannot transfer ICD2 Operative System neither.
 

Hi,

I had similar problems with an ICD2 clone I built. I tried everything and in the end reprogrammed the PC with an LED flasing program which would not run unless I pulled MCLR high. I then added a 10K resistor between MCLR and VDD, reprogrammed the ICD firmware into the PIC, connected, downloaded the OS and Viola! Success.

I built the Inchworm circuit (www.myblueroom.com) so this may not apply to the Stolz circuit but it may help someone someday.

Cheers

Johann
 

Glad you got it working. You can add a 10K resistor between the 16F877 pin 1 and +5 if you're not using the Inchworm with MPLAB. MPLAB controls DTR to reset the 16F877.

PS Q4 was drawn incorrectly in previous schematics, it's corrected in REV E (on the site)

PPS the site has changed to www.blueroomelectronics.com

Here's a 3D version of Inchworm.
 

Hi

I built an inchworm using the schematics and firmware (877A)posted in blooroom site.

Wiring ok supply ok.

But MPLAB not detecting ,changed crystal and all.

Absolutely no response.

can anybody link the correct schematics and hex please?

picstudent
 

Check the handbook of most PIC will require a Resistor between MCLR and VCC.
 

Some new PIC18F might use an internal pull-up. However this requires hardware configuration.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top