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.

Need help to make USB icd2clone work ( 4550 & 877A versi

Status
Not open for further replies.
Re: Need help to make USB icd2clone work ( 4550 & 877A v

What did you do with the capacitor? you put or you leave it? :D
 

fzanoto

Failed Self Test. See ICD2 Settings (status tab) for details.

this is your problem. Powered your pic and conect vdd y gnd to icd2 to pass the self test. (5v)

Or powered pic by the icd2, enabled this function in options (not recomeded)
 

Re: Need help to make USB icd2clone work ( 4550 & 877A v

Do you think that my problem (wrong programming) could be a power problem?

This night i try to power the pic from another source than ICD2 8)
 

fuxpio i dont now. The problem of powered pic by icd2clone is the limitation of VCC current (about 100mA BC557).

Put capacitor 100nF between pins 31-32 of 18f4550 and 16f877a too. These capacitors are very important in all pics circuit.
 

Re: Need help to make USB icd2clone work ( 4550 & 877A v

Ok, i'll try :)
Thank you very much for the tip :D
 

Re: Need help to make USB icd2clone work ( 4550 & 877A v

Hi all,
I Remove my USB-HUB, and my ICD2Clone pass on Self-test !!
:D

But I can´t Write devices, see:

-----------------------------------------------
...Reading ICD Product ID
Running ICD Self Test
...Passed
MPLAB ICD 2 Ready
Programming Target...
...Validating configuration fields
...Erasing Part
...Programming Program Memory (0x0 - 0xC47)
Verifying...
...Program Memory
ICD0161: Verify failed (MemType = Program, Address = 0x0, Expected Val = 0x0, Val Read = 0x3FFF)
ICD0275: Programming failed.
MPLAB ICD 2 Ready

---------------------------------------------------------------------------------

Added after 2 hours 33 minutes:

In squematic of ICD2Clone, the pins of RJ-11 are:

1-MCLR
2-Vcc
3-GND
4-RB6
5-RB7
6-NC

these are correct ??
 

Re: Need help to make USB icd2clone work ( 4550 & 877A v

1-MCLR/Vpp
2-Vdd
3-GND
4-RB7 - PGD
5-RB6 - PGC
6-NC
 

Re: Need help to make USB icd2clone work ( 4550 & 877A v

thanks !!
thanks !!

see:

MPLAB ICD 2 Ready
Programming Target...
...Validating configuration fields
...Erasing Part
...Programming Program Memory (0x0 - 0xC47)
Verifying...
...Program Memory
...Verify Succeeded
Programming Configuration Bits
.. Config Memory
Verifying configuration memory...
...Verify Succeeded
...Programming succeeded
20-Jun-2007, 17:22:59

MPLAB ICD 2 Ready

-----------------------------------------------------------------------------------
:D:D:D:D

thanks for all !!
 

Re: Need help to make USB icd2clone work ( 4550 & 877A v

Hi.
I'm having many problems to make to work my ICD2 clone (PICs rev B based)...
With MPLAB 7.6 does'nt work, neither 7.5/7.4/7.3/7.2..

Only I have some succed in MPLAB 7.0..
But I use hex files from this forum wich is 7.6...

I saw the follwing when i programm a PIC...

original:

000000 3000 MOVLW
0000001 08A MOVWF 0xa
000002 2819 GOTO 0x19
000003 000 NOP
16:
17: #include <16f648a.h>
18: //#device ICD=true
19: #fuses INTRC_IO20:
#fuses MCLR,NOCPD,NOWDT,NOPUT,NOLVP,NOBROWNOUT
21: #use delay (clock=4000000)
000004 3022 MOVLW 0x22
000005 084 MOVWF 0x4
000006 1383 BCF 0x3, 0x7
000007 800 MOVF 0, W
000008 1903 BTFSC 0x3, 0x2
000009 2818 GOTO 0x18
00000A 3001 MOVLW 0x1
00000B 0F8 MOVWF 0x78


burned in pic

000000 3B0 DECF 0x30, F
000001 2008 CALL 0x8
000002 1201 BCF 0x1, 0x4
000003 080 MOVWF 0
16:
17: #include <16f648a.h>
18: //#device ICD=true
19: #fuses INTRC_IO
20: #fuses MCLR,NOCPD,NOWDT,NOPUT,NOLVP,NOBROWNOUT
21: #use delay (clock=4000000) //Fosc=4Mhz
000004 2302 CALL 0x302
000005 008 RETURN
000006 3108 MOVLW 0x8
000008 3180 MOVLW 0x8
0000009 291 SUBWF 0x11, F
00000A 1380 BCF 0, 0x7
00000C 300F MOVLW 0xf
00000D 301F MOVLW 0x1f


MPLBA 7.0 says

MPLAB ICD 2 Ready
Programming Target...
...Erasing Part
...Programming Program Memory (0x0 - 0x47)
ICD0031: Framing Error from MPLAB ICD 2
ICD0151: Failed to sync memory (MT = Program) (Dir = 0x1)
ICD0275: Programming failed.
MPLAB ICD 2 Ready


When I view reading code from burned pic I saw:

000042 200 SUBWF 0, W
000043 100A BCF 0xa, 0
000044 2B4 SUBWF 0x34, F
42: }while(TRUE);
000045 3282 MOVLW 0x82
000046 3086 MOVLW 0x86



Instead, original code is:

000042 2004 CALL 0x4
000043 BA1 DECFSZ 0x21, F
000044 2840 GOTO 0x40
42: }while(TRUE);
000045 282B GOTO 0x2b
000046 063 SLEEP


So, I think MPLAB/ICD2 clone are working, but the software in 4550/877A has a problem...

after 0x46 line, the original code ends....so, in 0x47 something happend that I don't know..

So, how can extract icd2 firmware for MPLAB 7.0 to burn it in 4550/877A?

HELP ME....

Thank you
 

Re: Need help to make USB icd2clone work ( 4550 & 877A v

my icd2clone working on MPLAB7.6 !!
and I´m writing all pic´s very well...
Remember:
Some pic´s in-circuit mode need power jump to icd2.

check in MPLAB:
Status
and
Power
 

Re: Need help to make USB icd2clone work ( 4550 & 877A v

I've not build ICD2 yet. But i will
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top