Skip to main content

IAR Embedded Workbench for Arm 9.70.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>SWO Configuration to open the SWO 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 to set the SWO clock and to obtain a correct data transfer to the debug probe.

    If you are using the C-SPY simulatorin 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, right-click in the window and choose Select Graphs from the context menu to select which graphs to be displayed.

  4. In the Timeline window, right-click in the graph area and choose Enable from the context menu to enable a specific graph.

  5. 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.

  6. 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.

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