Problem with program the PIC18F452

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

Problem with program the PIC18F452

Postby HS LIM » 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? :cry: :cry: :cry:
HS LIM
Freshie
 
Posts: 4
Joined: Wed Nov 02, 2016 6:58 pm

Re: Problem with program the PIC18F452

Postby ZaM » Mon Nov 14, 2016 9:59 am

Hi, its because UIC00B no debug mode. you can remove connection between UIC00B and PIC, then run that PIC normally.
ZaM
Moderator
 
Posts: 78
Joined: Tue Nov 23, 2010 4:16 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 7 guests