0% found this document useful (0 votes)
53 views17 pages

074 Using TASKING Script Debugger

Uploaded by

Bourama Traore
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views17 pages

074 Using TASKING Script Debugger

Uploaded by

Bourama Traore
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Using TASKING Script Debugger

Using TASKING Script Debugger

Abstract
This document describes the setup and handling of the TASKING Script Debugger
which is used when selecting TASKING VX as target from within the TESSY
Environment Editor (TEE). The TASKING Script Debugger is used for normal test
runs. If you need to interactively debug your test object, refer to chapter 5.

Table of Contents
Abstract ...................................................................................................................... 1
1 Introduction.......................................................................................................... 2
2 Create the Debugger Configuration File .............................................................. 2
3 Setting up the TEE .............................................................................................. 5
4 Debugger Launch Path........................................................................................ 6
5 Interactive Debugging.......................................................................................... 7
5.1 Creating a test application to debug ............................................................. 7
5.2 Debugging the test application ..................................................................... 8
5.2.1 Importing the test binary ........................................................................ 8
5.2.2 Debugging the test binary ................................................................... 12
6 Troubleshooting................................................................................................. 17
6.1.1 The script debugger runs into a watchdog/trap ................................... 17

TESSY Application Note #074, 16 June 2022 Page 1 of 17


Razorcat Development GmbH  Witzlebenplatz 4  14057 Berlin
phone: +49 - 30 - 536 357 - 0  fax: +49 - 30 - 536 357 – 60  email: support@[Link]
TESSY Application Notes

1 Introduction
Using the TASKING Script Debugger as TESSY’s target debugger requires some
pre-adjustments to be performed. You have to
• set the correct paths to the compiler installation directory and to the debugger
installation directory within TEE,
• find the proper startup code and linker file,
• copy the MConfig file from your TASKING project into the config directory
of your TESSY project directory (see chapter 4 for further details),
• and you will need a proper debugger configuration file.
How to create the latter one is described in this document. Application note 021
Tasking Compiler covers the compiler and linker settings.

2 Create the Debugger Configuration File


Launch the script debugger from your Windows menu.

From the TASKING Script Debugger menu choose Edit Configuration…

TESSY Application Note #074, 16 June 2022 Page 2 of 17


Razorcat Development GmbH  Witzlebenplatz 4  14057 Berlin
phone: +49 - 30 - 536 357 - 0  fax: +49 - 30 - 536 357 – 60  email: support@[Link]
TESSY Application Notes

From the Configuration dialog select Copy from predefined…

From the Copy from Predefined dialog choose your board. In our example we
choose Infineon TriBoard TC389.

Click OK.

TESSY Application Note #074, 16 June 2022 Page 3 of 17


Razorcat Development GmbH  Witzlebenplatz 4  14057 Berlin
phone: +49 - 30 - 536 357 - 0  fax: +49 - 30 - 536 357 – 60  email: support@[Link]
TESSY Application Notes

Now you may check if further adjustments are needed. Finally click OK.

From the File menu select Save configuration as…

TESSY Application Note #074, 16 June 2022 Page 4 of 17


Razorcat Development GmbH  Witzlebenplatz 4  14057 Berlin
phone: +49 - 30 - 536 357 - 0  fax: +49 - 30 - 536 357 – 60  email: support@[Link]
TESSY Application Notes

Save the file into your TESSY project’s config directory.

3 Setting up the TEE


Open TESSY, if you have not done by now, and launch the TEE. From TEE’s All
Environments tab select TASKING VX.

TESSY Application Note #074, 16 June 2022 Page 5 of 17


Razorcat Development GmbH  Witzlebenplatz 4  14057 Berlin
phone: +49 - 30 - 536 357 - 0  fax: +49 - 30 - 536 357 – 60  email: support@[Link]
TESSY Application Notes

Scroll down to attribute Debug Configuration File. Edit the attribute value and select
the debug configuration file you just saved.

The resulting attribute values should look like this.

4 Debugger Launch Path


The debugger launch path is not the installation path of the TASKING debugger, but
instead the directory from where the TASKING debugger will be launched by TESSY.
This directory has to contain the MConfig file, which is found in your TASKING
development project. The TEE attribute Debugger Launch Path points to your
TESSY’s project configuration directory, i.e. $(PROJECTROOT)\tessy\config. It
is strongly recommended to keep it that way, because it enhances the portability of
the TESSY project. So, the best way is to copy the MConfig file from the TASKING
project directory into the configuration directory of the TESSY project. It is also
recommended to copy the OConfig file found in TESSY’s installation directory, i.e.

TESSY Application Note #074, 16 June 2022 Page 6 of 17


Razorcat Development GmbH  Witzlebenplatz 4  14057 Berlin
phone: +49 - 30 - 536 357 - 0  fax: +49 - 30 - 536 357 – 60  email: support@[Link]
TESSY Application Notes

sys\targets\tasking\OConfig, into the same directory. The file contains a


command for the TASKING debugger to disable the watchdog.

5 Interactive Debugging
The TASKING VX debugger, on the other hand, is an Eclipse application of which the
integrated debugger cannot be controlled from outside. Therefore, TESSY does not
support the interactive debugging feature when executing tests. If you want to debug
the test application with your test data, you need to create a test application with
built-in test data.

5.1 Creating a test application to debug


Select your test object and go to the Attributes tab of the Properties. Set the
Generate Builtin Data attribute to true.

Press the Execute Test button to start compilation and linking of the test
application containing the test data. At the end of this process, you should see the
following output within the Console view:

Copy the name of the generated executable ELF file into the Windows clipboard for
the next step of debugging.

TESSY Application Note #074, 16 June 2022 Page 7 of 17


Razorcat Development GmbH  Witzlebenplatz 4  14057 Berlin
phone: +49 - 30 - 536 357 - 0  fax: +49 - 30 - 536 357 – 60  email: support@[Link]
TESSY Application Notes

5.2 Debugging the test application


The debugging of the test application containing built-in data requires manual loading
of this application into the TASKING EDE.
5.2.1 Importing the test binary
Select File->Import… to open the Import dialog:

Select TASKING TriCore C/C++ executable file for debugging and click Next.

TESSY Application Note #074, 16 June 2022 Page 8 of 17


Razorcat Development GmbH  Witzlebenplatz 4  14057 Berlin
phone: +49 - 30 - 536 357 - 0  fax: +49 - 30 - 536 357 – 60  email: support@[Link]
TESSY Application Notes

Enter the path to your test binary you copied from TESSY’s Console view and click
Next.

TESSY Application Note #074, 16 June 2022 Page 9 of 17


Razorcat Development GmbH  Witzlebenplatz 4  14057 Berlin
phone: +49 - 30 - 536 357 - 0  fax: +49 - 30 - 536 357 – 60  email: support@[Link]
TESSY Application Notes

Click Next.

TESSY Application Note #074, 16 June 2022 Page 10 of 17


Razorcat Development GmbH  Witzlebenplatz 4  14057 Berlin
phone: +49 - 30 - 536 357 - 0  fax: +49 - 30 - 536 357 – 60  email: support@[Link]
TESSY Application Notes

Select your target processor and click Finish.

TESSY Application Note #074, 16 June 2022 Page 11 of 17


Razorcat Development GmbH  Witzlebenplatz 4  14057 Berlin
phone: +49 - 30 - 536 357 - 0  fax: +49 - 30 - 536 357 – 60  email: support@[Link]
TESSY Application Notes

5.2.2 Debugging the test binary


Select your imported test binary project and open the context menu.

Select Debug As->Debug TASKING Embedded Local C/C++ Application to open


the Debug Configurations dialog.

TESSY Application Note #074, 16 June 2022 Page 12 of 17


Razorcat Development GmbH  Witzlebenplatz 4  14057 Berlin
phone: +49 - 30 - 536 357 - 0  fax: +49 - 30 - 536 357 – 60  email: support@[Link]
TESSY Application Notes

Switch to the Source tab and click Add…. Select File System Directory.

Add the directory of the test application into the input field and click Ok.

TESSY Application Note #074, 16 June 2022 Page 13 of 17


Razorcat Development GmbH  Witzlebenplatz 4  14057 Berlin
phone: +49 - 30 - 536 357 - 0  fax: +49 - 30 - 536 357 – 60  email: support@[Link]
TESSY Application Notes

Switch to the Target tab, select the proper target from the Target pane, click Apply,
and click Debug.

Copy the test object name from TESSY’s Test Project view.

TESSY Application Note #074, 16 June 2022 Page 14 of 17


Razorcat Development GmbH  Witzlebenplatz 4  14057 Berlin
phone: +49 - 30 - 536 357 - 0  fax: +49 - 30 - 536 357 – 60  email: support@[Link]
TESSY Application Notes

and add the name as a function breakpoint into the TASKING debugger.

TESSY Application Note #074, 16 June 2022 Page 15 of 17


Razorcat Development GmbH  Witzlebenplatz 4  14057 Berlin
phone: +49 - 30 - 536 357 - 0  fax: +49 - 30 - 536 357 – 60  email: support@[Link]
TESSY Application Notes

Resume the test execution.

You can now step through the function and continue test execution to run until the
next test step. When you are finished, just terminate the debug session.

The test object contains two global variables which hold the current test case and the
current test step which you may find helpful to be added to the Expressions view.

Please note: At the end of debugging do not forget to reset the Generate Builtin
Data attribute of the current test object to false to enable normal test execution
without debugging again.

TESSY Application Note #074, 16 June 2022 Page 16 of 17


Razorcat Development GmbH  Witzlebenplatz 4  14057 Berlin
phone: +49 - 30 - 536 357 - 0  fax: +49 - 30 - 536 357 – 60  email: support@[Link]
TESSY Application Notes

6 Troubleshooting
6.1.1 The script debugger runs into a watchdog/trap
Please, copy the OConfig from the TESSY installation directory into your Debugger
Launch Path. The file is found in sys\targets\tasking\OConfig.

TESSY Application Note #074, 16 June 2022 Page 17 of 17


Razorcat Development GmbH  Witzlebenplatz 4  14057 Berlin
phone: +49 - 30 - 536 357 - 0  fax: +49 - 30 - 536 357 – 60  email: support@[Link]

You might also like