Hi,
When I program with the SDK API JLINKARM_SetBP() and JLINKARM_SetBPEx(), I want to know which breakpoint is hitted. So I try to read the value of PC(R15) and DebugReturnAddress (suggested by ARM v7-M Architecture Reference Manual), but both the result are 0xFFFFFFFE, which are not the real instruction address next to the breakpoint. Through the ARM v7-M manual, I think the processor doesn't enter the halt debug mode, but DebugMonitor exception. Is this controlled by the SDK API or something else? Could I choose which debug mode to enter when I set the breakpoints with SDK API in order to identify which breakpoint is hitted by read PC value or DebugReturnAddress?
When I program with the SDK API JLINKARM_SetBP() and JLINKARM_SetBPEx(), I want to know which breakpoint is hitted. So I try to read the value of PC(R15) and DebugReturnAddress (suggested by ARM v7-M Architecture Reference Manual), but both the result are 0xFFFFFFFE, which are not the real instruction address next to the breakpoint. Through the ARM v7-M manual, I think the processor doesn't enter the halt debug mode, but DebugMonitor exception. Is this controlled by the SDK API or something else? Could I choose which debug mode to enter when I set the breakpoints with SDK API in order to identify which breakpoint is hitted by read PC value or DebugReturnAddress?