TI中文支持网
TI专业的中文技术问题搜集分享网站

我用的ccs5.5 编译器,在主函数中添加#include "csl_intc.h"然后就出现错误

**** Build of configuration Debug for project Programming ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all'Building file: F:/DSP Software/Uart07/UserHSource/UART.c'
'Invoking: C5500 Compiler'
"C:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5517 –memory_model=large -O1 -g –include_path="C:/ti/c55_lp/c55_csl_3.06/inc" –include_path="F:/DSP Software/Uart07/UserHSource" –include_path="C:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" –define=c5517 –display_error_number –diag_warning=225 –ptrdiff_size=16 –preproc_with_compile –preproc_dependency="UART.pp" "F:/DSP Software/Uart07/UserHSource/UART.c"
>> WARNING: version specified in option -v5517 is unknown (ignored)
'Finished building: F:/DSP Software/Uart07/UserHSource/UART.c'
' '
'Building file: ../amain.c'
'Invoking: C5500 Compiler'
"C:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5517 –memory_model=large -O1 -g –include_path="C:/ti/c55_lp/c55_csl_3.06/inc" –include_path="F:/DSP Software/Uart07/UserHSource" –include_path="C:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" –define=c5517 –display_error_number –diag_warning=225 –ptrdiff_size=16 –preproc_with_compile –preproc_dependency="amain.pp" "../amain.c"
>> WARNING: version specified in option -v5517 is unknown (ignored)
'Finished building: ../amain.c'
' '
'Building file: C:/ti/c55_lp/c55_csl_3.06/src/csl_intc.c'
'Invoking: C5500 Compiler'
"C:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5517 –memory_model=large -O1 -g –include_path="C:/ti/c55_lp/c55_csl_3.06/inc" –include_path="F:/DSP Software/Uart07/UserHSource" –include_path="C:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" –define=c5517 –display_error_number –diag_warning=225 –ptrdiff_size=16 –preproc_with_compile –preproc_dependency="csl_intc.pp" "C:/ti/c55_lp/c55_csl_3.06/src/csl_intc.c"
>> WARNING: version specified in option -v5517 is unknown (ignored)
"C:\Users\admin\AppData\Local\Temp\0850410", ERROR! at line 1632:
[E9999]
Syntax Error
BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL

"C:\Users\admin\AppData\Local\Temp\0850410", ERROR! at line 1632:
[E9999]
Invalid instructionsyntax, Xmem or Ymem expected
BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL

"C:\Users\admin\AppData\Local\Temp\0850410", ERROR! at line 1632:
[E9999]
Invalid mnemonic specified
BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL

"C:\Users\admin\AppData\Local\Temp\0850410", ERROR! at line 1632:
[E9999]
Invalid mnemonic specified
BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL

"C:\Users\admin\AppData\Local\Temp\0850410", ERROR! at line 1691:
[E9999]
Syntax Error
BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL

"C:\Users\admin\AppData\Local\Temp\0850410", ERROR! at line 1691:
[E9999]
Invalid instructionsyntax, Xmem or Ymem expected
BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL

"C:\Users\admin\AppData\Local\Temp\0850410", ERROR! at line 1691:
[E9999]
Invalid mnemonic specified
BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL

"C:\Users\admin\AppData\Local\Temp\0850410", ERROR! at line 1691:
[E9999]
Invalid mnemonic specified
BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL

"C:\Users\admin\AppData\Local\Temp\0850410", ERROR! at line 1753:
[E9999]
Syntax Error
BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL

"C:\Users\admin\AppData\Local\Temp\0850410", ERROR! at line 1753:
[E9999]
Invalid instructionsyntax, Xmem or Ymem expected
BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL

"C:\Users\admin\AppData\Local\Temp\0850410", ERROR! at line 1753:
[E9999]
Invalid mnemonic specified
BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL

"C:\Users\admin\AppData\Local\Temp\0850410", ERROR! at line 1753:
[E9999]
Invalid mnemonic specified
BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL

"C:\Users\admin\AppData\Local\Temp\0850410", ERROR! at line 1760:
[E9999]
Syntax Error
BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL

"C:\Users\admin\AppData\Local\Temp\0850410", ERROR! at line 1760:
[E9999]
Invalid instructionsyntax, Xmem or Ymem expected
BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL

"C:\Users\admin\AppData\Local\Temp\0850410", ERROR! at line 1760:
[E9999]
Invalid mnemonic specified
BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL

"C:\Users\admin\AppData\Local\Temp\0850410", ERROR! at line 1760:
[E9999]
Invalid mnemonic specified
BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL

16 Assembly Errors, No Assembly Warnings

Errors in Source – Assembler Aborted

>> Compilation failure

>> Compilation failure
gmake: *** [csl_intc.obj] Error 1
gmake: Target `all' not remade because of errors.

这个是什么问题啊?我csl_intc.c文件也加载进来了!

Tony Tang:

按下图加编译选项:

Shine:

试试用-mg编译。https://e2e.ti.com/support/dsp/c5000/f/109/t/223770

 

user4117338:

回复 Shine:

只要添加了 csl_intc.c 文件 就会出现图01所示。  图01 见附件  还有我尝试了图02的方法 没有用!

Tony Tang:

回复 user4117338:

晕,一句没说全都不行啊。

把下面那个asm_source也设成跟我的图中一样的。

user4117338:

回复 Tony Tang:

您好 我已经和你说的设置的一样了,还有出现这样的问题 见附件图3,

Shine:

回复 user4117338:

图里这个Syntax Error BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL错误不是解决了嘛。

Tony Tang:

回复 user4117338:

jinming zhou您好 我已经和你说的设置的一��了,还有出现这样的问题 见附件图3,

这跟前面说的问题完全是两码事好吧。这是.text size大于你给他分配的DRAM1。具体问题要具体对待,出错信息写的很清楚。

cmd里连续的内存没必要分成一段一段的,把他们分配成一块就好了。   

MEMORY{

DARAM (RW)    : origin = 00000c0h length = 00ff40h  /* on-chip DARAM */

SARAM   (RW)  : origin = 0030000h length = 01e000h /* on-chip SARAM */

EMIF_CS0 (RW) : origin = 0050000h length = 07B0000h /* mSDR */ EMIF_CS2 (RW) : origin = 0800000h length = 0400000h /* ASYNC1 : NAND */ EMIF_CS3 (RW) : origin = 0C00000h length = 0200000h /* ASYNC2 : NAND */ EMIF_CS4 (RW) : origin = 0E00000h length = 0100000h /* ASYNC3 : NOR */ EMIF_CS5 (RW) : origin = 0F00000h length = 00E0000h /* ASYNC4 : SRAM */

}

赞(0)
未经允许不得转载:TI中文支持网 » 我用的ccs5.5 编译器,在主函数中添加#include "csl_intc.h"然后就出现错误
分享到: 更多 (0)