Skip to main content
RBack.1
Associate III
Nov 3, 2021 6:48 PM UTC
Solved

Breakpoints on memory write with ST-LINK/V2, STM32CubeIDE, and STM32F746?

Apparently I have a bad pointer somewhere that periodically kills some bytes in my itcm functions. It'd be really easy to find it if I could break on memory write. Does this feature exist with this tool and IDE?

This topic has been closed for replies.
TDK
TDKBest answer
Nov 3, 2021 7:25 PM UTC

Yes, you want to set up a watchpoint.

Right click in the expressions window and select Add Watchpoint (C/C++)...

Edit: 

  1. Create the expression you want to monitor in the Expression tab.
  2. Right click it and Add Watchpoint.
  3. A breakpoint will be set up when it changes you can view/delete in the Breakpoints tab.
"If you feel a post has answered your question, please click ""Accept as Solution""."

2 replies

TDK
TDKBest answer
Nov 3, 2021 7:25 PM UTC

Yes, you want to set up a watchpoint.

Right click in the expressions window and select Add Watchpoint (C/C++)...

Edit: 

  1. Create the expression you want to monitor in the Expression tab.
  2. Right click it and Add Watchpoint.
  3. A breakpoint will be set up when it changes you can view/delete in the Breakpoints tab.
"If you feel a post has answered your question, please click ""Accept as Solution""."
Tesla DeLorean
Guru
Nov 3, 2021 9:43 PM UTC

The debug hardware has some methods, could perhaps also try the MPU configuration and make it Read-Only, then it would just fault

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..