059 Using Renesas CS+ Debugger
059 Using Renesas CS+ Debugger
Abstract
This document describes the usage of the Renesas CS+ debugger as target system.
The minimum required version of CS+ is V3.01.00. TESSY supports the RL78
controller family.
Table of Contents
Abstract ...................................................................................................................... 1
1 Renesas CS+ Debugger ..................................................................................... 2
1.1 Setup of the CS+ IDE ................................................................................... 2
1.1.1 Loading the Script File Manually ........................................................... 2
1.1.2 Loading the Script File Automatically .................................................... 4
2 TESSY Environment Settings .............................................................................. 4
3 Test Run .............................................................................................................. 6
3.1 Interactive Debugging .................................................................................. 6
Within the Python Console open the context menu (try the right or left mouse
button) and choose Select Script File….
From the dialog navigate to the script file found for example in TESSY’s installation
directory.
The script will start running as soon as you have selected the correct file and
confirmed the dialog by clicking Open. If the script started successfully the following
message is displayed in the All Messages Output console.
The message indicates that the script is ready to receive commands from TESSY’s
master. Before you start the test run from within TESSY you have to setup the
TESSY environment using the TESSY environment editor (TEE). This is explained in
the next chapter.
1.1.2 Loading the Script File Automatically
If you copy the script file into the root folder of your CS+ project and rename it to the
name of the CS+ project while keeping the .py extension then the script file will be
opened by CS+ automatically as soon as the project is being opened. The message
in the All Message Output console will be the same as when loading the script file
manually. For instance, if your CS+ project is called TESSY-Test then the script file
should be named TESSY-Test.py and should be found in the same folder as where
TESSY-Test.mtpj is found.
and paste it into the TEE attribute Device File as shown below.
Also set the compiler installation directory (Compiler Install Path) and the source
(InitSrcDir) and object (InitObjDir) folder of the board files you will need to link to
your program appropriately. Finally set the attribute Use Board Files to true.
Please note: Only use those board files that are really needed! Create a separate
folder for each source and object board files. Also copy the header files needed by
the board files into the source folder. Keep in mind that you do need board files or
startup code, which can be found in your CS+ project’s source folder.
Finally set the TEE attribute Target Configuration depending on what type of
simulator respectively emulator you suppose to use. Supported values are
Simulator
Minicube
Minicube2
Minicube2Jtag
Iecube
Iecube2
E1Jtag
E1Serial
E1Lpd
E20Jtag
E20Serial
E20Lpd
3 Test Run
Since the CS+ IronPython API utilizes the CS+ IDE during a test run, interactive
debugging is also supported by this target adaption. Interactive debugging is
explained in the next section.
and select Define Breakpoint at Test Object as shown below. Clicking Execute will
start the test run and let the CS+ debugger halt at your test object containing your
corresponding test data. The global variables TS_CURRENT_TESTCASE and
TS_CURRENT_TESTSTEP contain the test case respectively the test step number.
By default, the script jumps to the C source file of your test object. If you do not want
it to open the C source file but instead only watch the Disassemble view you may
set the TEE attribute Jump To Source to false.