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.

TMS320F28377D: 报错subdir_rules.mk:9: recipe for target 'xxxxx.obj' failed gmake: *** [xxxxx.obj] Error 1

Part Number: TMS320F28377D

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
**** Build of configuration Debug for project DAB_HbridgeV2 ****
"D:\\ti\\ccs1281\\ccs\\utils\\bin\\gmake" -k -j 8 all -O
subdir_rules.mk:9: recipe for target 'adc_user.obj' failed
gmake: *** [adc_user.obj] Error 1
subdir_rules.mk:9: recipe for target 'control_user.obj' failed
gmake: *** [control_user.obj] Error 1
subdir_rules.mk:9: recipe for target 'epwm_user.obj' failed
gmake: *** [epwm_user.obj] Error 1
subdir_rules.mk:9: recipe for target 'io_user.obj' failed
gmake: *** [io_user.obj] Error 1
subdir_rules.mk:9: recipe for target 'main.obj' failed
gmake: *** [main.obj] Error 1
subdir_rules.mk:9: recipe for target 'sci.obj' failed
gmake: *** [sci.obj] Error 1
source_2837xD/subdir_rules.mk:9: recipe for target 'source_2837xD/F2837xD_Adc.obj' failed
gmake: *** [source_2837xD/F2837xD_Adc.obj] Error 1
source_2837xD/subdir_rules.mk:16: recipe for target 'source_2837xD/F2837xD_CodeStartBranch.obj' failed
gmake: *** [source_2837xD/F2837xD_CodeStartBranch.obj] Error 1
source_2837xD/subdir_rules.mk:9: recipe for target 'source_2837xD/F2837xD_CpuTimers.obj' failed
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

使用的是CCS12.8,编译器尝试了v20.8.0和v22.6.1均报错。include options已经添加了必要路径

同样的project在其他电脑上可以正常编译,并且我的ARM的project也是可以正常编译的,只有28377D这个不行,怀疑是前几天倒腾Pycharm和python的时候误删了系统的环境变量导致的,但很难排查出具体问题。

请教原因和解决方法。

  • 您好

    针对TMS320F28377D编译过程中出现的subdir_rules.mk:9: recipe for target 'xxxxx.obj' failed以及gmake: *** [XXXXX.obj] Error 1问题,可以尝试以下解决方案:

    • 检查文件路径‌:确保源代码文件路径正确,无误输入或缺失。如错误提示中提到的无法打开源代码文件,可能是因为文件路径无效或文件不存在‌。
    • 检查编译器配置‌:核实编译器配置是否正确,包括编译器路径、包含目录和库文件目录等。
    • 查看具体编译错误‌:分析XXXXX.obj对应的源文件,查看具体编译错误信息,如类型规格符无效组合等,根据错误信息进行针对性修改‌。

    https://dev.ti.com/tirex/global?id=C2000WARE

    https://dev.ti.com/tirex/global?id=digital_power_c2000ware_sdk_software_package

    以上是官方给出的相关库文件和例程,您可以从这里查找针对性的文件重新下载导入相关目录下来解决这个问题。

  • 同样的工程文件在其他电脑上是可以正常编译的,并且编译器配置也是一模一样的。如果要分析XXXXX.obj对应的源文件,查看具体编译错误信息,该如何具体操作呢

  • 您好

    根据提供资料可能是您电脑端缺失了部分资料导致的,因为根据您的说明可以在别的电脑上运行表示别的电脑能识别这部的库或相关源代码。我给您分享的链接,您可以尝试下载例程,如果还是无法运行请更新您的开发环境,有可能是缺失相关加载或识别相关库的固件。

x 出现错误。请重试或与管理员联系。