• AVR Freaks

Hot!MPLABX 5.30 Ghost Breakpoints

Author
JeffADI
New Member
  • Total Posts : 27
  • Reward points : 0
  • Joined: 2018/08/24 17:24:38
  • Location: 0
  • Status: offline
2019/11/08 05:02:08 (permalink)
0

MPLABX 5.30 Ghost Breakpoints

I'm having a problem with the debugger stopping at deleted breakpoints.
Anyone else see this?
If so, do you have a fix?
#1

11 Replies Related Threads

    NKurzman
    A Guy on the Net
    • Total Posts : 17916
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: MPLABX 5.30 Ghost Breakpoints 2019/11/08 06:54:48 (permalink)
    +1 (1)
    Right click on the breakpoint field and select delete all breakpoints.
    Or close MPLabX and reopen it.
    #2
    JeffADI
    New Member
    • Total Posts : 27
    • Reward points : 0
    • Joined: 2018/08/24 17:24:38
    • Location: 0
    • Status: offline
    Re: MPLABX 5.30 Ghost Breakpoints 2019/11/08 08:22:34 (permalink)
    +1 (1)
    Deleting all breakpoints does not work (for me)
    It is quite annoying to have to restart MPLABX everytime I delete a breakpoint.
    Thanks for the reply
    #3
    NKurzman
    A Guy on the Net
    • Total Posts : 17916
    • Reward points : 0
    • Joined: 2008/01/16 19:33:48
    • Location: 0
    • Status: online
    Re: MPLABX 5.30 Ghost Breakpoints 2019/11/08 08:41:18 (permalink)
    +1 (1)
    If this is happening all the time then it’s probably more serious.
    What pic and which debugger ?
    #4
    JeffADI
    New Member
    • Total Posts : 27
    • Reward points : 0
    • Joined: 2018/08/24 17:24:38
    • Location: 0
    • Status: offline
    Re: MPLABX 5.30 Ghost Breakpoints 2019/11/08 08:44:34 (permalink)
    0
    MPLABX 5.52 on Win10
    PICKit4
    PIC16LF1936 and PIC16LF19155
     
    Not saying it happens everytime, but often enough to raise my BP.
    #5
    GeorgePauley
    Moderator
    • Total Posts : 1170
    • Reward points : 0
    • Joined: 2009/12/01 13:59:30
    • Location: Chandler AZ
    • Status: offline
    Re: MPLABX 5.30 Ghost Breakpoints 2019/11/08 09:49:23 (permalink)
    +2 (2)
    Don't have a solution, but perhaps a few suggestions.

    Software Breakpoints:  Are implemented by replacing user opcodes with special "halt" instruction in the device flash memory.  So if a "halt" instruction is "stuck" in flash, a re-programming of the flash should fix this.
     
    Hardware Breakpoints:  Are implemented via special debug registers on the device.  A power-on-reset will erase any values in these registers.
    #6
    JeffADI
    New Member
    • Total Posts : 27
    • Reward points : 0
    • Joined: 2018/08/24 17:24:38
    • Location: 0
    • Status: offline
    Re: MPLABX 5.30 Ghost Breakpoints 2019/11/08 10:37:48 (permalink)
    0
    Thanks George, I'll keep that in mind.
     
    #7
    user2x
    Super Member
    • Total Posts : 317
    • Reward points : 0
    • Joined: 2011/02/10 20:43:36
    • Location: 0
    • Status: offline
    Re: MPLABX 5.30 Ghost Breakpoints 2019/11/11 02:29:07 (permalink)
    0
    GeorgePauley  ...So if a "halt" instruction is "stuck" in flash, a re-programming of the flash should fix this.


     
    I thought the Flash re-prorams on every debug session. ?
     
    #8
    JeffADI
    New Member
    • Total Posts : 27
    • Reward points : 0
    • Joined: 2018/08/24 17:24:38
    • Location: 0
    • Status: offline
    Re: MPLABX 5.30 Ghost Breakpoints 2019/11/11 04:33:02 (permalink)
    0
    Everytime you start a debugging session it will re-Flash the chip. 
    But I think what George is saying is that when you set a software breakpoint, it rights a HALT instruction at the address of the breakpoint. When you remove the breakpoint, the HALT stays.
    #9
    GeorgePauley
    Moderator
    • Total Posts : 1170
    • Reward points : 0
    • Joined: 2009/12/01 13:59:30
    • Location: Chandler AZ
    • Status: offline
    Re: MPLABX 5.30 Ghost Breakpoints 2019/11/11 08:32:32 (permalink)
    0
    JeffADI
    But I think what George is saying is that when you set a software breakpoint, it rights a HALT instruction at the address of the breakpoint. When you remove the breakpoint, the HALT stays.



    Well, it's not supposed to stay... mr green: mr green
    #10
    JeffADI
    New Member
    • Total Posts : 27
    • Reward points : 0
    • Joined: 2018/08/24 17:24:38
    • Location: 0
    • Status: offline
    Re: MPLABX 5.30 Ghost Breakpoints 2019/11/11 08:33:51 (permalink)
    0
    Should I open an official ticket to put it on the bug list?
    #11
    GeorgePauley
    Moderator
    • Total Posts : 1170
    • Reward points : 0
    • Joined: 2009/12/01 13:59:30
    • Location: Chandler AZ
    • Status: offline
    Re: MPLABX 5.30 Ghost Breakpoints 2019/11/11 08:36:54 (permalink)
    +2 (2)
    If you have a (hopefully simple) and (necessarily) repeatable issue, then yes please open a ticket!
    #12
    Jump to:
    © 2019 APG vNext Commercial Version 4.5