Skip to main content

IAR Embedded Workbench for RX 5.20

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 the RX microcontroller. 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 RX.

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.

  • Analyzing code performance describes how to use a C-SPY hardware debugger to analyze code performance in terms of time, clock cycles, interrupts, exceptions, and instructions.

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

  • Power debugging describes techniques for power debugging and how you can use C-SPY to find source code constructions that result in unexpected power consumption.

  • C-RUN runtime error checking describes how to use C-RUN for runtime error checking.

Advanced debugging

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

Additional reference information