View previous topic :: View next topic |
Author |
Message |
harshanahnd
Joined: 22 Nov 2008 Posts: 11
|
Problem on setting up breakpoints in MPLAB ICD2 |
Posted: Fri Jan 09, 2009 9:06 am |
|
|
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.
CCS compiler version: 4.057
MPLab : 8.14
Board : PICDEM 2 PLUS |
|
|
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
|
|
Posted: Fri Jan 09, 2009 4:56 pm |
|
|
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. |
|
|
|