Skip to main content

IAR Embedded Workbench for RX 5.20

Before running cspybat for the first time

In this section:

Before you run cspybat for the first time using a hardware debugger, you must:

  1. Add the subdirectory rx\config\renesas\execs to the path environment variable.

    For example, assuming IAR Embedded Workbench has been installed in the default location: path=%path%;C:\Program Files\IAR Systems\IAR Embedded Workbench n.n\rx\config\renesas\execs

  2. Start the IAR Embedded Workbench IDE and set up the hardware debugger in the Hardware Setup dialog box—available from the C-SPY driver menu when you start a debug session. Save the project. The settings are saved to a file.

  3. Set up the environment variable CSPYBAT_INIFILE to point to the saved hardware settings file (.dnx) in the settings subdirectory in your project directory.

    For example, SET CSPYBAT_INIFILE=C:\my_proj\settings\myproject.dnx. Note that no quotation marks should be used around the path, even if there are blank characters.

    You can also point out this file using the option ‑‑cspybat_inifile, like this: ‑‑cspybat_inifile "C:\my_proj\settings\myproject.dnx", see ‑‑cspybat_inifile.