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/TMS320C6416T: 7.4.24 compiler error

Part Number: TMS320C6416T

Tool/software: TI C/C++ Compiler

I was asked here: https://e2e.ti.com/support/processors/f/791/t/890751 for compiler log, but I missed the answer and the thread was locked. Sorry.

The similar problem I found trying to compile dsk_app in CCS5.5. I have modified dsk_app from Spectrum Digital C6416 DSK which compiles and working fine. I've attached this CCS project to the post.

It compiles fine with 7.4.23 compiler:

**** Build of configuration Debug for project dsk_app_v5 ****

"C:\\Programy\\TI\\ccsv5\\utils\\bin\\gmake" -k all 
'Building file: ../dsk_app.tcf'
'Invoking: TConf'
"C:/Programy/TI/bios_5_42_02_10/xdctools/tconf" -b -Dconfig.importPath="C:/Programy/TI/bios_5_42_02_10/packages;" "../dsk_app.tcf"
'Finished building: ../dsk_app.tcf'
' '
'Building file: ../aic23.c'
'Invoking: C6000 Compiler'
"C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.23/bin/cl6x" -mv6400 --abi=coffabi -g --include_path="C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.23/include" --include_path="C:/Users/marcinkk/Documents/workspace/ti_workspace/dsk_app_v5/Debug" --include_path="C:/Programy/TI/bios_5_42_02_10/packages/ti/bios/include" --include_path="C:/Programy/TI/bios_5_42_02_10/packages/ti/rtdx/include/c6000" --include_path="C:/Programy/TI/C6xCSL/include" --include_path="C:/Programy/TI/DSK6416/c6000/dsk6416/include" --define=c6416 --define=CHIP_6416 --display_error_number --diag_warning=225 --diag_wrap=off --mem_model:const=far --mem_model:data=far --preproc_with_compile --preproc_dependency="aic23.pp"  "../aic23.c"
'Finished building: ../aic23.c'
' '
'Building file: ../dsk_app.c'
'Invoking: C6000 Compiler'
"C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.23/bin/cl6x" -mv6400 --abi=coffabi -g --include_path="C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.23/include" --include_path="C:/Users/marcinkk/Documents/workspace/ti_workspace/dsk_app_v5/Debug" --include_path="C:/Programy/TI/bios_5_42_02_10/packages/ti/bios/include" --include_path="C:/Programy/TI/bios_5_42_02_10/packages/ti/rtdx/include/c6000" --include_path="C:/Programy/TI/C6xCSL/include" --include_path="C:/Programy/TI/DSK6416/c6000/dsk6416/include" --define=c6416 --define=CHIP_6416 --display_error_number --diag_warning=225 --diag_wrap=off --mem_model:const=far --mem_model:data=far --preproc_with_compile --preproc_dependency="dsk_app.pp"  "../dsk_app.c"
'Finished building: ../dsk_app.c'
' '
'Building file: dsk_appcfg.s??'
'Invoking: C6000 Compiler'
"C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.23/bin/cl6x" -mv6400 --abi=coffabi -g --include_path="C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.23/include" --include_path="C:/Users/marcinkk/Documents/workspace/ti_workspace/dsk_app_v5/Debug" --include_path="C:/Programy/TI/bios_5_42_02_10/packages/ti/bios/include" --include_path="C:/Programy/TI/bios_5_42_02_10/packages/ti/rtdx/include/c6000" --include_path="C:/Programy/TI/C6xCSL/include" --include_path="C:/Programy/TI/DSK6416/c6000/dsk6416/include" --define=c6416 --define=CHIP_6416 --display_error_number --diag_warning=225 --diag_wrap=off --mem_model:const=far --mem_model:data=far --preproc_with_compile --preproc_dependency="dsk_appcfg.pp"  "dsk_appcfg.s??"
'Finished building: dsk_appcfg.s??'
' '
'Building file: dsk_appcfg_c.c'
'Invoking: C6000 Compiler'
"C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.23/bin/cl6x" -mv6400 --abi=coffabi -g --include_path="C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.23/include" --include_path="C:/Users/marcinkk/Documents/workspace/ti_workspace/dsk_app_v5/Debug" --include_path="C:/Programy/TI/bios_5_42_02_10/packages/ti/bios/include" --include_path="C:/Programy/TI/bios_5_42_02_10/packages/ti/rtdx/include/c6000" --include_path="C:/Programy/TI/C6xCSL/include" --include_path="C:/Programy/TI/DSK6416/c6000/dsk6416/include" --define=c6416 --define=CHIP_6416 --display_error_number --diag_warning=225 --diag_wrap=off --mem_model:const=far --mem_model:data=far --preproc_with_compile --preproc_dependency="dsk_appcfg_c.pp"  "dsk_appcfg_c.c"
'Finished building: dsk_appcfg_c.c'
' '
'Building target: dsk_app_v5.out'
'Invoking: C6000 Linker'
"C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.23/bin/cl6x" -mv6400 --abi=coffabi -g --define=c6416 --define=CHIP_6416 --display_error_number --diag_warning=225 --diag_wrap=off --mem_model:const=far --mem_model:data=far -z --stack_size=0x800 -m"dsk_app_v5.map" --heap_size=0x800 -i"C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.23/lib" -i"C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.23/include" -i"C:/Programy/TI/bios_5_42_02_10/packages/ti/rtdx/lib/c6000" -i"C:/Programy/TI/bios_5_42_02_10/packages/ti/bios/lib" -i"C:/Programy/TI/C6xCSL/lib_3x" -i"C:/Programy/TI/DSK6416/c6000/dsk6416/lib" --reread_libs --warn_sections --display_error_number --diag_suppress=16002 --diag_wrap=off --xml_link_info="dsk_app_v5_linkInfo.xml" --rom_model -o "dsk_app_v5.out" -l"./dsk_appcfg.cmd"  "./dsk_appcfg_c.obj" "./dsk_appcfg.obj" "./dsk_app.obj" "./aic23.obj" -l"csl6416.lib" -l"dsk6416bsl.lib" -l"rtdx64xx.lib" -l"rts6400.lib" 
<Linking>
'Finished building target: dsk_app_v5.out'
' '

**** Build Finished ****

But fails with 7.4.24 one:

**** Build of configuration Debug for project dsk_app_v5 ****

"C:\\Programy\\TI\\ccsv5\\utils\\bin\\gmake" -k all 
'Building file: ../dsk_app.tcf'
'Invoking: TConf'
"C:/Programy/TI/bios_5_42_02_10/xdctools/tconf" -b -Dconfig.importPath="C:/Programy/TI/bios_5_42_02_10/packages;" "../dsk_app.tcf"
'Finished building: ../dsk_app.tcf'
' '
'Building file: ../aic23.c'
'Invoking: C6000 Compiler'
"C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.24/bin/cl6x" -mv6400 --abi=coffabi -g --include_path="C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.24/include" --include_path="C:/Users/marcinkk/Documents/workspace/ti_workspace/dsk_app_v5/Debug" --include_path="C:/Programy/TI/bios_5_42_02_10/packages/ti/bios/include" --include_path="C:/Programy/TI/bios_5_42_02_10/packages/ti/rtdx/include/c6000" --include_path="C:/Programy/TI/C6xCSL/include" --include_path="C:/Programy/TI/DSK6416/c6000/dsk6416/include" --define=c6416 --define=CHIP_6416 --display_error_number --diag_warning=225 --diag_wrap=off --mem_model:const=far --mem_model:data=far --preproc_with_compile --preproc_dependency="aic23.pp"  "../aic23.c"
'Finished building: ../aic23.c'
' '
'Building file: ../dsk_app.c'
'Invoking: C6000 Compiler'
"C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.24/bin/cl6x" -mv6400 --abi=coffabi -g --include_path="C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.24/include" --include_path="C:/Users/marcinkk/Documents/workspace/ti_workspace/dsk_app_v5/Debug" --include_path="C:/Programy/TI/bios_5_42_02_10/packages/ti/bios/include" --include_path="C:/Programy/TI/bios_5_42_02_10/packages/ti/rtdx/include/c6000" --include_path="C:/Programy/TI/C6xCSL/include" --include_path="C:/Programy/TI/DSK6416/c6000/dsk6416/include" --define=c6416 --define=CHIP_6416 --display_error_number --diag_warning=225 --diag_wrap=off --mem_model:const=far --mem_model:data=far --preproc_with_compile --preproc_dependency="dsk_app.pp"  "../dsk_app.c"
'Finished building: ../dsk_app.c'
' '
'Building file: dsk_appcfg.s??'
'Invoking: C6000 Compiler'
"C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.24/bin/cl6x" -mv6400 --abi=coffabi -g --include_path="C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.24/include" --include_path="C:/Users/marcinkk/Documents/workspace/ti_workspace/dsk_app_v5/Debug" --include_path="C:/Programy/TI/bios_5_42_02_10/packages/ti/bios/include" --include_path="C:/Programy/TI/bios_5_42_02_10/packages/ti/rtdx/include/c6000" --include_path="C:/Programy/TI/C6xCSL/include" --include_path="C:/Programy/TI/DSK6416/c6000/dsk6416/include" --define=c6416 --define=CHIP_6416 --display_error_number --diag_warning=225 --diag_wrap=off --mem_model:const=far --mem_model:data=far --preproc_with_compile --preproc_dependency="dsk_appcfg.pp"  "dsk_appcfg.s??"
"dsk_appcfg.s62", ERROR!   at line 562: [E0003] Invalid constant specification
		PRD_Obj 1, PRD_blinkLED, 0, _period, _mode, _function, _arg0, _arg1, _Order, _filter, _maxformat, _sumformat, _avgformat, _unittype

"dsk_appcfg.s62", REMARK   at line 562: [R0001] After symbol substitution the line became:
		PRD_Obj 1, PRD_blinkLED, 0, 01f4H, continuous, _blinkLED, 00H, 00H, 01H, 00H, %g ticks, %g ticks, %.2f ticks, _unittype

"dsk_appcfg.s62", ERROR!   at line 580: [E0003] Invalid constant specification
		PRD_Obj 1, PRD_load, 0, _period, _mode, _function, _arg0, _arg1, _Order, _filter, _maxformat, _sumformat, _avgformat, _unittype

"dsk_appcfg.s62", REMARK   at line 580: [R0001] After symbol substitution the line became:
		PRD_Obj 1, PRD_load, 0, 0aH, continuous, _load, 00H, 00H, 02H, 00H, %g ticks, %g ticks, %.2f ticks, _unittype

"dsk_appcfg.s62", ERROR!   at line 923: [E0003] Invalid constant specification
		SWI_Obj 1, KNL_swi, 0, _function, _pri, _mailbox, _arg0, _arg1, _dorta, _Order, _filter, _maxformat, _sumformat, _avgformat, _filtmaxmult, _filtsummult, _unittype

"dsk_appcfg.s62", REMARK   at line 923: [R0001] After symbol substitution the line became:
		SWI_Obj 1, KNL_swi, 0, _KNL_run, 00H, 00H, 00H, 00H, 01H, 00H, 02H, %g inst, %g inst, %.2f inst, _filtmaxmult, _filtsummult, _unittype

"dsk_appcfg.s62", ERROR!   at line 944: [E0003] Invalid constant specification
		SWI_Obj 1, PRD_swi, 0, _function, _pri, _mailbox, _arg0, _arg1, _dorta, _Order, _filter, _maxformat, _sumformat, _avgformat, _filtmaxmult, _filtsummult, _unittype

"dsk_appcfg.s62", REMARK   at line 944: [R0001] After symbol substitution the line became:
		SWI_Obj 1, PRD_swi, 0, PRD_F_swi, 01H, 00H, 00H, 00H, 01H, 00H, 02H, %g inst, %g inst, %.2f inst, _filtmaxmult, _filtsummult, _unittype

"dsk_appcfg.s62", ERROR!   at line 965: [E0003] Invalid constant specification
		SWI_Obj 1, processBufferSwi, 0, _function, _pri, _mailbox, _arg0, _arg1, _dorta, _Order, _filter, _maxformat, _sumformat, _avgformat, _filtmaxmult, _filtsummult, _unittype

"dsk_appcfg.s62", REMARK   at line 965: [R0001] After symbol substitution the line became:
		SWI_Obj 1, processBufferSwi, 0, _processBuffer, 02H, 00H, 00H, 00H, 01H, 01H, 02H, %g inst, %g inst, %.2f inst, _filtmaxmult, _filtsummult, _unittype

"dsk_appcfg.s62", ERROR!   at line 998: [E0003] Invalid constant specification
		TSK_Obj 1, TSK_idle, 0, _iFXN, _iARG0, _iARG1, _iARG2, _iARG3, _iARG4, _iARG5, _iARG6, _iARG7, _iAUTOSTK, _iMANSTK, _iSTKSZ, _iSTKSEG, _iPRI, _iENV, _iEXITFLAG, _iUSETSKNAME, _iSTATREG, _Order, _filter, _maxformat, _sumformat, _avgformat, _filtmaxmult, _filtsummult, _unittype

"dsk_appcfg.s62", REMARK   at line 998: [R0001] After symbol substitution the line became:
		TSK_Obj 1, TSK_idle, 0, IDL_F_loop, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 00H, 01H, null, 0400H, IRAM, 00H, 00H, 01H, 00H, 00H, 00H, 02H, %g inst, %g inst, %.2f inst, _filtmaxmult, _filtsummult, _unittype

"dsk_appcfg.s62", ERROR!   at line 1067: [E0003] Invalid constant specification
		STS_Obj 1, IDL_busyObj, 0, _prev, _filter, _maxformat, _sumformat, _avgformat, _op, _uType, _iA, _iB, _iC, _prevlow

"dsk_appcfg.s62", REMARK   at line 1067: [R0001] After symbol substitution the line became:
		STS_Obj 1, IDL_busyObj, 0, 00H, 01H, %g, %g, %.2f, _op, _uType, _iA, _iB, _iC, _prevlow


7 Assembly Errors, No Assembly Warnings
Errors in Source - Assembler Aborted

>> Compilation failure
gmake: *** [dsk_appcfg.obj] Error 1
'Building file: dsk_appcfg_c.c'
'Invoking: C6000 Compiler'
"C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.24/bin/cl6x" -mv6400 --abi=coffabi -g --include_path="C:/Programy/TI/ccsv5/tools/compiler/c6000_7.4.24/include" --include_path="C:/Users/marcinkk/Documents/workspace/ti_workspace/dsk_app_v5/Debug" --include_path="C:/Programy/TI/bios_5_42_02_10/packages/ti/bios/include" --include_path="C:/Programy/TI/bios_5_42_02_10/packages/ti/rtdx/include/c6000" --include_path="C:/Programy/TI/C6xCSL/include" --include_path="C:/Programy/TI/DSK6416/c6000/dsk6416/include" --define=c6416 --define=CHIP_6416 --display_error_number --diag_warning=225 --diag_wrap=off --mem_model:const=far --mem_model:data=far --preproc_with_compile --preproc_dependency="dsk_appcfg_c.pp"  "dsk_appcfg_c.c"
'Finished building: dsk_appcfg_c.c'
' '
gmake: Target `all' not remade because of errors.

**** Build Finished ****

Regards,

Marcin

dsk_app_v5.zip