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.

[参考译文] TMS320F280049C:显示 gmake 时出错:***没有规则来生成目标#39;和#39;、需要&'all'

Guru**** 2589265 points
Other Parts Discussed in Thread: SYSCONFIG, C2000WARE

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1192107/tms320f280049c-error-showing-gmake-no-rule-to-make-target-needed-by-all

器件型号:TMS320F280049C
Thread 中讨论的其他器件:SysConfigC2000WARE

您好 Champ、

我正在向我的客户提出要求。

我的客户正在使用 CCS1210、并 已在其 PC 中安装 C2000Ware_4_02、但没有从 TI 网站额外安装 SysConfig GUI。

他尝试 从“Resource Explorer”导入示例代码,错误消息总是显示 gmake:***没有规则使目标“”成为“全部”所需的目标“”,无论导入了哪些示例,都是如此。

下面是"Copied from Console"窗口中的构建配置。  

**** Clean-only build of configuration CPU1_RAM for project sci_ex4_echoback ****

"D:\\ti\\ccs1210\\ccs\\utils\\bin\\gmake" -k -j 8 clean -O 
 
DEL /F  "syscfg\board.h" "syscfg\pinmux.csv" "syscfg\c2000ware_libraries.cmd.genlibs" "syscfg\c2000ware_libraries.h"  "sci_ex4_echoback.hex"  "syscfg\board.c" "syscfg\c2000ware_libraries.opt" "syscfg\c2000ware_libraries.c"  "sci_ex4_echoback.out" 
DEL /F "syscfg\board.obj" "syscfg\c2000ware_libraries.obj" "sci_ex4_echoback.obj" "device\device.obj" "device\f28004x_codestartbranch.obj" 
DEL /F "syscfg\board.d" "syscfg\c2000ware_libraries.d" "sci_ex4_echoback.d" "device\device.d" 
DEL /F "device\f28004x_codestartbranch.d" 
RMDIR /S/Q  "syscfg\" 
Not found D:\Projects\GUI\UART\sci_ex4_echoback\CPU1_RAM\sci_ex4_echoback.hex
Not found D:\Projects\GUI\UART\sci_ex4_echoback\CPU1_RAM\sci_ex4_echoback.out
Not found D:\Projects\GUI\UART\sci_ex4_echoback\CPU1_RAM\device\f28004x_codestartbranch.d
Finished clean
 

**** Build Finished ****

**** Build of configuration CPU1_RAM for project sci_ex4_echoback ****

"D:\\ti\\ccs1210\\ccs\\utils\\bin\\gmake" -k -j 8 all -O 
 
Building file: "../c2000.syscfg"
Invoking: SysConfig
"D:/ti/ccs1210/ccs/utils/sysconfig_1.14.0/sysconfig_cli.bat" -s "D:/ti/c2000/C2000Ware_4_02_00_00/.metadata/sdk.json" -d "F28004x" --script "D:/Projects/GUI/UART/sci_ex4_echoback/c2000.syscfg" -o "syscfg" --compiler ccs
Running script...
Validating...
Generating Code (c2000.syscfg)...
Writing D:\Projects\GUI\UART\sci_ex4_echoback\CPU1_RAM\syscfg\board.c...
Writing D:\Projects\GUI\UART\sci_ex4_echoback\CPU1_RAM\syscfg\board.h...
Writing D:\Projects\GUI\UART\sci_ex4_echoback\CPU1_RAM\syscfg\pinmux.csv...
Writing D:\Projects\GUI\UART\sci_ex4_echoback\CPU1_RAM\syscfg\c2000ware_libraries.cmd.genlibs...
Writing D:\Projects\GUI\UART\sci_ex4_echoback\CPU1_RAM\syscfg\c2000ware_libraries.opt...
Writing D:\Projects\GUI\UART\sci_ex4_echoback\CPU1_RAM\syscfg\c2000ware_libraries.c...
Writing D:\Projects\GUI\UART\sci_ex4_echoback\CPU1_RAM\syscfg\c2000ware_libraries.h...
Finished building: "../c2000.syscfg"
 
gmake: *** No rule to make target 'D:/Projects/driverlib/ccs/Debug/driverlib.lib', needed by 'all'.
 
Building file: "../device/f28004x_codestartbranch.asm"
Invoking: C2000 Compiler
"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu0 -Ooff --include_path="D:/Projects/GUI/UART/sci_ex4_echoback" --include_path="D:/Projects/GUI/UART/sci_ex4_echoback/device" --include_path="D:/ti/c2000/C2000Ware_4_02_00_00/driverlib/f28004x/driverlib" --include_path="D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="device/f28004x_codestartbranch.d_raw" --include_path="D:/Projects/GUI/UART/sci_ex4_echoback/CPU1_RAM/syscfg" --obj_directory="device" --cmd_file="syscfg/c2000ware_libraries.opt"  "../device/f28004x_codestartbranch.asm"
Finished building: "../device/f28004x_codestartbranch.asm"
 
Building file: "syscfg/board.c"
Invoking: C2000 Compiler
"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu0 -Ooff --include_path="D:/Projects/GUI/UART/sci_ex4_echoback" --include_path="D:/Projects/GUI/UART/sci_ex4_echoback/device" --include_path="D:/ti/c2000/C2000Ware_4_02_00_00/driverlib/f28004x/driverlib" --include_path="D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="syscfg/board.d_raw" --include_path="D:/Projects/GUI/UART/sci_ex4_echoback/CPU1_RAM/syscfg" --obj_directory="syscfg" --cmd_file="syscfg/c2000ware_libraries.opt"  "syscfg/board.c"
Finished building: "syscfg/board.c"
 
Building file: "syscfg/c2000ware_libraries.c"
Invoking: C2000 Compiler
"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu0 -Ooff --include_path="D:/Projects/GUI/UART/sci_ex4_echoback" --include_path="D:/Projects/GUI/UART/sci_ex4_echoback/device" --include_path="D:/ti/c2000/C2000Ware_4_02_00_00/driverlib/f28004x/driverlib" --include_path="D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="syscfg/c2000ware_libraries.d_raw" --include_path="D:/Projects/GUI/UART/sci_ex4_echoback/CPU1_RAM/syscfg" --obj_directory="syscfg" --cmd_file="syscfg/c2000ware_libraries.opt"  "syscfg/c2000ware_libraries.c"
Finished building: "syscfg/c2000ware_libraries.c"
 
Building file: "../device/device.c"
Invoking: C2000 Compiler
"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu0 -Ooff --include_path="D:/Projects/GUI/UART/sci_ex4_echoback" --include_path="D:/Projects/GUI/UART/sci_ex4_echoback/device" --include_path="D:/ti/c2000/C2000Ware_4_02_00_00/driverlib/f28004x/driverlib" --include_path="D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="device/device.d_raw" --include_path="D:/Projects/GUI/UART/sci_ex4_echoback/CPU1_RAM/syscfg" --obj_directory="device" --cmd_file="syscfg/c2000ware_libraries.opt"  "../device/device.c"
Finished building: "../device/device.c"
 
Building file: "../sci_ex4_echoback.c"
Invoking: C2000 Compiler
"D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu0 -Ooff --include_path="D:/Projects/GUI/UART/sci_ex4_echoback" --include_path="D:/Projects/GUI/UART/sci_ex4_echoback/device" --include_path="D:/ti/c2000/C2000Ware_4_02_00_00/driverlib/f28004x/driverlib" --include_path="D:/ti/ccs1210/ccs/tools/compiler/ti-cgt-c2000_22.6.0.LTS/include" --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="sci_ex4_echoback.d_raw" --include_path="D:/Projects/GUI/UART/sci_ex4_echoback/CPU1_RAM/syscfg" --cmd_file="syscfg/c2000ware_libraries.opt"  "../sci_ex4_echoback.c"
Finished building: "../sci_ex4_echoback.c"
 
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

更深入地看,发现错误 “driverlib.lib”不存在,如下所示。

问题似乎在于它找不到库的真实位置。  将示例直接导入 CCS 非常尴尬、用户不会修改任何内容。  

专家会建议如何以高效的方式解决问题? 如何解决这个问题?

谢谢、此致、

Johnny

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Johnny、

    您知道吗?当客户导入项目时、项目正确导入、没有任何错误。 driverlib.lib 的链接路径不正确。

    应该是这样  

    com_TI_C2000WARE_software_package_install_DIR/driverlib/f28004x/driverlib/ccs/调试/driverlib.lib

    它应该如下所示。

    如果导入正确、并且显示的内容与客户报告的内容类似、则 可能是他们的工作区已损坏。 您能让他创建一个新的工作区、然后导入项目吗?

    此致、Santosh