Skip to content

Breakpoint not working on nRF52 #230

Closed
@gsmcmullin

Description

@gsmcmullin

BMP is able to scan, attach, and load to flash, but hardware breakpoint in flash is apparently never hit.

Target: nRF52832 DK (PCA10040)
Reported by @MrZeroo00 on Gitter

dbg_out_backtrace.txt

Confirmed:

  • Addresses are in the flash memory region
  • GDB is correctly sending the request for the hardware breakpoint
  • Backtrace after interrupting with ctrl-c indicates a call from main, so target did start up correctly

Apart from the strangeness in that the breakpoint is never hit, the register read after reset (vRun) returns all zeros. I suspected that the PC is being set to zero, and that the target would go directly to the fault handler when execution is resumed, but this appears to not be the case, given the backtrace.

Metadata

Metadata

Assignees

Labels

BugConfirmed bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions