- IAR Embedded Workbench for RX 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 a hardware debugger, you must:
Add the subdirectory
rx\config\renesas\execsto thepathenvironment 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\execsStart 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.
Set up the environment variable
CSPYBAT_INIFILEto point to the saved hardware settings file (.dnx) in thesettingssubdirectory 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.