On Tue, 12 Feb 2008, Dwayne Reid wrote: > At 06:54 AM 2/10/2008, WH Tan wrote: > >> I don't have the problem you mentioned with Real ICE... some how I got >> other kind of problem. When I have a beakpoint that was working >> properly, if I amended my code (added in some new lines/deleted some >> lines) after recompiling and downloading the new firmware, the >> debugging system seem to always 'forget' about the breakpoint. When >> the new firmware ran for the first time, Real ICE at most of the time >> will miss. I have to remove the breakpoint, then reinsert a new one >> at the same location to make it 'remember' there is a breakpoint. > > This is normal behavior. > > The problem is that the breakpoint is saved as an address. If the > source is changed, the desired breakpoint address moves. But: MPLAB > doesn't resolve that change. > > My solution is the same as yours: if I make a change to the source > that might move the breakpoint address, I remove the breakpoint(s), > then recreate them. Under Configure...Settings...Debugger there is a "Remove breakpoints upon importing a file" checkbox. This works for me, though I don't build projects in MPLAB. -- John W. Temples, III -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist