- IAR Embedded Workbench for RL78 5.20
- C-SPY Debugging
- The C-SPY command line utility—cspybat
- Using C-SPY in batch mode
- Before running cspybat for the first time
Before running cspybat for the first time
Before you run cspybat for the first time using an emulator debugger, you must:
Start the IAR Embedded Workbench IDE and select the C-SPY debugger driver that you want to use in the Project>Options dialog box.
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
.dnxin your projectsettingsfolder.Point to the saved hardware settings file (
.dnx) in your projectsettingsfolder. There are two ways you can do this:Set up the environment variable
CSPYBAT_INIFILEto point to the file, for example,SET CSPYBAT_INIFILE=C:\my_proj\settings\myproject.dnx.Use the
‑‑cspybat_inifilecommand 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.