TI论坛
直播中

陈佳敏

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

请问TMS320C5517定时器中断的中断矢量表如何写?

新买的开发板,竟然不带任何资料可以学习,只给了网站让人下载。在http://support.spectrumdigital.com/boards/evm5517/revf/这个网站上下载了个例程,只是简单地几个程序,没有中断使用,而找到的CSL库,在ccs5.5上加载出错,需要ccs6.0以上的版本,但是上面那个网站是用于5.5版本的。求个入门的中断程序。
或者谁知道那个中断矢量表如何写,也就是vectors.asm这个文件如何书写,求告知!

回帖(4)

余少虹

2018-7-30 10:34:10
附件是我之前下的ccs v5版本的CSL。
vectors.asm在C:tic55_lpc55_csl_3.04c55xx_cslsrc路径下。
举报

陈佳敏

2018-7-30 10:49:57
引用: vuywsdfwf 发表于 2018-7-30 10:34
附件是我之前下的ccs v5版本的CSL。
vectors.asm在C:tic55_lpc55_csl_3.04c55xx_cslsrc路径下。

非常感谢你的帮助,同时,我想问一下,这个库中不是在ccs_v5.0_examples这个路径下有例程吗,加载完这个例子,并配置好,还需要改啥?
下面是我编译后出现的错误,不知道是什么原因。
**** Build of configuration Debug for project timer_interrupt ****
"E:\\ccsv5\utils\bin\gmake" -k all
'Building file: ../main.c'
'Invoking: C5500 Compiler'
"E:/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --include_path="C:/Users/Administrator/workspace_v5_5/timer_interrupt/include" --include_path="E:/ccsv5/tools/compiler/c5500_4.4.1/include" --define=c5517 --diag_warning=225 --ptrdiff_size=32 --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
'Finished building: ../main.c'
' '
'Building file: ../lib/csl_intc.c'
'Invoking: C5500 Compiler'
"E:/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --include_path="C:/Users/Administrator/workspace_v5_5/timer_interrupt/include" --include_path="E:/ccsv5/tools/compiler/c5500_4.4.1/include" --define=c5517 --diag_warning=225 --ptrdiff_size=32 --preproc_with_compile --preproc_dependency="lib/csl_intc.pp" --obj_directory="lib" "../lib/csl_intc.c"
"C:UsersADMINI~1AppDataLocalTemp569210", ERROR! at line 1702:
[E9999]
Syntax Error
BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL
"C:UsersADMINI~1AppDataLocalTemp569210", ERROR! at line 1702:
[E9999]
Invalid instructionsyntax, Xmem or Ymem expected
BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL
"C:UsersADMINI~1AppDataLocalTemp569210", ERROR! at line 1702:
[E9999]
Invalid mnemonic specified
BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL
"C:UsersADMINI~1AppDataLocalTemp569210", ERROR! at line 1702:
[E9999]
Invalid mnemonic specified
BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL
"C:UsersADMINI~1AppDataLocalTemp569210", ERROR! at line 1762:
[E9999]
Syntax Error
BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL
"C:UsersADMINI~1AppDataLocalTemp569210", ERROR! at line 1762:
[E9999]
Invalid instructionsyntax, Xmem or Ymem expected
BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL
"C:UsersADMINI~1AppDataLocalTemp569210", ERROR! at line 1762:
[E9999]
Invalid mnemonic specified
BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL
"C:UsersADMINI~1AppDataLocalTemp569210", ERROR! at line 1762:
[E9999]
Invalid mnemonic specified
BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL
"C:UsersADMINI~1AppDataLocalTemp569210", ERROR! at line 1825:
[E9999]
Syntax Error
BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL
"C:UsersADMINI~1AppDataLocalTemp569210", ERROR! at line 1825:
[E9999]
Invalid instructionsyntax, Xmem or Ymem expected
BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL
"C:UsersADMINI~1AppDataLocalTemp569210", ERROR! at line 1825:
[E9999]
Invalid mnemonic specified
BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL
"C:UsersADMINI~1AppDataLocalTemp569210", ERROR! at line 1825:
[E9999]
Invalid mnemonic specified
BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL
"C:UsersADMINI~1AppDataLocalTemp569210", ERROR! at line 1833:
[E9999]
Syntax Error
BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL
"C:UsersADMINI~1AppDataLocalTemp569210", ERROR! at line 1833:
[E9999]
Invalid instructionsyntax, Xmem or Ymem expected
BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL
"C:UsersADMINI~1AppDataLocalTemp569210", ERROR! at line 1833:
[E9999]
Invalid mnemonic specified
BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL
"C:UsersADMINI~1AppDataLocalTemp569210", ERROR! at line 1833:
[E9999]
Invalid mnemonic specified
BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL

Errors in Source - Assembler Aborted
16 Assembly Errors, No Assembly Warnings
>> Compilation failure
>> Compilation failure
gmake: *** [lib/csl_intc.obj] Error 1
'Building file: ../lib/csl_sar.c'
'Invoking: C5500 Compiler'
"E:/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -v5515 --memory_model=large -g --include_path="C:/Users/Administrator/workspace_v5_5/timer_interrupt/include" --include_path="E:/ccsv5/tools/compiler/c5500_4.4.1/include" --define=c5517 --diag_warning=225 --ptrdiff_size=32 --preproc_with_compile --preproc_dependency="lib/csl_sar.pp" --obj_directory="lib" "../lib/csl_sar.c"
'Finished building: ../lib/csl_sar.c'
' '
gmake: Target `all' not remade because of errors.
**** Build Finished ****
举报

陈佳敏

2018-7-30 11:01:02
引用: vuywsdfwf 发表于 2018-7-30 10:34
附件是我之前下的ccs v5版本的CSL。
vectors.asm在C:tic55_lpc55_csl_3.04c55xx_cslsrc路径下。

还有,问啥我加入这个vectors.asm后,在编译中问啥报语法错误?
举报

余少虹

2018-7-30 11:19:09
引用: 60user117 发表于 2018-7-30 11:01
还有,问啥我加入这个vectors.asm后,在编译中问啥报语法错误?

试试在ccs->Properties -> C/C++-Build -> Runtime Model Options下面勾选 "Codegen outputs algebraic assembly" ,"Select assembly source language" 选择 Algebraic。
举报

更多回帖

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