Other Parts Discussed in Thread: C2000WARE
Tool/software: TI C/C++ Compiler
Hi,
When attempting to compile the `flashapi_ex2_sci_kernel` example project under `Resource Explorer -> Software -> C2000Ware - 3.01.00.00 -> English -> Examples -> F28004x -> flashapi_ex2_sciKernel`, the executable `ac2000` segfaults during the build process for all configurations (BANK0_LFDU, BANK0_LFDU_ROM, BANK0_NO_LFDU, BANK1_LFDU, BANK1_LFDU_ROM, BANK1_NO_LFDU, CPU1_RAM). Here is the build output:
**** Build of configuration BANK0_LDFU for project flashapi_ex2_sci_kernel ****
/home/james/ti/ccs1000/ccs/utils/bin/gmake -k -j 16 all -O
Building file: "../device/f28004x_codestartbranch.asm"
Invoking: C2000 Compiler
"/home/james/ti/ccs1000/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 -Ooff --include_path="/home/james/code/pumpkin/c2000/flashapi_ex2_sci_kernel" --include_path="/home/james/code/pumpkin/c2000/flashapi_ex2_sci_kernel/device" --include_path="/home/james/ti/C2000Ware_3_01_00_00_Software/driverlib/f28004x/driverlib" --include_path="/home/james/ti/C2000Ware_3_01_00_00_Software/libraries/flash_api/f28004x/include/FlashAPI" --include_path="/home/james/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --define=CPU1 --define=_FLASH --define=BANK0 --define=LIVE_UPDATE --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_with_comment --obj_directory="device" "../device/f28004x_codestartbranch.asm"
Finished building: "../device/f28004x_codestartbranch.asm"
Building file: "../flashapi_ex2_ldfu.c"
Invoking: C2000 Compiler
"/home/james/ti/ccs1000/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 -Ooff --include_path="/home/james/code/pumpkin/c2000/flashapi_ex2_sci_kernel" --include_path="/home/james/code/pumpkin/c2000/flashapi_ex2_sci_kernel/device" --include_path="/home/james/ti/C2000Ware_3_01_00_00_Software/driverlib/f28004x/driverlib" --include_path="/home/james/ti/C2000Ware_3_01_00_00_Software/libraries/flash_api/f28004x/include/FlashAPI" --include_path="/home/james/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --define=CPU1 --define=_FLASH --define=BANK0 --define=LIVE_UPDATE --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_with_comment "../flashapi_ex2_ldfu.c"
INTERNAL ERROR: /home/james/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/bin/ac2000 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
>> Compilation failure
subdir_rules.mk:7: recipe for target 'flashapi_ex2_ldfu.obj' failed
gmake: *** [flashapi_ex2_ldfu.obj] Error 1
Building file: "../device/device.c"
Invoking: C2000 Compiler
"/home/james/ti/ccs1000/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 -Ooff --include_path="/home/james/code/pumpkin/c2000/flashapi_ex2_sci_kernel" --include_path="/home/james/code/pumpkin/c2000/flashapi_ex2_sci_kernel/device" --include_path="/home/james/ti/C2000Ware_3_01_00_00_Software/driverlib/f28004x/driverlib" --include_path="/home/james/ti/C2000Ware_3_01_00_00_Software/libraries/flash_api/f28004x/include/FlashAPI" --include_path="/home/james/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --define=CPU1 --define=_FLASH --define=BANK0 --define=LIVE_UPDATE --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_with_comment --obj_directory="device" "../device/device.c"
Finished building: "../device/device.c"
Building file: "../flashapi_ex2_sci_kernel.c"
Invoking: C2000 Compiler
"/home/james/ti/ccs1000/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 -Ooff --include_path="/home/james/code/pumpkin/c2000/flashapi_ex2_sci_kernel" --include_path="/home/james/code/pumpkin/c2000/flashapi_ex2_sci_kernel/device" --include_path="/home/james/ti/C2000Ware_3_01_00_00_Software/driverlib/f28004x/driverlib" --include_path="/home/james/ti/C2000Ware_3_01_00_00_Software/libraries/flash_api/f28004x/include/FlashAPI" --include_path="/home/james/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --define=CPU1 --define=_FLASH --define=BANK0 --define=LIVE_UPDATE --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_with_comment "../flashapi_ex2_sci_kernel.c"
Finished building: "../flashapi_ex2_sci_kernel.c"
Building file: "../flashapi_ex2_sci_get_function.c"
Invoking: C2000 Compiler
"/home/james/ti/ccs1000/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 -Ooff --include_path="/home/james/code/pumpkin/c2000/flashapi_ex2_sci_kernel" --include_path="/home/james/code/pumpkin/c2000/flashapi_ex2_sci_kernel/device" --include_path="/home/james/ti/C2000Ware_3_01_00_00_Software/driverlib/f28004x/driverlib" --include_path="/home/james/ti/C2000Ware_3_01_00_00_Software/libraries/flash_api/f28004x/include/FlashAPI" --include_path="/home/james/ti/ccs1000/ccs/tools/compiler/ti-cgt-c2000_20.2.0.LTS/include" --define=CPU1 --define=_FLASH --define=BANK0 --define=LIVE_UPDATE --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_with_comment "../flashapi_ex2_sci_get_function.c"
Finished building: "../flashapi_ex2_sci_get_function.c"
gmake: Target 'all' not remade because of errors.
I tried adding the `--preproc_with_comment` flag to the compile process, however, no `.pp` file is generated to include with this issue...
I am using:
Code Composer Studio
Version: 10.0.0.00010
C2000 Compiler 20.2.0.LTS
This issue is reproducible on the `flashapi_ex3_live_firmware_update` example as well... The issue appears on my Arch Linux development machine as well as my Windows 10 machine.
Thanks,
- James