User manual

DVP and EMU2 (HDS2) emulator features UM0036
242/385 Doc ID 7705 Rev 11
To set a hardware event on a line of code
1. Open the Hardware Events window.
2. Open the relevant source file in the Editor and place the cursor in the line of code.
3. Right-click the mouse.
The Editor contextual menu opens.
4. Select Go to Disassembly.
The Disassembly window opens and the code address of the source code line is
selected.
5. Drag and drop the code address from the Disassembly window to the Hardware
Event window.
When you open the Hardware Events window, the hardware event that you have just
added appears. The symbol or code line, as well as the size (the range over which the
event is defined) is shown in the hardware event window in terms of the corresponding
memory address.
Note: You cannot modify the address of existing hardware events, however you can modify their
size or their type.
8.3 Trace recording
The ST7-DVP3, EMU2, and DVP2 series emulators have a trace buffer for recording
hardware cycles. The trace buffer has a limited physical size (512 cycles for DVP3, 1024
cycles for EMU2 and 256 cycles for DVP2). STVD’s Trace window allows you to view
recorded hardware cycles that have occurred during the execution of your application. In
addition, different trace recording modes allow you to control what information is viewed and
when.
Note: The Trace window is not available for use with the DVP1 (first generation MDT1/MDT2
Development Kits).
You can open the Trace window either by clicking on (the Trace window icon) in the
View toolbar, or from the main menu by selecting View>Trace.
Trace recording is activated from the Trace contextual menu. When activated, the Run,
Continue and Step commands prompt the trace buffer to save trace information until a
breakpoint is reached.
You can either view all of the trace buffer contents or filter those that you want to view (see
Line filter).
You can also use the Logical analyser (EMU2 emulators only) to define conditions whereby
you can filter those cycles you want to record in the trace buffer. For example:
you can stop or start trace buffer recording after a specific event, or,
you can cause each access made to the specified area to be recorded a specific
number of times.
8.3.1 Trace contextual menu
The Trace window contextual menu contains commands for trace operations plus several
trace window configuration options. Right-click anywhere within the Trace window to open
the Trace contextual menu.