...set a data breakpoint so the debugger stops when a memory location is written to?
How do I set a data breakpoint that will cause the debugger to stop when a specific memory location is written to?
To create a data breakpoint:
- Click Debug > Breakpoints > New Data Breakpoint.
- Enter address or name of variable to watch in the Expression field.
- Set the Breakpoint Trigger Type field as required, for example if you want the debugger to stop when the memory location is written to set this to Write.
-
I see the documentation lists memory areas:
>You can specify an arbitrary memory range using an array cast expression. For example, (char[256])(0x1000) will breakpoint when the memory region 0x1000–0x10FF is accessed.
But setting that in Crossworks for Arm 2.3 (latest build) on an stm32f103, the breakpoint properties then show the size of the breakpoint to be 1. Is this a bug or a hardware limitation?
Please sign in to leave a comment.
Comments
1 comment