This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Provision to get out of BKPT instruction

Hi Experts,

I am trying to execute the bkpt instruction in Cortex R processor and it goes to halt mode.

Now I would like to retain back the execution without using external Debugger connection. Is there anyway to handle Breakpoint as an exception handler ?

Parents
  • If the CPU is in halt debug mode, then it would not execute normal instruction stream, but is controlled by external debugger via ITR debug register.

    If there is no external debugger, why using halting debug mode, would it better to use Monitor debug-mode?

    In Monitor debug-mode, halt instruction will trigger an debug exception, your code can use debug registers to get information.

Reply
  • If the CPU is in halt debug mode, then it would not execute normal instruction stream, but is controlled by external debugger via ITR debug register.

    If there is no external debugger, why using halting debug mode, would it better to use Monitor debug-mode?

    In Monitor debug-mode, halt instruction will trigger an debug exception, your code can use debug registers to get information.

Children
No data