cancel
Showing results for 
Search instead for 
Did you mean: 

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

RBack.1
Senior

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?

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

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".

View solution in original post

2 REPLIES 2
TDK
Guru

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".

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
Up vote any posts that you find helpful, it shows what's working..