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.

Compiler/TMS320F28377D: Segmentation fault using c2000_16.9.1.LTS

Part Number: TMS320F28377D
Other Parts Discussed in Thread: CONTROLSUITE, SFRA

Tool/software: TI C/C++ Compiler

Running the HV_1PH_DCAC/v1_04_00_00/f2837x/voltagesourceinverterlcfltr solution in controlSUITE.

When compiling the build level 3 options, as stated in the user's guide, there's a segmentation fault generated. Build levels 1 and 2 compiled with no issues. This seems to be an issue with v.16.9 as the example builds with older compilers. Error message below:

INTERNAL ERROR: C:\ti\ccsv6\tools\compiler\ti-cgt-c2000_16.9.0.LTS\bin\cg2000.exe experienced a segmentation fault

while processing function _inverterISR

This is caused by a defect in the compiler itself. TI Customer

Support may be able to suggest a workaround to avoid this.

Upgrading to the newest version of the compiler may fix this problem.

Contact TI in the E2E support forums at http://e2e.ti.com under

"Development Tools", "TI C/C++ Compiler". See the link titled

"Submitting an issue". Include this ENTIRE error message and a

copy of the .pp file created when option --preproc_with_comment

(-ppc) is used.

gmake: *** [voltagesourceinvlcfltr.obj] Error 1

gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • Please submit a test case which allows me to reproduce the same result.

    1. Preprocess the file voltagesourceinvlcfltr.c
    2. Attach that to your next post
    3. Show all the build options exactly as the compiler sees them

    Thanks and regards,

    -George

  • George,

    Attached is the preprocessor file. This is the build options as the compiler sees it for the preprocessed file.

    /cfs-file/__key/communityserver-discussions-components-files/81/0878.voltagesourceinvlcfltr.pp

    **** Build of configuration F2837x_RAM for project voltageSourceInverterLCFltr ****

    "C:\\ti\\ccsv7_beta3\\ccsv7\\utils\\bin\\gmake" -k ./voltagesourceinvlcfltr.obj

    'Building file: ../voltagesourceinvlcfltr.c'

    'Invoking: C2000 Compiler'

    "C:/ti/ccsv7_beta3/ccsv7/tools/compiler/ti-cgt-c2000_16.9.1.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --vcu_support=vcu2 -O2 --opt_for_speed=5 --fp_mode=relaxed --fp_reassoc=on --include_path="C:/ti/ccsv7_beta3/ccsv7/tools/compiler/ti-cgt-c2000_16.9.1.LTS/include" --include_path="C:/ti/controlSUITE/libs/app_libs/solar/v1.2/float/include" --include_path="C:/ti/controlSUITE/device_support/F2837xD/v170/F2837xD_headers/include" --include_path="C:/ti/controlSUITE/device_support/F2837xD/v170/F2837xD_common/include" --include_path="C:/ti/controlSUITE/libs/math/IQmath/v160/include" --include_path="C:/ti/controlSUITE/libs/app_libs/SFRA/v1_10_00_00/Float/include" --advice:performance=all --define="_DEBUG" --define="F28x_DEVICE" --define="CPU1" --define="LARGE_MODEL" -g --preproc_with_comment --preproc_with_compile --diag_warning=225 --quiet -k --asm_listing --tmu_support=tmu0 --cmd_file="configPkg/compiler.opt" "../voltagesourceinvlcfltr.c"

    >> Compilation failure

    subdir_rules.mk:118: recipe for target 'voltagesourceinvlcfltr.obj' failed

    "C:/ti/controlSUITE/libs/app_libs/solar/v1.2/float/include/Solar_F.h", line 26: warning: typedef name has already been declared (with same type)

    "C:/ti/controlSUITE/libs/app_libs/solar/v1.2/float/include/Solar_F.h", line 27: warning: typedef name has already been declared (with same type)

    INTERNAL ERROR: C:\ti\ccsv7_beta3\ccsv7\tools\compiler\ti-cgt-c2000_16.9.1.LTS\bin\cg2000.exe experienced a segmentation fault

    while processing function _inverterISR

    This is caused by a defect in the compiler itself. TI Customer

    Support may be able to suggest a workaround to avoid this.

    Upgrading to the newest version of the compiler may fix this problem.

    Contact TI in the E2E support forums at http://e2e.ti.com under

    "Development Tools", "TI C/C++ Compiler". See the link titled

    "Submitting an issue". Include this ENTIRE error message and a

    copy of the .pp file created when option --preproc_with_comment

    (-ppc) is used.

    gmake: *** [voltagesourceinvlcfltr.obj] Error 1

    **** Build Finished ****

  • Updated previous post with new preprocessed file.

  • Thank you for submitting a test case.  I can reproduce the same results.

    This is a duplicate of a known bug.  The ID is CODEGEN-1709.  It is fixed in version 16.9.2.LTS.

    Thanks and regards,

    -George

  • Ok, I'll update my compiler. Thanks!