Skip to main content
QHa.1
Associate
July 5, 2021
Solved

How to set up a breakpoint monitoring an address?

  • July 5, 2021
  • 2 replies
  • 4821 views

Hey all,

I'm trying to verify register values in my project, as per this link: https://www.freertos.org/Debugging-Hard-Faults-On-Cortex-M-Microcontrollers.html

I'm attempting to open the break point window in the debugger, and manually define an execution or access break point at that address, but having difficulties in creating a break point at an address.

If someone could guide me on how to do so, that would be much appreciated!

Cheers :)

This topic has been closed for replies.
Best answer by waclawek.jan

I believe you are talking about data breakpoints, afaik these are called "watchpoints" in Eclipse and are separately listed from program breakpoints.

Also, if you want to watch an address without having an explicit variable sitting on that address in C, in gdb, you'd dereference the address

(gdb) watch *0x20000000
Hardware watchpoint 1: *0x20000000

I don't use the eclipsoids but I'd guess this might be similar.

JW

2 replies

waclawek.jan
waclawek.janBest answer
Super User
July 5, 2021

I believe you are talking about data breakpoints, afaik these are called "watchpoints" in Eclipse and are separately listed from program breakpoints.

Also, if you want to watch an address without having an explicit variable sitting on that address in C, in gdb, you'd dereference the address

(gdb) watch *0x20000000
Hardware watchpoint 1: *0x20000000

I don't use the eclipsoids but I'd guess this might be similar.

JW

QHa.1
QHa.1Author
Associate
July 5, 2021

Looks like that's exactly what I'm looking for, thanks!

Found this useful link to help others who might stumble past: https://mcuoneclipse.com/2012/04/29/watchpoints-data-breakpoints-in-mcu10/