Keil™, An ARM® Company

ULINK®2 User's Guide

Using the Logic Analyzer

The Logic Analyzer window may be used to graphically show up to 4 variable values over time based on the Trace Records captured.

Logic Analyzer Capture

To display variables using the Logic Analyzer display:

  1. Trace Timestamps - EnableIn Cortex-M Target Driver Setup window enable Timestamps and select a appropriate Prescaler value to define the Granularity of the timestamps.

    You must enable Timestamps to see exact time values in the Logic Analyzer window.

  2. Add the variable you want to watch to the Logic Analyzer. For more details see Logic Analyzer in the µVision User's Guide.
  3. Watch the values of the chosen variables change during the Target Debug Session.

Notes

  • When you define variables for Logic Analyzer display, this automatically sets up Trace to record Data Read/Data Write events for those variables. These events become part of the Trace Records display.

Restrictions

  • Up to four variables may be displayed. Using watchpoints at the same time reduces the number of variables you may watch.
  • You may not display automatic variables defined inside a function. Select only global variables.
  • Trace must run without any errors. Lost trace packets lead to incomplete data. Please see Trace Status Bar page for more information about Trace errors.