Using CCS12, I have a project configuration that works, compiles and links creating an image, with C2000 Hex Utility disabled. If I enable the C2000 Hex Utility the same project configuration fails during the link stage. It seems to me the C2000 Hex Utility is a post build step. Does not seem correct to be able to corrupt the compile/link stage of the build process. Below is an excerpt from the "good" build link stage and an excerpt from the corrupted link stage. I notice the <Linking> statement occurs twice in the corrupted link stage. Not sure if that is significate. NOTE: This project was originally converted from a CCS3.3
I have a similar issue occurring for a C6000 project. In this case the Debug configuration works with Hex Utility but the Release configuration does not. Hopefully, any solution for the C2000 will also work with the C6000
Successful without C2000 Hex Utility enabled.
Building file: "P:/Acorn/audio/2809_mlv/ti/DSP280x/v141/DSP280x_headers/source/dsp280x_globalvariabledefs.c"
Invoking: C2000 Compiler
"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_6.4.12/bin/cl2000" -v28 -ml -mt -O2 --include_path="P:/Acorn/audio/2809MlvPrj" --include_path="P:/Acorn/tools/TILegacyFiles/include" --include_path="C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_6.4.12/include" --include_path="P:/Acorn/audio/2809_mlv/include" --include_path="P:/Acorn/audio/2809_mlv/ti/DSP280x/v141/DSP280x_headers/include" --advice:performance=all -g --define=_INLINE --define=_DEBUG --define=LARGE_MODEL --verbose_diagnostics --diag_wrap=off --display_error_number --issue_remarks --temp_directory="P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug" --list_directory="P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug" --asm_directory="P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug" --preproc_with_compile --preproc_dependency="P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/ti/DSP280x/v141/DSP280x_header/source/dsp280x_globalvariabledefs.d_raw" --obj_directory="P:/Acorn/audio/2809MlvPrj/../2809_mlv/../../GeneratedCode/Audio/2809Mlv/Debug/ti/DSP280x/v141/DSP280x_header/source" "P:/Acorn/audio/2809_mlv/ti/DSP280x/v141/DSP280x_headers/source/dsp280x_globalvariabledefs.c"
Finished building: "P:/Acorn/audio/2809_mlv/ti/DSP280x/v141/DSP280x_headers/source/dsp280x_globalvariabledefs.c"
Building target: "P:/Acorn/audio/2809MlvPrj/../2809_mlv/../../GeneratedCode/Audio/2809Mlv/Debug/2809_mlv.out"
Invoking: C2000 Linker
"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_6.4.12/bin/cl2000" -v28 -ml -mt -O2 --advice:performance=all -g --define=_INLINE --define=_DEBUG --define=LARGE_MODEL --verbose_diagnostics --diag_wrap=off --display_error_number --issue_remarks --temp_directory="P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug" --list_directory="P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug" --asm_directory="P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug" -z -m"P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/2809_mlv.map" --stack_size=0x300 --warn_sections -i"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_6.4.12/lib" -i"P:/Acorn/audio/2809MlvPrj" -i"P:/Acorn/audio/2809_mlv" -i"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_6.4.12/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="2809MlvPrj_linkInfo.xml" --entry_point=code_start --rom_model -o "P:/Acorn/audio/2809MlvPrj/../2809_mlv/../../GeneratedCode/Audio/2809Mlv/Debug/2809_mlv.out" "P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/source/epwm.obj" "P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/source/gpio.obj" "P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/source/mlv.obj" "P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/source/mlv_main.obj" "P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/source/mlv_sci.obj" "P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/source/sysctrl.obj" "P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/ti/DSP280x/v141/DSP280x_common/source/dsp280x_codestartbranch.obj" "P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/ti/DSP280x/v141/DSP280x_common/source/dsp280x_usdelay.obj" "P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/ti/DSP280x/v141/DSP280x_header/source/dsp280x_globalvariabledefs.obj" "P:/Acorn/audio/2809_mlv/cmd/2809_ram_lnk.cmd" "P:/Acorn/audio/2809_mlv/cmd/dsp280x_headers_nonbios.cmd" "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib" "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_6.4.12/lib/rts2800_ml_eh.lib"
<Linking>
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Erase.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_EraseSector.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Globals.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Init.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Internals.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Prog.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Prog_Pulse.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Utils.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Verify.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_ClearSector.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_CompactSector.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Delay.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_DisInt.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Erase_Pulse.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_ClearLoop.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Compact_Pulse.obj>": compatibility cannot be determined
warning #10063-D: entry-point symbol other than "_c_int00" specified: "code_start"
Finished building target: "P:/Acorn/audio/2809MlvPrj/../2809_mlv/../../GeneratedCode/Audio/2809Mlv/Debug/2809_mlv.out"
Failure with C2000 Hex Utility enabled.
Building file: "P:/Acorn/audio/2809_mlv/ti/DSP280x/v141/DSP280x_headers/source/dsp280x_globalvariabledefs.c"
Invoking: C2000 Compiler
"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_6.4.12/bin/cl2000" -v28 -ml -mt -O2 --include_path="P:/Acorn/audio/2809MlvPrj" --include_path="P:/Acorn/tools/TILegacyFiles/include" --include_path="C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_6.4.12/include" --include_path="P:/Acorn/audio/2809_mlv/include" --include_path="P:/Acorn/audio/2809_mlv/ti/DSP280x/v141/DSP280x_headers/include" --advice:performance=all -g --define=_INLINE --define=_DEBUG --define=LARGE_MODEL --verbose_diagnostics --diag_wrap=off --display_error_number --issue_remarks --temp_directory="P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug" --list_directory="P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug" --asm_directory="P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug" --preproc_with_compile --preproc_dependency="P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/ti/DSP280x/v141/DSP280x_header/source/dsp280x_globalvariabledefs.d_raw" --obj_directory="P:/Acorn/audio/2809MlvPrj/../2809_mlv/../../GeneratedCode/Audio/2809Mlv/Debug/ti/DSP280x/v141/DSP280x_header/source" "P:/Acorn/audio/2809_mlv/ti/DSP280x/v141/DSP280x_headers/source/dsp280x_globalvariabledefs.c"
Finished building: "P:/Acorn/audio/2809_mlv/ti/DSP280x/v141/DSP280x_headers/source/dsp280x_globalvariabledefs.c"
Building target: "P:/Acorn/audio/2809MlvPrj/../2809_mlv/../../GeneratedCode/Audio/2809Mlv/Debug/2809_mlv.out"
Building file: "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib"
Invoking: C2000 Linker
"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_6.4.12/bin/cl2000" -v28 -ml -mt -O2 --advice:performance=all -g --define=_INLINE --define=_DEBUG --define=LARGE_MODEL --verbose_diagnostics --diag_wrap=off --display_error_number --issue_remarks --temp_directory="P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug" --list_directory="P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug" --asm_directory="P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug" -z -m"P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/2809_mlv.map" --stack_size=0x300 --warn_sections -i"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_6.4.12/lib" -i"P:/Acorn/audio/2809MlvPrj" -i"P:/Acorn/audio/2809_mlv" -i"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_6.4.12/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="2809MlvPrj_linkInfo.xml" --entry_point=code_start --rom_model -o "P:/Acorn/audio/2809MlvPrj/../2809_mlv/../../GeneratedCode/Audio/2809Mlv/Debug/2809_mlv.out" "P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/source/epwm.obj" "P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/source/gpio.obj" "P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/source/mlv.obj" "P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/source/mlv_main.obj" "P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/source/mlv_sci.obj" "P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/source/sysctrl.obj" "P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/ti/DSP280x/v141/DSP280x_common/source/dsp280x_codestartbranch.obj" "P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/ti/DSP280x/v141/DSP280x_common/source/dsp280x_usdelay.obj" "P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug/ti/DSP280x/v141/DSP280x_header/source/dsp280x_globalvariabledefs.obj" "P:/Acorn/audio/2809_mlv/cmd/2809_ram_lnk.cmd" "P:/Acorn/audio/2809_mlv/cmd/dsp280x_headers_nonbios.cmd" "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib" "C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_6.4.12/lib/rts2800_ml_eh.lib"
Invoking: C2000 Linker
"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_6.4.12/bin/cl2000" -v28 -ml -mt -O2 --advice:performance=all -g --define=_INLINE --define=_DEBUG --define=LARGE_MODEL --verbose_diagnostics --diag_wrap=off --display_error_number --issue_remarks --temp_directory="P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug" --list_directory="P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug" --asm_directory="P:/Acorn/GeneratedCode/Audio/2809Mlv/Debug" -z -m"P:/Acorn/audio/2809_mlv/lib/Debug/2809_mlv.map" --stack_size=0x300 --warn_sections -i"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_6.4.12/lib" -i"P:/Acorn/audio/2809MlvPrj" -i"P:/Acorn/audio/2809_mlv" -i"C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_6.4.12/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="2809MlvPrj_linkInfo.xml" --entry_point=code_start --rom_model -o "flash2809_api_v100.out" "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib" "../2809_ram_lnk.cmd" "../dsp280x_headers_nonbios.cmd" "../flash2809_api_v100.lib" "../rts2800_ml_eh.lib"
<Linking>
<Linking>
"C:\\Users\\u2970317\\AppData\\Local\\Temp\\107523", line 24: error #10008-D: cannot find file "../2809_ram_lnk.cmd"
"../2809_ram_lnk.cmd"
"C:\\Users\\u2970317\\AppData\\Local\\Temp\\107523", line 25: error #10008-D: cannot find file "../dsp280x_headers_nonbios.cmd"
"../dsp280x_headers_nonbios.cmd"
remark #10209-D: automatic RTS selection: linking in index library "libc.a"
"C:\\Users\\u2970317\\AppData\\Local\\Temp\\107523", line 26: error #10008-D: cannot find file "../flash2809_api_v100.lib"
>> Compilation failure
subdir_rules.mk:9: recipe for target 'flash2809_api_v100.out' failed
"../flash2809_api_v100.lib"
"C:\\Users\\u2970317\\AppData\\Local\\Temp\\107523", line 27: error #10008-D: cannot find file "../rts2800_ml_eh.lib"
"../rts2800_ml_eh.lib"
warning #10211-D: cannot resolve archive C:/ti/ccs1220/ccs/tools/compiler/ti-cgt-c2000_6.4.12/lib/libc.a to a compatible library, as no input files have been encountered; build attribute information from input files is needed to determine library compatibility
fatal error #10009: no input files
gmake[1]: *** [flash2809_api_v100.out] Error 1
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Erase.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_EraseSector.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Globals.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Init.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Internals.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Prog.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Prog_Pulse.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Utils.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Verify.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_ClearSector.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_CompactSector.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Delay.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_DisInt.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Erase_Pulse.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_ClearLoop.obj>": compatibility cannot be determined
warning #16002-D: build attribute vendor section TI missing in "P:/Acorn/audio/2809_mlv/lib/flash2809_api_v100.lib<Flash28_Compact_Pulse.obj>": compatibility cannot be determined
warning #10063-D: entry-point symbol other than "_c_int00" specified: "code_start"
Finished building target: "P:/Acorn/audio/2809MlvPrj/../2809_mlv/../../GeneratedCode/Audio/2809Mlv/Debug/2809_mlv.out"
makefile:153: recipe for target 'all' failed
gmake[1]: Target 'secondary-outputs' not remade because of errors.
gmake: *** [all] Error 2