Can somebody please tell me how to program with PICKIT2

General discussion forum - for all that doesn't fit in any other category.
Post Reply
freshworks
Posts: 25
Joined: Fri May 08, 2009 10:01 am

Can somebody please tell me how to program with PICKIT2

Post by freshworks »

Hi,

i've bought a PICKIT2 but how do i connect the right wiress to the PCB, i know the 10 JACK will do, but it's seems i'am getting a error continuesly.

The PICKIT2 had the following pins:

1= VPP
2 = VDD
3 = VSS
4 = PGD
5 = PGC
6 = AUXILIARY ???

Where to connect these pins on the PCB (standalone SD version) ?

Do i need to put the board on 5 volt as well ?

Thanks, becoming really despered at the moment.

Cheers,
Jasper


error's within MLAB:

Initializing PICkit 2 version 0.0.3.30
Found PICkit 2 - Operating System Version 118.90.90
PK2Error0008: Read failure (GetLastError = Overlappende I/O-bewerking wordt uitgevoerd.)
PICkit 2 Ready

Reading Target
Reading Program Memory
PK2Error0006: Failed external call (Component = IHardwareMemory, Method = Synch, HRESULT = E_FAIL)
PICkit 2 Ready

Programming Target (20-5-2009 13:56:53)
Erasing Target
PK2Error0008: Read failure (GetLastError = Overlappende I/O-bewerking wordt uitgevoerd.)
Programming Program Memory (0x0 - 0x61FF)
Verifying Program Memory (0x0 - 0x61FF)
PK2Error0008: Read failure (GetLastError = Overlappende I/O-bewerking wordt uitgevoerd.)
PICkit 2 Ready
Jeff
Site Admin
Posts: 8247
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Can somebody please tell me how to program with PICKIT2

Post by Jeff »

freshworks wrote:Hi,

i've bought a PICKIT2 but how do i connect the right wiress to the PCB, i know the 10 JACK will do, but it's seems i'am getting a error continuesly.

The PICKIT2 had the following pins:

1= VPP
2 = VDD
3 = VSS
4 = PGD
5 = PGC
6 = AUXILIARY ???

Where to connect these pins on the PCB (standalone SD version) ?

Do i need to put the board on 5 volt as well ?

Thanks, becoming really despered at the moment.

Cheers,
Jasper


error's within MLAB:

Initializing PICkit 2 version 0.0.3.30
Found PICkit 2 - Operating System Version 118.90.90
PK2Error0008: Read failure (GetLastError = Overlappende I/O-bewerking wordt uitgevoerd.)
PICkit 2 Ready

Reading Target
Reading Program Memory
PK2Error0006: Failed external call (Component = IHardwareMemory, Method = Synch, HRESULT = E_FAIL)
PICkit 2 Ready

Programming Target (20-5-2009 13:56:53)
Erasing Target
PK2Error0008: Read failure (GetLastError = Overlappende I/O-bewerking wordt uitgevoerd.)
Programming Program Memory (0x0 - 0x61FF)
Verifying Program Memory (0x0 - 0x61FF)
PK2Error0008: Read failure (GetLastError = Overlappende I/O-bewerking wordt uitgevoerd.)
PICkit 2 Ready

1= VPP -> J5 pin 2 (VPP)
2 = VDD -> J5 pin 4 (+5V)
3 = VSS -> J5 pin 1 (gnd)
4 = PGD -> J5 pin 7 (PGD)
5 = PGC -> J5 pin 8 (PGC)
6 = AUXILIARY ??? -> NC
Do i need to put the board on 5 volt as well ?
yes. plug the pickit2 to the board, plug the board power supply, program the pic, unplug the board power supply, and unplug the pickit2.

your error messages seems very strange. are you sure that your pickit2 kit is well installed ?
freshworks
Posts: 25
Joined: Fri May 08, 2009 10:01 am

Post by freshworks »

Hi jeff,

I think i have a circuit error, when i put the cable on the JACK the power led on the board is burning, when i turn on the power of the board and put out the pickit cable, the led is not lightening but will get power (multimeter)

Can this problem be a capacitor problem

i've used 35 volts and for the 10uf 63 volts

Also with the jack in, i get NO DEVICE DETECTED :cry:


Probaly i need to redo the whole board .........

Cheers,
Jasper
freshworks
Posts: 25
Joined: Fri May 08, 2009 10:01 am

Post by freshworks »

OK, boardproblem fixed so far, i've got power now, ground issue.

now the only thing i have is that i can't program the PIC18F4620

The pickkit2 software says that no device is connected, pickit2 is connected, it can't find the PIC18F4620.

I did what you tolded me Jeff,

1. connect the board
2. connect the pickit2
3. write hex file (device not detected)

Is there another way with the pickit2 to write the hexfile in the PIC18F4620, probaly with a simple PCB or something ?

Please help me, last issue to do for a working device probaly ?

Cheers and lots of thanks,
Jasper
freshworks
Posts: 25
Joined: Fri May 08, 2009 10:01 am

Post by freshworks »

Made a PCB with 10uf capacitors between VSS and VDD on both sides. After this it works and managed to program the 18F4620
Post Reply