• AVR Freaks

Hot!MPLAB X - breakpoints unrecognized

New Member
  • Total Posts : 3
  • Reward points : 0
  • Joined: 2012/12/12 10:31:17
  • Location: 0
  • Status: offline
2013/01/11 03:34:08 (permalink)

MPLAB X - breakpoints unrecognized

Mplab X 1.6
debugger : ICD 3
Sometimes, Mplab say, breakpoints unrecognized. The only good solution I found is reboot PC, not so good...
What I do :
Used breakpoints, program PIC. Everything is fine
I stop debugger, recompile. And sometimes, after programming, the icon on right of line with break points is broken. 
When I check the break points windows, mplab say unrecognized.
How can I manage that ????
I try to clean, recompile, restart mplab. Sometimes, restart mplab is OK. Often, I need to reboot.
On my last test, strange behaviour :
I have 2 breakpoints enable. I click to deactivate them. They are OFF (in break points windows), but the debugger continue to stop on it !
So is it a pb between mplab and a break point file ???

3 Replies Related Threads

    Robin Whittle
    New Member
    • Total Posts : 10
    • Reward points : 0
    • Joined: 2007/12/31 01:41:48
    • Location: 0
    • Status: offline
    Re:MPLAB X - breakpoints unrecognized 2013/03/28 06:29:21 (permalink)
    I have this problem too:  Windows XP, MPLAB-X 1.70, REAL-ICE, PIC16F1933, MPASM 5.49.  It doesn't seem to matter whether I have Software Breakpoints enabled. (File > Project Properties > Conf [default] > REAL Ice > Debug Options > Use Software Breakpoints.)

    I can toggle a line breakpoint and it appears as a salmon red bar in the source code.  The line number is replaced by a small salmon red box which identifies itself as "Breakpoint" with a mouseover.   The problem occurs whether I clean and rebuild or not.  It may be resolved if I close and re-open the program.  The breakpoint is listed as active (it has a tick) in Window > Debugging > Breakpoints.  All looks well until I start the debugger.  As soon as the debugger reports "Programming", and after this when it reports "Running", the line (for instance on a btfsc instruction) changes to grey and the little salmon red box has a broken line through the middle.  In the Breakpoints window, the same thing happens to the salmon red box.  The tick is still in the tick box but the text description now has "- Unrecognized".  The breakpoint does not work.  When I stop the debugger, everything looks good again.

    I have had breakpoints working but right now I can't get any breakpoint to work.  It doesn't seem to matter what instruction I place it on.

    Based on a message by JMH08 on 2012-03-02 about upper and lower case characters in the source file name ( http://www.microchip.com/forums/m623971.aspx ) , I removed my single .asm file from the project, renamed it to being all lower case (it had several upper case characters) added it to the project, built the project again and then I found I could reliably use a single breakpoint - for half an hour or so, which is as long as I kept using MPLAB-X for.  The breakpoint would not work if I had software breakpoints enabled. ("Failed setting software breakpoint. It is recommended that you exit the current debug session")  I could have multiple breakpoints but only one enabled at any one time.  To enable or disable them I could right click the little box to the left of the line.
    I found that with MPLAB-X, there was no way of specifying a Watch for a program variable by name.  There appears to be a facility for this, but it did not produce a watch.  Instead, I had to look up the listing file: (project-dir\build\default\debug\xxx.lst) to find the hex address, which I could then use to create a Watch.
    I installed MPLAB 8.90 instead.  This does a single breakpoint OK and does Watches  (View > Watch) for program variables by name from a pulldown list. 
    Despite the advice for REAL-ICE in the "Emulators/In-Circuit Debuggers" section of http://www.microchip.com/...38159#developmentTools :
    Pgm-memory HW breakpoints:1
    Data-memory breakpoints:1
    Pgm-memory SW breakpoints:Unlimited
    I was not able to get software breakpoints going with MPLAB-X or with MPLAB 8.90.  In 8.90, the Resources Toolbar (View > Toolbar > Resources) had only "No Support" in the pulldown list for "SW BP".
    Debugging with a single hardware breakpoint is tricky - if there is a breakpoint in use, it means there is no Step Over or Run to Cursor option, as a warning message in MPLAB 8.90 pointed out.
     - Robin
    Super Member
    • Total Posts : 80502
    • Reward points : 0
    • Joined: 2003/01/01 00:00:00
    • Location: 0
    • Status: online
    Re:MPLAB X - breakpoints unrecognized 2013/03/29 00:40:11 (permalink)
    I am not alone !
    So, for my problem, it seems a multi project problem.
    I am using a bootloader and some files are identical with the firmware.
    To debug the firmware (this project import the bootloader), I desactivated the compilation process of the bootloader and breakpoint work only with few pb.
    Super Member
    • Total Posts : 187
    • Reward points : 0
    • Joined: 2009/05/04 13:51:40
    • Location: Connecticut
    • Status: offline
    Re: MPLAB X - breakpoints unrecognized 2020/02/18 13:37:41 (permalink)
    +1 (1)
    Seven years later, the bug still exists in MPLAB X 5.25 with ICD 4.

    "Given one hour in which to chop down a tree, I'd spend the first 30 minutes sharpening my axe" - Abraham Lincoln
    Jump to:
    © 2020 APG vNext Commercial Version 4.5