This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Coverity Static Analysis setup - dosrun.bat



I'm have issues configuring the Coverity Static Analysis tool to work with a Code Composer v4 project. I was told that running the 'dosrun.bat' file will configure the environment variables to allow Coverity to work with the TI compiler, but this file doesn't appear in the latest version of Code Composer. I was wondering if someone could tell me exactly what this batch file did so I can manually make these changes to work with Coverity.

Thanks in advance,
Chris

  • Hi Chris,

    dosrun.bat is a file that came will CCS v3 and earlier. It set up some DOS environment variables, mainly added the path to the compiler and BIOS to the system PATH and set some new variables.

    REM ========================================================================
    REM =  Texas Instruments
    REM =  Run this batch file before attempting to build from a command line.
    REM =  This file is automatically generated during installation.
    REM ========================================================================
    REM =  If you get an "Out of Environment Space" error message running this batch 
    REM =  file on Windows 98 or Windows Me type the following line at the C:\CCStudio_v3.3> prompt 
    REM =  to start a new copy of the Windows Command Interpreter with 2K of Environment Space.
     
    REM      COMMAND /E:2048
     
    REM ========================================================================
    SET PATH=C:\CCStudio_v3.3\c2000\cgtools\bin;C:\CCStudio_v3.3\c2400\cgtools\bin;C:\CCStudio_v3.3\bin;C:\CCStudio_v3.3\cc\bin;C:\CCStudio_v3.3\c6000\cgtools\bin;C:\CCStudio_v3.3\c6000\evm6x\bin;C:\CCStudio_v3.3\c5400\cgtools\bin;C:\CCStudio_v3.3\c5500\cgtools\bin;C:\CCStudio_v3.3\TMS470\cgtools\bin;C:\CCStudio_v3.3\plugins\bios;C:\CCStudio_v3.3\bios_5_31_02\xdctools;%PATH%;
    SET C54X_C_DIR=C:\CCStudio_v3.3\bios_5_31_02\packages\ti\bios\include;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\bios\lib;C:\CCStudio_v3.3\c5400\xdais\include;C:\CCStudio_v3.3\c5500\xdais\lib;C:\CCStudio_v3.3\c5400\cgtools\include;C:\CCStudio_v3.3\c5400\cgtools\lib;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\rtdx\include\c5400;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\rtdx\lib\c5400;
    SET C54X_A_DIR=C:\CCStudio_v3.3\bios_5_31_02\packages\ti\bios\include;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\bios\lib;C:\CCStudio_v3.3\c5400\dsk5416\include;C:\CCStudio_v3.3\c5400\dsk5416\lib;C:\CCStudio_v3.3\c5400\xdais\include;C:\CCStudio_v3.3\c5500\xdais\lib;C:\CCStudio_v3.3\c5400\cgtools\include;C:\CCStudio_v3.3\c5400\cgtools\lib;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\rtdx\include\c5400;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\rtdx\lib\c5400;
    SET BSL5416_DIR=C:\CCStudio_v3.3\c5400\dsk5416\lib
    SET TI_DIR=C:\CCStudio_v3.3
    SET C55X_A_DIR=C:\CCStudio_v3.3\c5500\xdais\include;C:\CCStudio_v3.3\c5500\xdais\lib;C:\CCStudio_v3.3\c5500\cgtools\include;C:\CCStudio_v3.3\c5500\cgtools\lib;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\bios\include;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\bios\lib;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\rtdx\include\c5500;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\rtdx\lib\c5500;
    SET C55X_C_DIR=C:\CCStudio_v3.3\c5500\xdais\include;C:\CCStudio_v3.3\c5500\xdais\lib;C:\CCStudio_v3.3\c5500\cgtools\include;C:\CCStudio_v3.3\c5500\cgtools\lib;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\bios\include;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\bios\lib;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\rtdx\include\c5500;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\rtdx\libc5500;
    SET C55X_CONFIG_FILE=C:\CCStudio_v3.3\cc\bin\c55xx.cfg
    SET TMS470_C_DIR=C:\CCStudio_v3.3\TMS470\cgtools\include;C:\CCStudio_v3.3\TMS470\cgtools\lib;C:\CCStudio_v3.3\TMS470\rtdx\include;C:\CCStudio_v3.3\TMS470\rtdx\lib;
    SET TMS470_A_DIR=C:\CCStudio_v3.3\TMS470\cgtools\include;C:\CCStudio_v3.3\TMS470\cgtools\lib;C:\CCStudio_v3.3\TMS470\rtdx\include;C:\CCStudio_v3.3\TMS470\rtdx\lib;
    SET C6X_C_DIR=C:\CCStudio_v3.3\bios_5_31_02\packages\ti\bios\include;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\bios\lib;C:\CCStudio_v3.3\c6000\xdais\include;C:\CCStudio_v3.3\c6000\xdais\lib;C:\CCStudio_v3.3\c6000\cgtools\include;C:\CCStudio_v3.3\c6000\cgtools\lib;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\rtdx\lib\c6000;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\rtdx\include\c6000;C:\CCStudio_v3.3\c6000\dsk6416\include;C:\CCStudio_v3.3\c6000\dsk6416\lib;C:\CCStudio_v3.3\c6000\dsk6713\include;C:\CCStudio_v3.3\c6000\dsk6713\lib;
    SET C6X_A_DIR=C:\CCStudio_v3.3\bios_5_31_02\packages\ti\bios\include;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\bios\lib;C:\CCStudio_v3.3\c6000\xdais\include;C:\CCStudio_v3.3\c6000\xdais\lib;C:\CCStudio_v3.3\c6000\cgtools\include;C:\CCStudio_v3.3\c6000\cgtools\lib;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\rtdx\lib\c6000;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\rtdx\include\c6000;C:\CCStudio_v3.3\c6000\dsk6416\include;C:\CCStudio_v3.3\c6000\dsk6416\lib;C:\CCStudio_v3.3\c6000\dsk6713\include;C:\CCStudio_v3.3\c6000\dsk6713\lib;
    SET D_SRC=C:\CCStudio_v3.3\c6000\evm6x\lib
    SET BSL6416_DIR=C:\CCStudio_v3.3\c6000\dsk6416\lib
    SET BSL6713_DIR=C:\CCStudio_v3.3\c6000\dsk6713\lib
    SET C2000_C_DIR=C:\CCStudio_v3.3\bios_5_31_02\packages\ti\bios\include;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\bios\lib;C:\CCStudio_v3.3\c2000\xdais\include;C:\CCStudio_v3.3\c2000\xdais\lib;C:\CCStudio_v3.3\c2000\cgtools\include;C:\CCStudio_v3.3\c2000\cgtools\lib;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\rtdx\lib\c2000;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\rtdx\include\c2000;
    SET C2000_A_DIR=C:\CCStudio_v3.3\bios_5_31_02\packages\ti\bios\include;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\bios\lib;C:\CCStudio_v3.3\c2000\xdais\include;C:\CCStudio_v3.3\c2000\xdais\lib;C:\CCStudio_v3.3\c2000\cgtools\include;C:\CCStudio_v3.3\c2000\cgtools\lib;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\rtdx\lib\c2000;C:\CCStudio_v3.3\bios_5_31_02\packages\ti\rtdx\include\c2000;
    SET DSP_C_DIR=C:\CCStudio_v3.3\c2400\cgtools\include;C:\CCStudio_v3.3\c2400\cgtools\lib;
    SET DSP_A_DIR=C:\CCStudio_v3.3\c2400\cgtools\include;C:\CCStudio_v3.3\c2400\cgtools\lib;
    

    I've attached an example dosrun.bat from CCSv3.3 for reference.

    Thansk

    ki

  • Is there a newer version of this batch file that will set up the same environment variables/paths for Code Composer v4? It seems the directory structure of the tool has changed between these versions, so I'm not sure how to modify it manually in order to achieve the same effects.

    Thanks,

    Chris

  • There is no 'dosrun.bat' equivalent in v4. I'm guessing for Coverity that you need the paths to the code generation tools (compiler/assembler/linker). The code gen tool path in v4 is:

    executables (compiler/assembler/linker): <INSTALL DIR>\ccsv4\tools\compiler\<ISA>\bin

    runtime library includes: <INSTALL DIR>\ccsv4\tools\compiler\<ISA>\include

    runtime libraries: <INSTALL DIR>\ccsv4\tools\compiler\<ISA>\lib

    ki