User manual

EMU3 emulator features UM0036
284/385 Doc ID 7705 Rev 11
10 EMU3 emulator features
This section explains how to use the features that are specific to the ST7-EMU3 emulator,
including:
Section 10.1: Trace recording
Section 10.2: Using advanced breakpoints
Section 10.3: Programming trace recording
Section 10.4: Using output triggers
Section 10.5: Using analyzer input signals
Section 10.6: Performance analysis
Section 10.7: Read/write on the fly
Section 10.8: Performing automatic firmware updates
10.1 Trace recording
The EMU3 emulator can hold 256000 hardware cycle records in a physical memory module
called the trace buffer. STVD’s Trace window allows you to view recorded hardware cycles
that have occurred during the execution of your application.
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.
Only information obtained up until the occurrence of the last breakpoint is visible in the
Trace window.
You can use advanced breakpoints (see Section 10.2: Using advanced breakpoints on
page 291) to define conditions whereby you can filter out those cycles you want recorded in
the trace buffer. A number of examples are provided in Section 10.3: Programming trace
recording on page 309, showing you how to control the trace recording using advanced
breakpoints.
The following sections provide information about:
Trace buffer fields
The commands in the Trace contextual menu
Emulator commands
10.1.1 Trace buffer fields
The Trace window presents a table of fourteen fields (plus the Symbol Bar) which together
form a single trace record.
At the left is the Symbol Bar (which has no column heading) followed in default order by
Record / Address / Memory Location / Data / Event / Hexadecimal / Disassembly /
Symbolic Disassembly / Timestamp / (TEv) Timestamp Event / Trace Discontinuity /
TIN (Trigger Input) / AI (Analyzer Input) / BEM (Advanced Breakpoints). Each is
described individually below.