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.

CCS/LAUNCHXL-F280049C: Segmentation fault in CCSv10, Compiled successfully in CCSv9

Part Number: LAUNCHXL-F280049C

Tool/software: Code Composer Studio

Hi,

I am experiencing a segmentation fault in CCSv10. After initial diagnose, the problem is found to be with the function pointer. The same code compiled without errors in CCSv9. 

The function pointer causing the problem is:

(*SchedulerTasks[Ctr].TaskAddress)();

CCS Version: 10.0.0.00010

Below is the error message:

**** Build of configuration Debug for project XYZ ****

"C:\\ti\\ccs1000\\ccs\\utils\\bin\\gmake" -k -j 4 all -O

Building file: "../src/Scheduler.c"
Invoking: C2000 Compiler
"C:/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu0 --include_path="XYZ" --include_path="XYZ" --include_path="XYZ" --include_path="XYZ" --include_path="XYZ" --advice:performance=all -g --c99 --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="src/Scheduler.d_raw" --obj_directory="src" "../src/Scheduler.c"

>> Compilation failure
src/subdir_rules.mk:16: recipe for target 'src/Scheduler.obj' failed

INTERNAL ERROR: C:\ti\ccs1000\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: *** [src/Scheduler.obj] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

Thank you