I've a problem when trying to get into debugging a circuit with Pickit 2:
I mean if I compile it with it, first it compiles right and when I try to run it I get a dialog box that says "he local copy of program memory has been changed since the last program operation. Should PICkit 2 program the target (fix) before proceeding?"
If I press no it fails with "cannot enter into debug mode".
If I press yes I get:
PK2Error0027: Failed verify (Address = 0x0 - Expected Value 0xE06 - Value Read 0xF0FC)
I read my PIC18F4620 with Pickit2 and at 0x00 there's 0xE06 for real so I wonder where it can be reading that value (in fact, there's no F0FC anywherere on my program), unless it's not directly from the PIC.
ICSP wires are correctly wired and voltage is right also (checked with a polimeter).
If nobody knows about this I'd like to know if there's some way to do the debugging with the PIC connected to the Pickit2 itself (I mean with the PIC inserted into the socket that is in Pickit 2 not the protoboard, PCB etc) as it seems so , if I run the program with it inserted into it I get:
Initializing PICkit 2 version 0.0.3.63
Found PICkit 2 - Operating System Version 2.32.0
Target power not detected - Powering from PICkit 2 ( 5.00V)
PIC18F4620 found (Rev 0x7)
PICkit 2 Ready
Resetting
PKWarn0006: The local copy of program memory has been changed since the last program operation. Should PICkit 2 program the target (fix) before proceeding?
Programming Target (05/05/2012 16:18:38)
PIC18F4620 found (Rev 0x7)
Erasing Target
Programming Program Memory (0x0 - 0x7F)
Verifying Program Memory (0x0 - 0x7F)
Programming Debug Executive (0x-FDC0 - 0xFFFF)
Verifying Debug Executive (0xFDC0 - 0xFFFF)
Programming Debug Vector
Verifying Debug Vector
Programming Configuration Memory
Verifying Configuration Memory
Running Target
PK2Error0028: Unable to enter debug mode
PICkit 2 Ready
The PIC isn't connected to the circuit so it obviously cannot enter debug mode, but at least in this way there's no error in reading the PIC
Regards.
I mean if I compile it with it, first it compiles right and when I try to run it I get a dialog box that says "he local copy of program memory has been changed since the last program operation. Should PICkit 2 program the target (fix) before proceeding?"
If I press no it fails with "cannot enter into debug mode".
If I press yes I get:
PK2Error0027: Failed verify (Address = 0x0 - Expected Value 0xE06 - Value Read 0xF0FC)
I read my PIC18F4620 with Pickit2 and at 0x00 there's 0xE06 for real so I wonder where it can be reading that value (in fact, there's no F0FC anywherere on my program), unless it's not directly from the PIC.
ICSP wires are correctly wired and voltage is right also (checked with a polimeter).
If nobody knows about this I'd like to know if there's some way to do the debugging with the PIC connected to the Pickit2 itself (I mean with the PIC inserted into the socket that is in Pickit 2 not the protoboard, PCB etc) as it seems so , if I run the program with it inserted into it I get:
Initializing PICkit 2 version 0.0.3.63
Found PICkit 2 - Operating System Version 2.32.0
Target power not detected - Powering from PICkit 2 ( 5.00V)
PIC18F4620 found (Rev 0x7)
PICkit 2 Ready
Resetting
PKWarn0006: The local copy of program memory has been changed since the last program operation. Should PICkit 2 program the target (fix) before proceeding?
Programming Target (05/05/2012 16:18:38)
PIC18F4620 found (Rev 0x7)
Erasing Target
Programming Program Memory (0x0 - 0x7F)
Verifying Program Memory (0x0 - 0x7F)
Programming Debug Executive (0x-FDC0 - 0xFFFF)
Verifying Debug Executive (0xFDC0 - 0xFFFF)
Programming Debug Vector
Verifying Debug Vector
Programming Configuration Memory
Verifying Configuration Memory
Running Target
PK2Error0028: Unable to enter debug mode
PICkit 2 Ready
The PIC isn't connected to the circuit so it obviously cannot enter debug mode, but at least in this way there's no error in reading the PIC
Regards.