Skip to main content

IAR Embedded Workbench for RL78 5.20

Before running cspybat for the first time

In this section:

Before you run cspybat for the first time using an emulator debugger, you must:

  1. Start the IAR Embedded Workbench IDE and select the C-SPY debugger driver that you want to use in the Project>Options dialog box.

  2. Start a debug session and verify that your application can be downloaded and run. If needed, make changes in the Hardware Setup dialog box—available from the Emulator menu. When you end the debug session, the settings are saved to a file with the filename extension .dnx in your project settings folder.

  3. Point to the saved hardware settings file (.dnx) in your project settings folder. There are two ways you can do this:

    1. Set up the environment variable CSPYBAT_INIFILE to point to the file, for example, SET CSPYBAT_INIFILE=C:\my_proj\settings\myproject.dnx.

    2. Use the ‑‑cspybat_inifile command line option to point to the file, see ‑‑cspybat_inifile.

    Note that no quotation marks should be used around the path, even if there are blank characters.