CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Problem debugging using ICD2 under MPLAB v6.30

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Peter F



Joined: 12 Feb 2004
Posts: 9
Location: Surrey, UK

View user's profile Send private message Visit poster's website

Problem debugging using ICD2 under MPLAB v6.30
PostPosted: Thu Feb 12, 2004 11:17 am     Reply with quote

I'm using MPLAB/ICD2 because I could not get ICD-U40 to talk to my target board (despite being sent a replacement). With ICD2 I can program and run code oK. However, I can't seem to set breakpoints other than in main(). My other functions are all in header files. If I set a breakpoint in one of these I get "can't resolve breakpoint" when I run the program, and the breakpoint is removed. If I pause the program or run to a breakpoint in main(), I don't get a pointer to the place where the program stops, and I can't see what's happening if I single step. I get a faint pointer at the first line of my main c file. I have checked "compile for ICD" and Confused I have the line #device ICD=TRUE in a header file.

Anyone got any ideas what's going on? Confused
chava



Joined: 07 Sep 2003
Posts: 56

View user's profile Send private message Send e-mail

just to check
PostPosted: Thu Feb 12, 2004 11:57 am     Reply with quote

have set icd2 for debugger AND programmer? if you did, dont do this. set icd2 for debugging only
Peter F



Joined: 12 Feb 2004
Posts: 9
Location: Surrey, UK

View user's profile Send private message Visit poster's website

PostPosted: Thu Feb 12, 2004 12:22 pm     Reply with quote

Thanks for the tip. I did this, but unfortunately it made no difference.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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