Thanks.I soldered 0.47ohm resistor and now i have in status:
Target Vdd:pass
Module Vpp:pass
MCLR Gnd:pass
MCLR Vdd:low
MCLR Vpp:pass
in power:
Target Vdd:2.62
Target Vpp:11.42
MPLAB ICD2 Vpp:11.82
Invalid target device id (expected=0x21, read=0x0)
error comes
Added after 8 minutes:
what part of programmer i need to check for errors?
Added after 2 hours 23 minutes:
As i understand MCLR signal can be 0 +5 +12V.MPLAB performs Self-test to check is it possible to set MCLR line to theese tree signals.In my case MCLR Vdd :low,it means that MCLR line can't be set to +5V.
Now I'm trying to understand how ICD2 v2 clone works.MC34063 is a transformer which can generate +5,+12,+0V.MCP41010 is a digital potentiometer which is conducted by 16F877.Depending on the DPOT1 level MC34063 will generate +5,+12, +0V.
Am I right?
I selected dspic30f2010 and everything works fine,although in status I have MCLR Vdd:low.Also in power checkbox "Power taget circuit from MPLAB ICD2" is grayed.It is written that it is a tool setting not a project setting.What does this mean?
Joined: 03 Sep 2001 Posts: 278 Helped: 5 Location: France
26 Feb 2009 0:02
Re: Project to replace CY7C64613 in the ICD2
hi,
you can force power mode in icd2.ini file.
I've the same problem, I've modify this file, and it works. If you change target, with another OS, you must redo this manipulation.
The original icd2 must have external power with dspic.
CD:D
For all those people who can't read or being too lazy to get through ~60 pages of this topic
Some basic thesis :
1. If you don't have some advanced skills in electronics - don't do this project !!! (make some easier programmer)
2. If you have only multimeter & soldering iron - don't do this project !!!
3. If you don't want to debug your code via ISP - don't do this project...
Why ?
Because, for 99.99%, you'll fail...
What you should have in your equipment :
1. Good soldering iron (decent hotair for TQFP smd work)
2. Good multimeter
3. Any kind of logic analyzer, oscilloscope, etc... (it don't have to scope 20MHz signals....)
4. Reliable simple programmer for 18F PICs (Lothar's Stolz JDM (check his site), SCHAER, etc...)
What next ? :
1. Choose your project - potyo2 or some PiCS
or
1a. Get the schematics and create your own PCB (the harder way)
2. Get the parts
- Yes, there are 0.47 Ohm resistors ... (smd and thru-hole are available)
- No, you can not use 18F2550 instead of 4550 (Parallel Port is needed)
- Yes, you can solder manual potentiometer instead of MCP41010 digpot
- the inductance of VPP generator's coil may be about 100-200uH
3. Make the PCB
- using your favourite method (toner transfer or UV varnish)
- if you created your own PCB :
- check the connections
- check them again
- now get the original schematic and check your routes again
- and again... (most errors comes from erratic layout)
4. Make vias or jumpers
- Yes, it is possible to create doublesided PCB at home with vias
- Yes, it is possible to create doublesided PCB at home with under-IC vias (you need some 0.5-0.6mm copper wire and this kind of tool : http://www.sklepmotonet.pl/photo/product_big/4/f/0/1_4f0348703bd1.jpg)
- No, you don't have to solder the vias
- Yes, you should have 0.5mm drill in your equipment
5. Solder ICs (TQFPs and SOICs)
5a. Check shorts twice
6. Depending on your project you should program your 4550 & 877(A) now, or you can do it later
7. Solder remaining parts
7a. Check shorts and major connections (power rails for shorts, D+, D-, PSP0-7 lines, RD, CS, WR, 877_MCLR)
8. Connect to USB port
If Windoze detects it & driver installation is ok & MPLAB recognizes it clearly, download the OS & be happy - you're very lucky guy (chick )
But, for 99.99%, something went wrong...
Troubleshooting:
1. Unknown Device :
- there may be problem with power rails - check for shorts
- there may be problem with D+,D- rails
- there may be problem with 4550 programming - reprogram it
- there may be problem with 4550 config fuses :
4550 configuration most important settings:
a) HS+PLL oscillator
b) 96MHz prescaler - divide by 5 (20MHz input)
c) CPU system clock postscaler - PLL/2 (48MHz CPU clock)
d) FullSpeed USB clock source - PLL/2
e) USB Voltage Regulator - Enabled
f) Watchdog disabled
- there is not enough of bypass capacitors (VUSB to GND)
- there is too big capacitance between VUSB & GND (10uF should be max) - check capacitors you've soldered
- of course there can be some more stupid errors...
2. If device is recognized by WinXX then the driver should be installed without problems - if not - you might have problem with your PC/windoze
3. If device is visible in Device Manager as MicrochipTools then MPLAB should detect it - if not - reinstall MPLAB, reinstall ICD2 USB drivers
4. Select ICD2 as PROGRAMMER & Setup ICD2 in MPLAB - communication:USB, DO NOT CONNECT AUTOMATICALLY, DO NOT UPLOAD OS AUTOMATICALLY !!!! (at least for the first time)
5. There should be enabled Download ICD2 Operating System command in Programmer menu - try it
- Unable to communicate with ICD or Product ID (0) - COMMUNICATION FAIL between 4550 & 877x !!! : - check PSP lines, RD, WR, CS, check 877_MCLR, check 877(A) programming, check 877(A) fuses, 877(A) power rails bypass capacitors
877(A) configuration FUSES :
a) HS oscillator
b) WDT off
c) PUT off
d) BOD off
e) LVP disabled
f) all code protection OFF !!!
- framing errors - read general problems troubleshooting (comes next in this post)
- first time you get connected ok, then after Reset&Connect you have Unable to connect : CHECK 1MCLR line - 877 isn't resetted properly by 4550
6. OS Downloaded OK, but ICD2 Self Test Failed : go into Programmer/Settings/Status
- MCLR Vdd : Low - enable Power Target from ICD & run Self Test again - if it pass then it is normal behavior
- MCLR Vdd : Low/ Target Vdd : Low - check 1RA1 line, VDD metering resistors , switching transistors (those PNP ones)
- Module Vpp / MCLR Vpp High/Low - check VPP generator for output voltage, VPP metering resistors (1RA0 line, 1RA3 line)
- MCLR Gnd : HIGH - connection problem with 1RA0 line - 1RA0 pin is floating...
GENERAL FAILURES TROUBLESHOOTING :
- check VPP generator's filtering capacitors - IT IS CRITICAL for ICD2 - if it's too low, then the spikes from generator would kill any USB & inter-IC transmittions by spreading via power lines
- scope power lines for spikes & check bypass capacitors
- recheck again for short-circuits
- reprogramm 4550 and/or 877(A) with proper HEX
- install earlier version of MPLAB (Yes, it sometimes cures the thing)
- IC's shouldn't get hot or even warm - check for shorts and check for proper voltages on terminals - if 4550 is getting warm, but ICD is working then you have not enough bypass capacitors on it's power rails... the same may be applied to 877(A)
Of course, there can be more problems, but if you can not overcome them, then you should drink some coffee and let this great programmer to be made for you by someone else...
I have a little question regarding the 18F4550. Since this is not available in our place, can i use one of it's variant the 18LF4455? They are in the same datasheet when i download the 18f4550. I really love to build this ICD2 clone. As of now, i'm using a serial ICD2 clone but my laptop have no serial port. Commercial available USB converter is unstable.
LF4455 may not work, it has smaller amount of code memory - probably you would have to adjust firmware to fit in new code area conditions (ICD-USB firmware should fit, but there is also bootloader - there may be some address problems...)
Hey guys, I made a PiCS REV.B and works perfectly! But now i have some troubles, suddenly my 18F4550 stopped to work, and it's damaged, don't work anymore in my ICD2. But if I verify the 18F4550 in the MPLAB, I can read the pic, program, everything, but doesn't work in the ICD2. I bought a new one, and my ICD2 started to work again, but somedays from now, it happends again this trouble, the 18F4550 stops to work in the ICD2, but works in the MPLAB, and if I put a new one, works again my ICD2... What can be to sometimes my 18F4550 stay damaged?? I lost two 18F4550, and now I want to know why they don't work anymore in the ICD2, where the MPLAB say that his OK.
thanks for any help, and sorry for my english!
Otto Hartfelder
Joined: 09 May 2007 Posts: 916 Helped: 21 Location: USA & Canada
30 Jun 2009 4:16
Re: Project to replace CY7C64613 in the ICD2
Not only that.
Due to the fact, its schematic and source code are all open to the public, You have the freedom to modify both the software and hardware.
Plus, it got many other feature which is not so easy to find, such as serial tool, programming EEPROM, programmer-to-go, etc.
thank for your response ! it's true that pickit2 seem to be very powerful !
is a debugger too?
but the reason of my choice about icd2 realisation is that there exist a "PDIP" version of this debug / programmer.
is exist a "PDIP" version of pickit2 ??
HI All, I feel really bad about posting this question as I feel it has been answered before, but I just can't find the answer. Could someone please tell me on the potyo v2, what is the X5 jumper for? Is it to choose whether the ICD provides power to the target? if so, which pads should be shorted for with mode??
I had constructed the ICD2 clone posted somewher on this forum.....so far this is running okey in programming chips, updating its own software & etc. So far the one mode that I didnt tested yet is the debugger mode.
My question upon voltage test the bMPLAB gives 4.5 & 11.38 respectively.
Is there any unforseen side effects on this.
The PIC I am using is PIC16F877A with com2 connectivity.
The software I initially loaded is the one from Blue of Canada