cancel
Showing results for 
Search instead for 
Did you mean: 

Breakpoint based on memory written

Electronic1
Associate II

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?

2 REPLIES 2
Uwe Bonnes
Principal II

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

Ozone
Lead

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.