In this section:
The C/C++test plugin is integrated with e2 studio Eclipse IDE by means of the standard Eclipse plugin installation mechanism; see Installing C/C++test as a Plugin for details.
Ensure that your project supports "Debug using Simulator". This can be verified by locating the "{project_name} Debug.launch" file at the top level of your project. |
Collecting coverage information for unit tests requires registering extra debugger actions.
Modify the value of GDB Command by browsing for the gdb script located in <CPPTEST_INSTALL_DIR>/bin/engine/etc/templates/for_recipes/RenesasRxGDBinit.gdb
.
The gdb script is set to exit the debugger at Excep_BRK(). If the program being executed halts in a different manner, modify the gdb script accordingly. |
Unit testing with C/C++test requires optimization be set to 0:
Open the project properties and go to Parasoft> C/C++test> Build Settings and configure the following options:
${cpptest:original_options} -define=PARASOFT_CPPTEST -define=FILE_COMMUNICATION_BUFFER_SIZE=128.
-start
argument may resemble the following: -start=SU,SI,B_1,R_1,B_2,R_2,B,R/04,PResetPRG,C_1,C_2,C,C$*,D*,W*,L,PIntPRG,P/0FFD00000,EXCEPTVECT/0FFFFFF80,RESETVECT/0FFFFFFFC
For the new Simulator Memory Map Row:
Emulation ROM | 0x01000000 | 0x01ffffff | 16384 KBytes |
The original project link command start argument:
-start=SU,SI,B_1,R_1,B_2,R_2,B,R/04,PResetPRG,C_1,C_2,C,C$*,D*,W*,L,PIntPRG,P/0FFFF0000,FIXEDVECT/0FFFFFF80
The Parasoft link options after update:
-start=SU,SI,B_1,R_1,B_2,R_2,B,R/04,PResetPRG,C_1,C_2,C,C$*,D*,W*,L,PIntPRG,P/001000000,FIXEDVECT/0FFFFFF80
It may be necessary to make room for more Uninitialized D
You may need to make more room for uninitialized data in the following cases:
To update the memory map, follow the steps from Setting up an Instrumented Debug Launch Configuration and add a new Emulation RAM section (instead of Emulation ROM).
For the new Simulator Memory Map Row:
Emulation RAM | 0x02000000 | 0x02ffffff | 16384 KBytes |
Modify the start argument of the Parasoft linker options to reflect the new row in the memory map.
The original project link command start argument:
-start=SU,SI,B_1,R_1,B_2,R_2,B,R/04,PResetPRG,C_1,C_2,C,C$*,D*,W*,L,PIntPRG,P/001000000,FIXEDVECT/0FFFFFF80
The Parasoft link options after update:
-start=SU,SI,R_1,R_2,R/04,PResetPRG,C_1,C_2,C,C$*,D*,W*,L,PIntPRG,P/001000000,FIXEDVECT/0FFFFFF80,B_1,B_2,B/002000000
It may also be necessary to update the values for stack and heap size. They are defined by |
Exclude source files that contain system initialization or interrupt code from Parasoft instrumentation:
This does not apply to header files. |
The C/C++test execution flow for application monitoring needs to point to the customized launch configuration. To set up the configuration: