2019-10-21 02:27 AM
Dear All:
I am using the STM32cubeide,I want to toggle a watchpoint ,I choice a value,but can not triggle it:
So how can i toggle the watchpoint?
2019-10-22 09:06 PM
At least this way: https://github.com/turboscrew/misc/blob/master/watchpoint.c :D
2019-10-28 08:23 PM
THANKS!
2021-09-06 05:27 AM
Hi,
I don't want to revive this, but I have found how STM32CubeIDE supports watchpoints, that is, the execution stops as you were executing a breakpoint when some data is accessed by the CPU during the execution of the program, hope this helps:
For obvious reasons it does not work out of the box with auto variables (memory located in stack) as its location may change continuously.
you can use a raw address like this: *((int*)0x20000c1c), as long it can be evaluated and points to a valid address, I recommend use variable names, unless you know what you are doing
Once a valid expresion is set, in breakpoint tab you will see the watchpoint, for enable/disable/delete: