TI论坛
直播中

刘锦

7年用户 194经验值
私信 关注
[问答]

请问TMS320C5515-EVM开发套件编译CCS5工程文件出错是什么原因?

工程师您好,我是使用TMS320C5515-EVM开发套件的同学。在我将DSPLIB中的例子程序(FIR)导入CCS5过程中,出现了一些问题(主要是汇编文件编译出错,没有生成.out文件)。虽经多方查找信息,还是没有解决,故希望工程师能够来看一下并期待回复,非常感谢!我的邮箱:an369kang@126.com
下面是编译的信息:

**** Build of configuration Debug for project fir ****
C:ticcsv5utilsbingmake -k all
'Building file: C:/Program Files/Texas Instruments/ccsv4/emulation/boards/evm5515_v1/tests/FIR/FIR_T.C'
'Invoking: C5500 Compiler'
"C:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" --memory_model=large -g --include_path="C:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="C:/Program Files/Texas Instruments/ccsv4/emulation/boards/evm5515_v1/include" --embedded_cpp --static_template_instantiation --define="_DEBUG" --quiet --display_error_number --diag_warning=225 --ptrdiff_size=32 --asm_source=algebraic --obj_directory="C:/Program Files/Texas Instruments/ccsv4/emulation/boards/evm5515_v1/tests/FIR/ccsv5/Debug" --preproc_with_compile --preproc_dependency="FIR_T.pp" "C:/Program Files/Texas Instruments/ccsv4/emulation/boards/evm5515_v1/tests/FIR/FIR_T.C"
Command-line error #590: instantiation mode option can be used only when compiling C++
1 fatal error detected in this compilation.
Compilation terminated.
>> Compilation failure
gmake: *** [FIR_T.obj] Error 1
'Building file: C:/Program Files/Texas Instruments/ccsv4/emulation/boards/evm5515_v1/tests/FIR/TEST.C'
'Invoking: C5500 Compiler'
"C:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" --memory_model=large -g --include_path="C:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" --include_path="C:/Program Files/Texas Instruments/ccsv4/emulation/boards/evm5515_v1/include" --define="_DEBUG" --quiet --display_error_number --ptrdiff_size=32 --asm_source=algebraic --obj_directory="C:/Program Files/Texas Instruments/ccsv4/emulation/boards/evm5515_v1/tests/FIR/ccsv5/Debug" --preproc_with_compile --preproc_dependency="TEST.pp" "C:/Program Files/Texas Instruments/ccsv4/emulation/boards/evm5515_v1/tests/FIR/TEST.C"
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 12:
[E0004]
Substitution symbol operand expected
.asg DPH, MDP
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 100:
[E0000]
parse error
AADD #-11, SP
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 134:
[E0000]
parse error
MOV T1, *SP(#5) ; |48|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 135:
[E0000]
parse error
MOV T0, *SP(#4) ; |48|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 136:
[E0000]
parse error
MOV XAR1, dbl(*SP(#2))
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 137:
[E0000]
parse error
MOV XAR0, dbl(*SP(#0))
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 139:
[E0000]
parse error
MOV #-1, *SP(#7) ; |50|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 141:
[E0000]
parse error
MOV #0, *SP(#8) ; |51|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 143:
[E0000]
parse error
MOV #0, *SP(#9) ; |52|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 145:
[E0000]
parse error
MOV #0, *SP(#6) ; |54|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 147:
[E0000]
parse error
MOV *SP(#6), AR2 ; |54|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 148:
[E0000]
parse error
MOV *SP(#4), AR1 ; |54|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 150:
[E0000]
parse error
CMP AR2 >= AR1, TC1 ; |54|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 151:
[E0003]
Only labels and comments may begin in the first column. Make sure
that the label name is not a reserved keyword.
|| NOP ; avoids Silicon Exception CPU_24
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 151:
[E0000]
parse error
|| NOP ; avoids Silicon Exception CPU_24
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 153:
[E0000]
parse error
BCC $C$L4,TC1 ; |54|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 158:
[E0000]
parse error
MOV AR2, T0
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 159:
[E0000]
parse error
MOV dbl(*SP(#0)), XAR3
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 160:
[E0000]
parse error
MOV *AR3(T0), AR1 ; |56|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 161:
[E0000]
parse error
MOV dbl(*SP(#2)), XAR3
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 162:
[E0000]
parse error
SUB AR1, *AR3(T0), AR1 ; |56|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 163:
[E0000]
parse error
ABS AR1, AR1 ; |56|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 164:
[E0000]
parse error
MOV AR1, *SP(#8) ; |56|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 165:
[E0000]
parse error
MOV *SP(#5), AR2 ; |56|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 167:
[E0000]
parse error
CMP AR1 <= AR2, TC1 ; |56|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 168:
[E0003]
Only labels and comments may begin in the first column. Make sure
that the label name is not a reserved keyword.
|| NOP ; avoids Silicon Exception CPU_24
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 168:
[E0000]
parse error
|| NOP ; avoids Silicon Exception CPU_24
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 170:
[E0000]
parse error
BCC $C$L2,TC1 ; |56|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 174:
[E0000]
parse error
MOV *SP(#6), AR1 ; |58|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 175:
[E0000]
parse error
MOV AR1, *SP(#7) ; |58|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 177:
[E0000]
parse error
MOV *SP(#8), AR1 ; |59|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 178:
[E0000]
parse error
MOV AR1, *SP(#9) ; |59|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 180:
[E0000]
parse error
B $C$L4 ; |60|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 185:
[E0000]
parse error
MOV *SP(#9), AR1 ; |63|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 186:
[E0000]
parse error
MOV *SP(#8), AR2 ; |63|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 188:
[E0000]
parse error
CMP AR2 <= AR1, TC1 ; |63|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 189:
[E0003]
Only labels and comments may begin in the first column. Make sure
that the label name is not a reserved keyword.
|| NOP ; avoids Silicon Exception CPU_24
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 189:
[E0000]
parse error
|| NOP ; avoids Silicon Exception CPU_24
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 191:
[E0000]
parse error
BCC $C$L3,TC1 ; |63|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 196:
[E0000]
parse error
MOV AR2, AR1
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 197:
[E0000]
parse error
MOV AR1, *SP(#9) ; |63|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 202:
[E0000]
parse error
ADD #1, *SP(#6) ; |54|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 204:
[E0000]
parse error
MOV *SP(#4), AR1 ; |54|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 205:
[E0000]
parse error
MOV *SP(#6), AR2 ; |54|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 207:
[E0000]
parse error
CMP AR2 < AR1, TC1 ; |54|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 208:
[E0003]
Only labels and comments may begin in the first column. Make sure
that the label name is not a reserved keyword.
|| NOP ; avoids Silicon Exception CPU_24
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 208:
[E0000]
parse error
|| NOP ; avoids Silicon Exception CPU_24
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 210:
[E0000]
parse error
BCC $C$L1,TC1 ; |54|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 215:
[E0000]
parse error
MOV *SP(#7), T0 ; |66|
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 217:
[E0000]
parse error
AADD #11, SP
^
"C:UsersADMINI~1AppDataLocalTemp444810", ERROR! at line 222:
[E0000]
parse error
RET
^
51 Assembly Errors, No Assembly Warnings
Errors in Source - Assembler Aborted
>> Compilation failure
gmake: *** [TEST.obj] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****

回帖(3)

余少虹

2018-7-31 06:13:29
你好,
把--asm_source=algebraic 编译选项去掉试试.
CCS->Project->Show Build Settings->Runtime Model Options->Select assembly source language, 选择algebraic
举报

余少虹

2018-7-31 06:24:13
引用: vuywsdfwf 发表于 2018-7-31 06:13
你好,
把--asm_source=algebraic 编译选项去掉试试.
CCS->Project->Show Build Settings->Runtime Model Options->Select assembly source language, 选择algebraic

不好意思, 写错了
应该是不要选algebraic
举报

刘锦

2018-7-31 06:31:32
引用: vuywsdfwf 发表于 2018-7-31 06:24
不好意思, 写错了
应该是不要选algebraic

后来我参考dsplib reference 进行操作就解决了问题,谢谢工程师!
举报

更多回帖

发帖
×
20
完善资料,
赚取积分