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 CCS Technical Support

Problem on setting up breakpoints in MPLAB ICD2

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



Joined: 22 Nov 2008
Posts: 11

View user's profile Send private message

Problem on setting up breakpoints in MPLAB ICD2
PostPosted: Fri Jan 09, 2009 9:06 am     Reply with quote

Hi,

I have programmed a 18f4550 PIC which has USB communication parts as well. My ICD does not support USB debugging. I want to debug my program other than the USB part. But when I setup a break point (where it does not conflict with the USB program part) and try to debug, the following error comes,
Quote:

One or more break points could not be resolved. Select Breakpoints from the debugger menu for details.



Is this because my ICD does not support USB? I cant figure out. Sad

CCS compiler version: 4.057
MPLab : 8.14
Board : PICDEM 2 PLUS
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Fri Jan 09, 2009 4:56 pm     Reply with quote

You get this message, when setting a breakpoint at a line, that has no instructions associated with it. MPLAB isn't very smart in this respect. You can see this better when changing to the disassembly view.

Basically, you can debug USB code with MPLAB, but stopping service of the USB interface usually causes the device to be suspended by the host. This may also happen due to breakpoints in the code, that is not directly USB-related, I think.
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