Skip navigation
jlink-product-icon.svg

Using Trace with Eclipse Plugin

IAR EWARMs C-SPY Plugin can be used to show Trace data in Eclipse.

Requirements

  • IAR Embedded Workbench (Supported Versions: 6.50x, 7.20x, 7.30x [see http://eclipse-update.iar.com])
  • Java Runtime Environment: JRE 7
  • An Eclipse version supported by IAR. (see http://eclipse-update.iar.com)
  • We recommend to always install the latest J-Link Software and Documentation package to make sure that the latest J-Link DLL is used.

Tested configurations:

  • EWARM 6.50b + Eclipse 3.7
  • EWARM 7.30a + Eclipse 4.4.1

Setup

Download and extract the IAR Plugin suiting the version of Embedded Workbench being used from http://eclipse-update.iar.com. In Eclipse,

  • Select Help | Install new Software
  • Press Add

  • Press local
  • Select the extracted folder and enter a name of your choice, e.g. "IAR Plugin"
  • Check IAR Compiler and Debugger Support
  • Make sure your Internet connection is online.
  • Click Next

  • Click Next
  • Accept the License Terms (IAR Software / Eclipse Foundation)
  • If a warning about unsigned content shows up, click OK.
  • Press Yes to restart Eclipse
  • If shown, dismiss the welcome message.

Importing an IAR EWARM Project to Eclipse

If a normal Eclipse project is used, this step can be skipped. 

  • Select File | Import
  • Click the '+' next to IAR Embedded Workbench
  • Select Import IAR Embedded Workbench project
  • Click Next

  • Click Browse and select the .ewp or .eww file of your project
  • Click Finish

  • Select Project | Select Device
  • Click Browse and select the target CPU.

Starting a Trace Session

  • Select Run | Debug Configurations
  • If necessary, create a Debug Configuration
    • Choose IAR C-SPY Debugger for ARM Launcher as Preferred Launcher
  • Select the tab Setup
  • Select J-Link/J-Trace in the Driver dropdown menu.

  • Press Apply
  • Press Debug

In the Debug Perspective, 

  • Select Window | Show View | Other | C-Spy Trace | C-Spy Trace (ETM)
  • Press OK
  • Activate the Trace Output by clicking the Power On Symbol in the Trace Window
  • The Eclipse Session should look like as follows: