Skip to main content

IAR Embedded Workbench for RISC-V 3.40

Getting started using data logging

In this section:
  1. To set a data log breakpoint, use one of these methods:

    • In the Breakpoints window, right-click and choose New Breakpoint>Data Log to open the breakpoints dialog box. Set a breakpoint on the memory location that you want to collect log information for. This can be specified either as a variable or as an address.

    • In the Memory window, select a memory area, right-click and choose Set Data Log Breakpoint from the context menu. A breakpoint is set on the start address of the selection.

    • In the editor window, select a variable, right-click and choose Set Data Log Breakpoint from the context menu. The breakpoint will be set on the part of the variable that the microcontroller can access using one instruction.

    You can set up to four data log breakpoints. For more information, see Data Log breakpoints.

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

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

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

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

  5. To view the data log information, look in the Data Log window, or the Data Log Summary 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 data logging, choose Disable from the context menu in each window where you have enabled it.