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

编译无语法错误,有一个Fatal error: cannot open source file "MEMORY"

**** Build of configuration Debug for project Example_2833xEPwmUpDownAQ ****

"E:\\ProfessionalSoftware\\CCS6.0\\install\\ccsv6\\utils\\bin\\gmake" -k all'Building file: ../Example_2833xEPwmUpDownAQ.c'
'Invoking: C2000 Compiler'
"E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\28335_RAM_lnk.cmd" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\F28335.cmd" -v28 -ml -mt –float_support=fpu32 –include_path="E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_common/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_headers/include" -g –define="_DEBUG" –define="LARGE_MODEL" –quiet –verbose_diagnostics –diag_warning=225 –diag_suppress=10063 –issue_remarks –output_all_syms –cdebug_asm_data –preproc_with_compile –preproc_dependency="Example_2833xEPwmUpDownAQ.pp" "../Example_2833xEPwmUpDownAQ.c"
>> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
Fatal error: cannot open source file "MEMORY"

1 catastrophic error detected in the compilation of "MEMORY".
Compilation terminated.

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

**** Build Finished ****

10#:

为什么会有两个.cmd文件\28335_RAM_lnk.cmd和F28335.cmd?你到底是需要将程序加载到RAM还是FLASH上运行?这两个文件是否有同时操作同一片内存区域,或者是否存在一个段映射到两个不同的内存?

MEMORY是你程序里的一个文件,还是.cmd文件里的关键字?如果是前者,那你要看看这个文件有什么问题,如果是后者,比较倾向于跟上面的问题内存映射有关。

**** Build of configuration Debug for project Example_2833xEPwmUpDownAQ ****

"E:\\ProfessionalSoftware\\CCS6.0\\install\\ccsv6\\utils\\bin\\gmake" -k all'Building file: ../Example_2833xEPwmUpDownAQ.c'
'Invoking: C2000 Compiler'
"E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\28335_RAM_lnk.cmd" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\F28335.cmd" -v28 -ml -mt –float_support=fpu32 –include_path="E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_common/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_headers/include" -g –define="_DEBUG" –define="LARGE_MODEL" –quiet –verbose_diagnostics –diag_warning=225 –diag_suppress=10063 –issue_remarks –output_all_syms –cdebug_asm_data –preproc_with_compile –preproc_dependency="Example_2833xEPwmUpDownAQ.pp" "../Example_2833xEPwmUpDownAQ.c"
>> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
Fatal error: cannot open source file "MEMORY"

1 catastrophic error detected in the compilation of "MEMORY".
Compilation terminated.

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

**** Build Finished ****

chong chen61:

回复 10#:

现在将.cmd文件换为DSP2833x_Headers_nonBIOS.cmd和F28335.cmd也还是同样的错误,MEMEOR不是程序文件。

**** Build of configuration Debug for project Example_2833xEPwmUpDownAQ ****

"E:\\ProfessionalSoftware\\CCS6.0\\install\\ccsv6\\utils\\bin\\gmake" -k all 'Building file: ../Example_2833xEPwmUpDownAQ.c''Invoking: C2000 Compiler'"E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\DSP2833x_Headers_nonBIOS.cmd" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\F28335.cmd" -v28 -ml -mt –float_support=fpu32 –include_path="E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_common/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_headers/include" -g –define="_DEBUG" –define="LARGE_MODEL" –quiet –verbose_diagnostics –diag_warning=225 –diag_suppress=10063 –issue_remarks –output_all_syms –cdebug_asm_data –preproc_with_compile –preproc_dependency="Example_2833xEPwmUpDownAQ.pp" "../Example_2833xEPwmUpDownAQ.c">> WARNING: more than one source file is specified; preprocessor output will be generated for last file onlyFatal error: cannot open source file "MEMORY"

1 catastrophic error detected in the compilation of "MEMORY".Compilation terminated.

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

**** Build Finished ****

**** Build of configuration Debug for project Example_2833xEPwmUpDownAQ ****

"E:\\ProfessionalSoftware\\CCS6.0\\install\\ccsv6\\utils\\bin\\gmake" -k all'Building file: ../Example_2833xEPwmUpDownAQ.c'
'Invoking: C2000 Compiler'
"E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\28335_RAM_lnk.cmd" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\F28335.cmd" -v28 -ml -mt –float_support=fpu32 –include_path="E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_common/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_headers/include" -g –define="_DEBUG" –define="LARGE_MODEL" –quiet –verbose_diagnostics –diag_warning=225 –diag_suppress=10063 –issue_remarks –output_all_syms –cdebug_asm_data –preproc_with_compile –preproc_dependency="Example_2833xEPwmUpDownAQ.pp" "../Example_2833xEPwmUpDownAQ.c"
>> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
Fatal error: cannot open source file "MEMORY"

1 catastrophic error detected in the compilation of "MEMORY".
Compilation terminated.

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

**** Build Finished ****

10#:

回复 chong chen61:

你的程序里有两个Example_2833xEPwmUpDownAQ.c文件吗?还是你在编译属性里通过preproc_dependency选项重复添加了这个文件?

**** Build of configuration Debug for project Example_2833xEPwmUpDownAQ ****

"E:\\ProfessionalSoftware\\CCS6.0\\install\\ccsv6\\utils\\bin\\gmake" -k all'Building file: ../Example_2833xEPwmUpDownAQ.c'
'Invoking: C2000 Compiler'
"E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\28335_RAM_lnk.cmd" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\F28335.cmd" -v28 -ml -mt –float_support=fpu32 –include_path="E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_common/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_headers/include" -g –define="_DEBUG" –define="LARGE_MODEL" –quiet –verbose_diagnostics –diag_warning=225 –diag_suppress=10063 –issue_remarks –output_all_syms –cdebug_asm_data –preproc_with_compile –preproc_dependency="Example_2833xEPwmUpDownAQ.pp" "../Example_2833xEPwmUpDownAQ.c"
>> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
Fatal error: cannot open source file "MEMORY"

1 catastrophic error detected in the compilation of "MEMORY".
Compilation terminated.

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

**** Build Finished ****

chong chen61:

回复 10#:

Example_2833xEPwmUpDownAQ.c只有一个,你说的后者应该在哪查看?

**** Build of configuration Debug for project Example_2833xEPwmUpDownAQ ****

"E:\\ProfessionalSoftware\\CCS6.0\\install\\ccsv6\\utils\\bin\\gmake" -k all'Building file: ../Example_2833xEPwmUpDownAQ.c'
'Invoking: C2000 Compiler'
"E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\28335_RAM_lnk.cmd" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\F28335.cmd" -v28 -ml -mt –float_support=fpu32 –include_path="E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_common/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_headers/include" -g –define="_DEBUG" –define="LARGE_MODEL" –quiet –verbose_diagnostics –diag_warning=225 –diag_suppress=10063 –issue_remarks –output_all_syms –cdebug_asm_data –preproc_with_compile –preproc_dependency="Example_2833xEPwmUpDownAQ.pp" "../Example_2833xEPwmUpDownAQ.c"
>> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
Fatal error: cannot open source file "MEMORY"

1 catastrophic error detected in the compilation of "MEMORY".
Compilation terminated.

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

**** Build Finished ****

10#:

回复 chong chen61:

**** Build of configuration Debug for project Example_2833xEPwmUpDownAQ ****

"E:\\ProfessionalSoftware\\CCS6.0\\install\\ccsv6\\utils\\bin\\gmake" -k all'Building file: ../Example_2833xEPwmUpDownAQ.c'
'Invoking: C2000 Compiler'
"E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\28335_RAM_lnk.cmd" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\F28335.cmd" -v28 -ml -mt –float_support=fpu32 –include_path="E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_common/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_headers/include" -g –define="_DEBUG" –define="LARGE_MODEL" –quiet –verbose_diagnostics –diag_warning=225 –diag_suppress=10063 –issue_remarks –output_all_syms –cdebug_asm_data –preproc_with_compile –preproc_dependency="Example_2833xEPwmUpDownAQ.pp" "../Example_2833xEPwmUpDownAQ.c"
>> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
Fatal error: cannot open source file "MEMORY"

1 catastrophic error detected in the compilation of "MEMORY".
Compilation terminated.

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

**** Build Finished ****

chong chen61:

回复 10#:

**** Build of configuration Debug for project Example_2833xEPwmUpDownAQ ****

"E:\\ProfessionalSoftware\\CCS6.0\\install\\ccsv6\\utils\\bin\\gmake" -k all'Building file: ../Example_2833xEPwmUpDownAQ.c'
'Invoking: C2000 Compiler'
"E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\28335_RAM_lnk.cmd" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\F28335.cmd" -v28 -ml -mt –float_support=fpu32 –include_path="E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_common/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_headers/include" -g –define="_DEBUG" –define="LARGE_MODEL" –quiet –verbose_diagnostics –diag_warning=225 –diag_suppress=10063 –issue_remarks –output_all_syms –cdebug_asm_data –preproc_with_compile –preproc_dependency="Example_2833xEPwmUpDownAQ.pp" "../Example_2833xEPwmUpDownAQ.c"
>> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
Fatal error: cannot open source file "MEMORY"

1 catastrophic error detected in the compilation of "MEMORY".
Compilation terminated.

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

**** Build Finished ****

10#:

回复 chong chen61:

还有dependency的配置呢?

**** Build of configuration Debug for project Example_2833xEPwmUpDownAQ ****

"E:\\ProfessionalSoftware\\CCS6.0\\install\\ccsv6\\utils\\bin\\gmake" -k all'Building file: ../Example_2833xEPwmUpDownAQ.c'
'Invoking: C2000 Compiler'
"E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\28335_RAM_lnk.cmd" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\F28335.cmd" -v28 -ml -mt –float_support=fpu32 –include_path="E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_common/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_headers/include" -g –define="_DEBUG" –define="LARGE_MODEL" –quiet –verbose_diagnostics –diag_warning=225 –diag_suppress=10063 –issue_remarks –output_all_syms –cdebug_asm_data –preproc_with_compile –preproc_dependency="Example_2833xEPwmUpDownAQ.pp" "../Example_2833xEPwmUpDownAQ.c"
>> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
Fatal error: cannot open source file "MEMORY"

1 catastrophic error detected in the compilation of "MEMORY".
Compilation terminated.

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

**** Build Finished ****

chong chen61:

回复 10#:

是这个吗?如果不是,应该在哪找,如果配置不对应该怎么改呢?

**** Build of configuration Debug for project Example_2833xEPwmUpDownAQ ****

"E:\\ProfessionalSoftware\\CCS6.0\\install\\ccsv6\\utils\\bin\\gmake" -k all'Building file: ../Example_2833xEPwmUpDownAQ.c'
'Invoking: C2000 Compiler'
"E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\28335_RAM_lnk.cmd" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\F28335.cmd" -v28 -ml -mt –float_support=fpu32 –include_path="E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_common/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_headers/include" -g –define="_DEBUG" –define="LARGE_MODEL" –quiet –verbose_diagnostics –diag_warning=225 –diag_suppress=10063 –issue_remarks –output_all_syms –cdebug_asm_data –preproc_with_compile –preproc_dependency="Example_2833xEPwmUpDownAQ.pp" "../Example_2833xEPwmUpDownAQ.c"
>> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
Fatal error: cannot open source file "MEMORY"

1 catastrophic error detected in the compilation of "MEMORY".
Compilation terminated.

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

**** Build Finished ****

10#:

回复 chong chen61:

我回复给你的有两个截图,你为什么不看第一个呢?

**** Build of configuration Debug for project Example_2833xEPwmUpDownAQ ****

"E:\\ProfessionalSoftware\\CCS6.0\\install\\ccsv6\\utils\\bin\\gmake" -k all'Building file: ../Example_2833xEPwmUpDownAQ.c'
'Invoking: C2000 Compiler'
"E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/bin/cl2000" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\28335_RAM_lnk.cmd" –cmd_file="D:\ccs_workspace_v6_0\Example_2833xEPwmUpDownAQ\cmd\F28335.cmd" -v28 -ml -mt –float_support=fpu32 –include_path="E:/ProfessionalSoftware/CCS6.0/install/ccsv6/tools/compiler/c2000_6.2.5/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_common/include" –include_path="C:/ti/controlSUITE/device_support/f2833x/v141/DSP2833x_headers/include" -g –define="_DEBUG" –define="LARGE_MODEL" –quiet –verbose_diagnostics –diag_warning=225 –diag_suppress=10063 –issue_remarks –output_all_syms –cdebug_asm_data –preproc_with_compile –preproc_dependency="Example_2833xEPwmUpDownAQ.pp" "../Example_2833xEPwmUpDownAQ.c"
>> WARNING: more than one source file is specified; preprocessor output will be generated for last file only
Fatal error: cannot open source file "MEMORY"

1 catastrophic error detected in the compilation of "MEMORY".
Compilation terminated.

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

**** Build Finished ****

chong chen61:

回复 10#:

赞(0)
未经允许不得转载:TI中文支持网 » 编译无语法错误,有一个Fatal error: cannot open source file "MEMORY"
分享到: 更多 (0)