![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
dave the blade Guest
|
CCS PCH ver 4.038 on and MPLAB |
Posted: Tue Jun 12, 2007 6:41 am |
|
|
Hi Folks,
Has anyone else had problems with PCH from V4.048 onwards with MPLAB, when using MPLAB sim with a simple program it won't let me set breakpoints in the main C file, when i step through the code with MPSIM the dissasembly list file keeps popping up instead of seeing it step through on the main C file. I have tried with MPLAB 7.60 and a previous version 7.52, now both work with PCH V4.038.
Any ideas.
Code: |
main()
{
int8 i,j=0;
while(1)
{
for(i=0;i<8;i++)
J++;
}
}
|
I used the above as a simple test program in MPSIM.
Regards
Dave |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Tue Jun 12, 2007 11:49 am |
|
|
I can confirm that it fails. I made a test program from your posted code
and put a breakpoint on the delay_cycles(1) line. With PCH vs. 4.040
and vs. 4.041, it gets the "unresolved breakpoint" error. I tested it with
MPLAB vs. 7.20. Earlier versions of PCH work OK (vs. 3.249, 3.039, etc).
I think it's a bug. I think CCS has done something to the COFF file,
probably. Report it to CCS tech support. When they fix it, they will
let you download the fixed version if your maintenance has run out.
In the meantime, as a work-around you could select "Expanded
COD format" in the project options window. It seems to break OK
with that one. I don't know what other limitations there may be
with that format.
Code: |
#include <18F452.h>
#fuses XT,NOWDT,NOPROTECT,BROWNOUT,PUT,NOLVP
#use delay(clock=4000000)
//===============================
void main(void)
{
int8 i, j=0;
while(1)
{
for(i=0; i < 8; i++)
{
j++;
delay_cycles(1);
}
}
} |
|
|
![](templates/subSilver/images/spacer.gif) |
dave the blade Guest
|
Thanks PCM |
Posted: Wed Jun 13, 2007 3:22 am |
|
|
Have just reported PCM, thanks for confirming my suspicions.
Regards
Dave |
|
![](templates/subSilver/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|