Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space CPPTDESKDEV and version 2021.1

...

Once a .bat build file is generated, import the project into C/C++test as follows:

  1. Choose File> New> Project, select Import Keil uVision projects, then click Next.
  2. Type (or browse to) the path to the appropriate project/workspace file or directory.
  3. Click the Refresh, select the projects to import, then Next.
  4. Set the import destination, project contents, and build target to be imported, then click Finish. If you select a different build target than the one that you generated a build bat file for, then the import wizard will not let you to import the project.

The imported project will have a suitable compiler configuration preselected. 

...

Info
iconfalse
titleImportant - Starting C++test with the Appropriate Environment

In order to successfully analyze the source code, C/C++test needs to be started with the environment prepared for uVision compilation tools. The  RVCT compiler and uVision debugger (Uv3.exe or Uv4.exe) locations have to be added to the $PATH variable before launching C/C++test GUI/CLI. The recommended practice is to use a uVision3-generated .bat build file for extracting the environment settings.

...

  1. Navigate to the project directory and run the following command:
    [path to]\cpptesttrace.exe --cpptesttraceProjectName=[project name] --cpptesttraceOutputFile=[project name].bdf  --cpptesttraceQuoteCmdLineMode=sq "[path to]\Uv4.EXE" -r [project file]
    • .Uv2 and .uvproj extensions are supported--the GUI will automatically convert .Uv2 projects
    • The location of cpptesttrace.exe is located within [INSTALL]\engine\bin\ <INSTALL_DIR>/bin/cpptesttrace.exe
    • Default location of Keil Uv4.EXE gui is: "C:\Keil\UV4\Uv4.EXE"
    • [project name] is a unique identifier for this project when it's imported to C++test
  2. Import the newly created .bdf using the C++test GUI

...

The file extension case may change for some source files generated with the Keil C166 IDE. This will cause source file to be skipped during analysis.

  1. In C/C++test, right-click on your project and choose Properties> C/C++ General> File Types
  2. Enable the "Use project setting" option
  3. Click New and enter *.C. in the Pattern
  4. Choose C Source File from the Type drop-down menu and click OK
  5. Click New and enter *.CPP in the Pattern and choose C++ Source File from the Type drop-down menu
  6. Click OK

...