View previous topic :: View next topic |
Author |
Message |
Jflemire
Joined: 08 Oct 2014 Posts: 3 Location: Canada
|
Debugging problem |
Posted: Wed Oct 08, 2014 2:42 pm |
|
|
Hi,
I'm using the compiler (latest version in trial mode) to compile an old code. I'm using mplab IDE 8.92 and pickit3. PIC16F672
Here is my problem: I compile the code and at the end, a popup window indicates the following message "Title: MPLAB IDE, text: failed to load." When I try to program the MCU, there is nothing written in it's internal flash.
An hex file is generated. I can compile it by importing it and then program, but I can't debug real time.
And suggestion?
Regards,
JF |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Oct 08, 2014 3:25 pm |
|
|
Quote: | I'm using mplab IDE 8.92 and pickit3. PIC16F672 |
This PIC doesn't exist. Microchip doesn't make it. Check the part
number of your PIC. |
|
![](templates/subSilver/images/spacer.gif) |
Jflemire
Joined: 08 Oct 2014 Posts: 3 Location: Canada
|
|
Posted: Thu Oct 09, 2014 8:58 am |
|
|
Sorry, it's a typo.
PIC18f6722
Last edited by Jflemire on Thu Oct 09, 2014 9:44 am; edited 1 time in total |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah
Joined: 11 Mar 2010 Posts: 19375
|
|
Posted: Thu Oct 09, 2014 9:41 am |
|
|
You need to ensue you have the device selected as a debugger, _not_ as a programmer.
Have a look at:
<https://ccsinfo.com/forum/viewtopic.php?t=52737>
and at the 'top ten reasons you can't debug' in the manual. |
|
![](templates/subSilver/images/spacer.gif) |
Jflemire
Joined: 08 Oct 2014 Posts: 3 Location: Canada
|
|
Posted: Thu Oct 09, 2014 11:27 am |
|
|
ok, I reinstalled MPLAB and I don't receive the message failed to load.
Now when I compile, the program memory is still at FFFF but an hex file is generated correctly. |
|
![](templates/subSilver/images/spacer.gif) |
|