View previous topic :: View next topic |
Author |
Message |
Peter F
Joined: 12 Feb 2004 Posts: 9 Location: Surrey, UK
|
Problem debugging using ICD2 under MPLAB v6.30 |
Posted: Thu Feb 12, 2004 11:17 am |
|
|
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 I have the line #device ICD=TRUE in a header file.
Anyone got any ideas what's going on? ![Confused](images/smiles/icon_confused.gif) |
|
![](templates/subSilver/images/spacer.gif) |
chava
Joined: 07 Sep 2003 Posts: 56
|
just to check |
Posted: Thu Feb 12, 2004 11:57 am |
|
|
have set icd2 for debugger AND programmer? if you did, dont do this. set icd2 for debugging only |
|
![](templates/subSilver/images/spacer.gif) |
Peter F
Joined: 12 Feb 2004 Posts: 9 Location: Surrey, UK
|
|
Posted: Thu Feb 12, 2004 12:22 pm |
|
|
Thanks for the tip. I did this, but unfortunately it made no difference. |
|
![](templates/subSilver/images/spacer.gif) |
|