Closed
Description
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
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.