µVision4 User's Guide

Technical Support

On-Line Manuals

µVision4 User's Guide

About µVision User Interface Creating Applications Utilities Debugging Using the Debugger Simulation Start Debugging Application Program Execution Debug Windows and Dialogs Breakpoints Window Call Stack and Locals Window Code Coverage Command Window Disassembly Window Event Viewer Execution Profiler Instruction Trace Window Logic Analyzer Setup Setup in Detail Restrictions Using the Logic Analyzer Memory Map Memory Window Performance Analyzer Registers Window Serial Window Symbols Window System Viewer Adding System Viewer Windows Toolbox Trace Data Window Trace Navigation Watch Window Expressions Constants System Variables Peripheral Variables I/O Ports Serial Ports Program Variables (Symbols) Fully Qualified Symbols Non-Qualified Symbols Literal Symbols Using Symbols Line Numbers Bit Addresses Type Specifications Operators Memory Type Specifiers Differences Between µVision4 and C Expression Examples Tips and Tricks Review Peripherals and CPU Configuration Simulate I/O Ports Simulate Interrupts and Clock Inputs Simulate external I/O Devices Assign Serial I/O to a PC COM Port Check Illegal Memory Access Command Input from File Preset I/O Ports or Memory Contents Write Debug Output to a File Keyboard Shortcuts TPIU Initialization after RESET (Cortex-M) Debug Commands Debug Functions Simulation Flash Programming Dialogs Example Programs Command Line Appendix

Logic Analyzer

The Logic Analyzer is a graphical analysis tool that shows value changes of variables or VTREGs. These elements can be specified by the user, but are subject to restrictions. As a consequence, not every variable can be shown.

The Logic Analyzer can be used with the Simulator or when debugging on hardware. Configure the device for capturing trace data as described in Using the Logic Analyzer.

Logic Analyzer ButtonOpen the Logic Analyzer from the toolbar or via the menu View - Analysis Windows - Logic Analyzer.

Logic Analyzer Window

Setup... opens a dialog to define variables for recording and to configure the signal output. Some configuration settings can be changed through the signal's context menu.

Load... imports the signals recorded and saved previously in a file (*.UVLA). The data can be analyzed off-line. No signals can be added or removed when viewing data from such a file. Click the button Start to return to the currently defined signals.

Save... stores the signals in a file (*.UVLA) for future analysis. Alternatively, signals can be saved in a tab-delimited file (*.TAB).

The time fields show:

  • Min Time is the first time stamp in the signal recording buffer. The time starts at zero and keeps rolling forward while µVision is recording the signals.
  • Max Time is the last time stamp of the signal recording buffer. It shows the time since signal recording started.
  • Grid is the time interval between two grid lines.

Zoom buttons change the time range of the display:

  • In zooms into the signals to get a detailed view at the reference line. The time interval between two grid lines gets smaller.
  • Out zooms out of the signals for a better overview at the reference line. The time interval between two grid lines gets larger.
  • All shows the complete content of the signal recording buffer.

Code Show opens the Disassembly or source window at the code line that caused the signal transition. The button is active when a program counter value has been recorded.

Trace Show opens the Trace Data and Trace Navigation window. Trace records are synchronized with the Logic Analyzer.

Setup Min/Max buttons configure the signal amplitude range in the display. Highlight a variable name and click:

  • Auto to configure the signal amplitude range based on the signal recording buffer data.
  • Undo to restore the amplitude range settings that existed before the button Auto was clicked.

Stop halts updating the display. µVision continues to fill the signal recording buffer. When clicked, the button changes its boilerplate text to Start.

Start updates the display with data from the signal recording buffer and incoming data. When clicked, the button changes its boilerplate text to Stop.

Transition buttons snap the reference line to the next transition point. Highlight a variable name and click:

  • Priv to move the reference line to the previous transition point. The Left-Arrow key can be used also.
  • Next to move the reference line to the succeeding transition point. The Right-Arrow key can be used also.

Signal Info enables signal details while hovering the mouse over a signal point.

Show Cycles enables cycle information, which are displayed in the time stamp axis.

Amplitude enables the reference amplitude line and, when Cursor is enabled, also the mouse amplitude line.

Cursor enables a mouse cursor line that displays signal values at mouse position and deltas to the reference line.

Additional Mouse and Key Commands

  • Click into the display area to set reference line to a time position.
  • Double-click into the display area to remove the reference line.
  • Use the mouse wheel to zoom in and out at mouse position.
  • Shift+button click applies that button-action to all signals and is effective for the Setup Min/Max buttons.
  • Shift+context menu item applies that configuration option to all signals.
  • Shift+mouse move snaps the mouse cursor line to the next transition of the moving direction.
  • Click on a variable name and press DEL to remove the signal.
  • Use the option Adaptive Min/Max of the context menu to configure the signal amplitude range dynamically based on the values available in the signal recording buffer and according to the incoming data.
  • Press the Up- or Down-arrow key to highlight the next signal.
  • Click on the variable name to toggle signal highlighting.