Skip to main content

IAR Embedded Workbench for Arm 10.10.x

Displaying a graph in the Timeline window

In this section:

The Timeline window can display several graphs—follow this example procedure to display any of these graphs. For an overview of the graphs and what they display, see Briefly about analyzing the timeline.

  1. Choose Driver>ITM Configuration to open the ITM Configuration dialog box. Make sure the CPU clock option is set to the same value as the CPU clock value set by your application. This is necessary only when ITM data is transferred over the SWO communication channel in order to obtain a correct data transfer to the debug probe.

    If you are using the C-SPY simulator in 32-bit mode, choose Simulator>Simulated Frequency to set up a frequency that matches the simulated hardware.

  2. Choose Timeline from the C-SPY driver menu to open the Timeline window.

  3. In the Timeline window, click the Settings button and choose which graphs to display.

  4. For the Data Log graph, you must set a Data Log breakpoint for each variable you want a graphical representation of in the Timeline window. See Data Log breakpoints dialog box and Data Log breakpoints dialog box (C-SPY hardware drivers), respectively.

  5. For the Event graph, you must add a preprocessor macro to your application source code where you want events to be generated. See Getting started using event logging.

  6. Click Go on the toolbar to start executing your application. The graphs that you have enabled appear.