User manual
EMU3 emulator features UM0036
304/385 Doc ID 7705 Rev 11
Figure 238. Configuration disabled
10.2.8 Saving and loading advanced breakpoints
You can store the definition for your advanced breakpoint to a file (*.bem), which can be
reloaded by any STVD project, providing that you are using the EMU3 emulator to debug the
application. This will allow you to save time if you have to switch between advanced
breakpoints while debugging your application.
To save your advanced breakpoint, click on the Save button at the bottom of the Advanced
Breakpoint window. In the next window, select the folder where you will save your advanced
breakpoint, type a name for the .bem file and then click on Save.
To load an advanced breakpoint that you have already saved, click on the Load button in the
Advanced Breakpoint window. In the next window, browse to locate the .bem file that you
want, select it and then click on Open.
10.2.9 Advanced breakpoint examples
Example 1—Break on memory access without data masking
This example sets a breakpoint on memory access (either a read or a write) within a specific
range of addresses. This sort of breakpoint is very useful if you want to ensure that certain
memory zones are never read or written to.
Imagine that we want to make sure that there are no memory accesses in the memory
address zone from 0x40 to 0x47. We'll program the Advanced Breakpoints window so that
if a memory access in this address range occurs, the program is halted at the instruction
that provoked the access. Proceed as follows: