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