新买的开发板,竟然不带任何资料可以学习,只给了网站让人下载。在http://support.spectrumdigital.com/boards/evm5517/revf/这个网站上下载了个例程,只是简单地几个程序,没有中断使用,而找到的CSL库,在ccs5.5上加载出错,需要ccs6.0以上的版本,但是上面那个网站是用于5.5版本的。求个入门的中断程序。
或者谁知道那个中断矢量表如何写,也就是vectors.asm这个文件如何书写,求告知!
user5052112:
回复 Shine:
非常感谢你的帮助,同时,我想问一下,这个库中不是在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:\Users\ADMINI~1\AppData\Local\Temp\0569210", ERROR! at line 1702: [E9999] Syntax Error BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL
"C:\Users\ADMINI~1\AppData\Local\Temp\0569210", ERROR! at line 1702: [E9999] Invalid instructionsyntax, Xmem or Ymem expected BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL
"C:\Users\ADMINI~1\AppData\Local\Temp\0569210", ERROR! at line 1702: [E9999] Invalid mnemonic specified BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL
"C:\Users\ADMINI~1\AppData\Local\Temp\0569210", ERROR! at line 1702: [E9999] Invalid mnemonic specified BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL
"C:\Users\ADMINI~1\AppData\Local\Temp\0569210", ERROR! at line 1762: [E9999] Syntax Error BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL
"C:\Users\ADMINI~1\AppData\Local\Temp\0569210", ERROR! at line 1762: [E9999] Invalid instructionsyntax, Xmem or Ymem expected BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL
"C:\Users\ADMINI~1\AppData\Local\Temp\0569210", ERROR! at line 1762: [E9999] Invalid mnemonic specified BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL
"C:\Users\ADMINI~1\AppData\Local\Temp\0569210", ERROR! at line 1762: [E9999] Invalid mnemonic specified BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL
"C:\Users\ADMINI~1\AppData\Local\Temp\0569210", ERROR! at line 1825: [E9999] Syntax Error BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL
"C:\Users\ADMINI~1\AppData\Local\Temp\0569210", ERROR! at line 1825: [E9999] Invalid instructionsyntax, Xmem or Ymem expected BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL
"C:\Users\ADMINI~1\AppData\Local\Temp\0569210", ERROR! at line 1825: [E9999] Invalid mnemonic specified BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL
"C:\Users\ADMINI~1\AppData\Local\Temp\0569210", ERROR! at line 1825: [E9999] Invalid mnemonic specified BIT (ST1,#ST1_INTM) = #1 ;====> CODE AUTO-GENERATED by CSL
"C:\Users\ADMINI~1\AppData\Local\Temp\0569210", ERROR! at line 1833: [E9999] Syntax Error BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL
"C:\Users\ADMINI~1\AppData\Local\Temp\0569210", ERROR! at line 1833: [E9999] Invalid instructionsyntax, Xmem or Ymem expected BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL
"C:\Users\ADMINI~1\AppData\Local\Temp\0569210", ERROR! at line 1833: [E9999] Invalid mnemonic specified BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL
"C:\Users\ADMINI~1\AppData\Local\Temp\0569210", ERROR! at line 1833: [E9999] Invalid mnemonic specified BIT (ST1,#ST1_INTM) = #0 ;====> CODE AUTO-GENERATED by CSL
Errors in Source – Assembler Aborted16 Assembly Errors, No Assembly Warnings
>> Compilation failure
>> Compilation failuregmake: *** [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 ****
user5052112:
回复 Shine:
还有,问啥我加入这个vectors.asm后,在编译中问啥报语法错误?