Skip to main content

IAR Embedded Workbench for RISC-V 3.40

Contents

In this section:

Welcome to the C-SPY Debugging documentation, which helps you to use the features in the IAR C-SPY® Debugger for debugging your application based on RISC-V. Below is a brief outline and summary of the contents.

Note

Some of the screenshots are taken from a similar product and not from IAR Embedded Workbench for RISC-V.

Basic debugging

  • The IAR C-SPY Debugger introduces you to the C-SPY debugger and to the concepts that are related to debugging in general and to C-SPY in particular. The chapter also introduces the various C-SPY drivers. The chapter briefly shows the difference in functionality that the various C-SPY drivers provide.

  • Getting started using C-SPY helps you get started using C-SPY, which includes setting up, starting, and adapting C-SPY for target hardware.

  • Executing your application describes the conceptual differences between source and disassembly mode debugging, the facilities for executing your application, and finally, how you can handle terminal input and output.

  • Variables and expressions describes the syntax of the expressions and variables used in C-SPY, as well as the limitations on variable information. The chapter also demonstrates the various methods for monitoring variables and expressions.

  • Breakpoints describes the breakpoint system and the various ways to set breakpoints.

  • Memory and registers shows how you can examine memory and registers.

Analyzing your application

  • Trace describes how you can inspect the program flow up to a specific state using trace data.

  • The application timeline describes the Timeline window, and how to use the information in it to analyze your application’s behavior.

  • Profiling describes how the profiler can help you find the functions in your application source code where the most time is spent during execution.

  • Code coverage describes how the code coverage functionality can help you verify whether all parts of your code have been executed, thus identifying parts which have not been executed.

Advanced debugging

  • Multicore debugging describes how to debug a target with multiple cores.

  • Interrupts contains detailed information about the C-SPY interrupt simulation system and how to configure the simulated interrupts to make them reflect the interrupts of your target hardware.

  • C-SPY macros describes the C-SPY macro system, its features, the purposes of these features, and how to use them.

  • The C-SPY command line utility—cspybat describes how to use C-SPY in batch mode.

  • Flash loaders describes the flash loader, what it is and how to use it.

Additional reference information