This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Setting watchpoint on nRF52832DK with GDB

Hi,

I've recently come across a problem where in some cases my device's memory gets trashed.

Ideally I'd be able to set a watchpoint on a memory location so that I could see what the offending code is - and it would appear that the nRF52832 has all the debug hardware needed to do this.

I'm using the latest JLinkGDBServer with the latest GCC/GDB on Linux, but adding a watchpoint with watch causes it to fall back to single-stepping and checking every single instruction - which is so slow that I believe the watchdog resets will kick in.

Am I missing something? Is there some way to enable proper hardware watchpoints?

thanks!

Parents Reply Children
No Data
Related