Skip to main content

IAR Embedded Workbench for Arm 9.70.x

Getting started using interrupt logging

In this section:
  1. To set up for interrupt logging, choose Driver>SWO Configuration. In the dialog box, set up the serial-wire output communication channel for trace data. Note specifically the CPU clock option. The CPU clock can also be set up on the Project>Options>ST-LINK>Communication page and the Project>Options>TI XDS>Communication page, respectively.

    For the C-SPY simulator, no specific settings are required.

  2. Choose Driver>Interrupt Log to open the Interrupt Log window. Optionally, you can also choose:

    • Driver>Interrupt Log Summary to open the Interrupt Log Summary window

    • Driver>Timeline to open the Timeline window and view the Interrupt graph

  3. From the context menu in the Interrupt Log window, choose Enable to enable the logging.

    In the SWO Configuration dialog box, you can see in the Interrupt Log Events area that interrupt logs are enabled.

  4. Start executing your application program to collect the log information.

  5. To view the interrupt log information, look in the Interrupt Log or Interrupt Log Summary window, or the Interrupt graph in the Timeline window.

  6. If you want to save the log or summary to a file, choose Save to log file from the context menu in the window in question.

  7. To disable interrupt logging, from the context menu in the Interrupt Log window, toggle Enable off.