Skip to main content
Electronic1
Associate III
October 8, 2019
Question

Breakpoint based on memory written

  • October 8, 2019
  • 2 replies
  • 2010 views

I am debugging with STM32CubeIDE, and I have a problem in my program of something unrecognized writing in the memory space. To be more specific in the 0x20001FBC

Could it be possible to define a breakpoint in the debugger that shoots when this memory space is overwritten?

This topic has been closed for replies.

2 replies

Uwe Bonnes
Chief
October 8, 2019

Gdb knows watchpoints. Watchpoints are fot the purpose. "watch *0x20001FBC" should do the job.

Ozone
Principal
October 8, 2019

The MCU, yes. The Cortex M core supports data breakpoint, the number depends on the vendor (ST here).

The toolchain/debugger most know and support it as well, though. IAR WB definitely does, used it myself.

Usually, with a "breakpoint-> set Options" context menu.

Check the CubeIDE manuals/documentation.