Other Parts Discussed in Thread: C2000WARE
主题中讨论的其他器件:C2000WARE
工具/软件:Code Composer Studio
为什么在 Project Explorer 中复制和粘贴的工程不会编译、而原始工程不包含错误?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Other Parts Discussed in Thread: C2000WARE
工具/软件:Code Composer Studio
为什么在 Project Explorer 中复制和粘贴的工程不会编译、而原始工程不包含错误?
这是原始的构建日志
****为项目 Example_F2802xLEDBlink 构建配置闪存****
"C:\\ti\\ccs920\\ccs\\utils\bin\\gmake"-k all
构建目标:"Example_F2802xLEDBlink.out"
调用:C2000链接器
"c:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000 /ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib /ti/C2000Ware_2_01_00_00_Software/device_support/f2802x/examples/drivers/timed_led_blink /ti/C2000Ware_2_01_00_00_Software/device_support/f2802x/headers/cmd/F2802x_Headers_nonBIOS.cmd -v28 -ml -mt -g -define="_debug"--define="_flash"--define="large_model"--quiet --verbos_diagnostics --ml_warning=225 --diag_lib=10063 -z --stack_size=0x200 -m"example_f280LErom_exclus-ination="-link_exclus-ine.exclus_ino"-intrack_exclus-inese-exclus-inese-inese-inese-inese-ino"-link_ino"-ino"-ino"-exclus-ino"-ino"-ino"-ino"-exclus.inese-inese-ino"-exclus.inese-ino"-exclus-inese-ino"-ino"-ino"-ino"-ino"-ino"-inese-exclus.dlib_exclus.ino"-ino"-exclus.ines /ti/C2000Ware_2_01_00_00_Software/device_support/f2802x/common/cmd/F2802x_generic_flash.cmd /ti/C2000Ware_2_01_00_00_Software/device_support/f2802x/common/ccs/Debug/driverlib.lib /ti/C2000Ware_2_01_00_00_Software/libraries/math/IQmath/c28/lib /ti/C2000Ware_2_01_00_00_Software/device_support/f2802x/common/lib /ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include
备注:在"IQmath_coff .lib"中链接以代替索引库"IQmath.lib"
已完成构建目标:"Example_F2802xLEDBlink.out"
****构建完成****
这是 Copy 的构建日志
****项目 Example_F2802xLEDBLINK_COPY 的配置闪存纯净构建****
"C:\\ti\\ccs920\\ccs\\utils\bin\\gmake"-k clean
DEL /F "Example_F2802xLEDBlink.out"
DEL /F "Example_2802xLEDBlink.obj"
DEL /F "Example_2802xLEDBlink.d"
已完成清理
****构建完成****
****为项目 Example_F2802xLEDBLINK_COPY 构建配置闪存****
"C:\\ti\\ccs920\\ccs\\utils\bin\\gmake"-k all
编译文件:"../example_2802xLEDBlink.c"
调用:C2000编译器
"c:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000 "-v28 -ml -mt -g -include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include --include_path="C:/Users/bdg/Documents/common/include --include_path="C:/Users/bdg/Documents/headers/include --include_path="C:/Users/bdg/Documents --include_path="C:--include_path="C:/Users/libraries/math/IQmath/c28/include --define ="_debug"--define ="_expressions-brefus_express-d_example-bus_bus_bus_boti_diag.c -express-"-inquot_express-d_example.c -bus_express-d_guius_b&d_example.c:-d_bus_bus_guius_b&d_guius_b&d_gui_diag_bulation="b&d_b
>>编译失败
subdir_rules.mk:9:目标'example_2802xLEDBlink.obj'的配方失败
"./example_2802xLEDBlink.c"、第59行:致命错误:无法打开源文件
"DSP28x_Project.h"
#include "DSP28x_Project.h"//器件头文件和示例 include 文件
^μ A
1在编译"./example_2802xLEDBlink.c"时检测到灾难性错误。
编译已终止。
gmake:***[Example_2802xLEDBlink.obj]错误1.
gmake:目标"全部"不会由于错误而重新生成。
****构建完成****
复制的工程中编译器的--include_path 选项未指向预期路径。
如果您查看原始工程的 Properties、它们将如下所示:
变量${INSTALLROOT_F2802x}相对于 ORIGINAL_PROJECT_ROOT 定义如下:
本质上、 INSTALLROOT_F2802x 应解析为 C:/ti/C2000Ware_2_01_00_00_Software/device_support/f2802x.
在复制的工程中、编译输出将包含路径显示为"C:/Users/bdg/Documents/common/include "、与之类似。 路径应指向 C2000Ware 中相应的文件夹:C:/ti/C2000Ware_2_01_00_00_Software/device_support/f2802x/common/include.
确保调整复制工程中的编译变量以指向正确的路径、这应该会修复错误。