Problem with program the PIC18F452
Posted: Thu Nov 10, 2016 4:49 pm
Hi, I am a newbie for PIC microcontroller. I am using MPLAB X IDE v3.45 to write the code and compile with XC8 v1.38. I used UIC00B to upload the code to PIC18F452 with SK40C. When I debug my project and upload the code, I keep having error message at my PICkit2 :
PIC18F452 found (rev = 0x7)
Erasing Target
Programming Program Memory (0x0 - 0x7)
Programming Program Memory (0x600 - 0x1a17)
Verifying Program Memory (0x0 - 0x7)
Verifying Program Memory (0x600 - 0x1a17)
Programming Debug Executive (0x7dc0 - 0x7fff)
Verifying Debug Executive (7dc0 - 7fff)
Programming Debug Vector
Verifying Debug Vector
Programming Configuration Memory
Verifying Configuration Memory
PK2Error0028: Unable to enter debug mode
Running Target
PK2Error0028: Unable to enter debug mode
If I upload the code, it will show this:
"Connecting to programmer...
Programming target...
Programming completed
Running target..."
and it will freeze at the line running target...
Can anyone help me?
PIC18F452 found (rev = 0x7)
Erasing Target
Programming Program Memory (0x0 - 0x7)
Programming Program Memory (0x600 - 0x1a17)
Verifying Program Memory (0x0 - 0x7)
Verifying Program Memory (0x600 - 0x1a17)
Programming Debug Executive (0x7dc0 - 0x7fff)
Verifying Debug Executive (7dc0 - 7fff)
Programming Debug Vector
Verifying Debug Vector
Programming Configuration Memory
Verifying Configuration Memory
PK2Error0028: Unable to enter debug mode
Running Target
PK2Error0028: Unable to enter debug mode
If I upload the code, it will show this:
"Connecting to programmer...
Programming target...
Programming completed
Running target..."
and it will freeze at the line running target...
Can anyone help me?