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/TMS320F280049C: Upgraded to v20.2.0.LTS (from v19.6.0.STS) results in compilation INTERNAL ERROR

Part Number: TMS320F280049C

Tool/software: TI C/C++ Compiler

My program builds and runs fine with compiler version 19.6.0.STS. I'm trying to upgrade to 20.2.0.LTS and 3 files produce the same internal error.

Building file: "C:/GIT_Repositories/168-952x_DSP_Firmware_7kW_1Ph/168-955x_SourceFiles/StateMachine_Bridge.c"
Invoking: C2000 Compiler
"C:/ti/ccs900/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu0 -O3 --fp_mode=strict --include_path="C:/Users/stewa/workspace_v9/168-953x_EV_BiDirect_1Ph7kW_Application_F280049" --include_path="C:/GIT_Repositories/168-952x_DSP_Firmware_7kW_1Ph/168-953x_Application" --include_path="C:/GIT_Repositories/168-952x_DSP_Firmware_7kW_1Ph/168-955x_SourceFiles" --include_path="C:/GIT_Repositories/168-952x_DSP_Firmware_7kW_1Ph/168-956x_IncludeFiles/f28004x/common/include" --include_path="C:/GIT_Repositories/168-952x_DSP_Firmware_7kW_1Ph/168-956x_IncludeFiles/f28004x/headers/include" --include_path="C:/GIT_Repositories/168-952x_DSP_Firmware_7kW_1Ph/168-956x_IncludeFiles/CLAmath/c28/include" --include_path="C:/GIT_Repositories/168-952x_DSP_Firmware_7kW_1Ph/168-956x_IncludeFiles/IQmath/include" --include_path="C:/ti/ccs900/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --advice:performance --define=BOARDREV_LAUNCHXLF280049 --define=USE_EXT_XTAL -g --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="A_SourceFiles/StateMachine_Bridge.d_raw" --obj_directory="A_SourceFiles"  "C:/GIT_Repositories/168-952x_DSP_Firmware_7kW_1Ph/168-955x_SourceFiles/StateMachine_Bridge.c"
 
>> Compilation failure
A_SourceFiles/subdir_rules.mk:107: recipe for target 'A_SourceFiles/StateMachine_Bridge.obj' failed
"C:/GIT_Repositories/168-952x_DSP_Firmware_7kW_1Ph/168-955x_SourceFiles/StateMachine_Bridge.c", line 228 (col. 54): advice #2615-D: (Performance) Use --fp_mode=relaxed to enable TMU hardware support for FP division.
 
INTERNAL ERROR: C:\ti\ccs900\ccs\tools\compiler\ti-cgt-c2000_20.2.0.LTS\bin\ac2000.exe experienced a segmentation fault
                  while processing function (unknown or file scope) file (unknown) line 0
 
This is caused by a defect in the TI C/C++ Parser.
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".
 
We need to see this ENTIRE error message and a complete, reproducible
test case including ALL of the command-line options.
Include the .pp file created by option --preproc_with_comment
 
gmake: *** [A_SourceFiles/StateMachine_Bridge.obj] Error 1

I've attached the .pp for the above file.StateMachine_Bridge.zip