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.

[参考译文] TMS320F28388D:示例工程中包含的 Driverlib 不会进行构建。

Guru**** 2587345 points
Other Parts Discussed in Thread: C2000WARE

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1229190/tms320f28388d-driverlib-included-in-example-project-doesn-t-build

器件型号:TMS320F28388D
主题中讨论的其他器件:C2000WARE

您好、专家!

你好

我将通过从 C2000Ware driverlib_cm 文件夹中导入一个示例工程(更确切地说是"SysTick _ex1_interrupt")、来尝试熟悉上述电路板。 但是,当我尝试构建它时,由于项目中有一个"driverlib_cm.lib"文件,但它不知道如何构建:"gmake:***没有生成目标'/driverlib/f2838x/driverlib_cm/ccs/Debug/driverlib_cm.lib 的规则,这是'all'"所需要的。

项目文件夹中包括含有必要源文件的文件夹({C2000WARE_INSTALL_DIR}/driverlib/f2838x/driverlib_cm)、但该文件夹仍无法编译

我正在使用 Linux (Ubuntu 22.04)

有什么想法吗?

请告知。

此致、

Josel

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

    Josel:  

    请分享编译日志以了解这一问题。 我无法复制它。  相同的示例编译正常,没有任何错误。 我使用的是 C2000Ware v4.03.00.00

    此致

    Siddharth

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

    尊敬的 Siddharth:

    以下是构建日志:


    ****配置 CM_RAM 的纯净构建,用于项目 SysTick,ex1_interrupt ****

    /home/anthony/ti/ccs1220/ccs/utils/bin/gmake -k -j 8 Clean -O

    RM -RF"SysTick _ ex1_interrupt.out"
    rm -rf "startup_cm.obj""Systick _ex1_interrupt.obj""device/cm.obj"
    rm -rf "startup_cm.d""SysTick _ex1_interrupt.d""device/cm.d"
    已完成清洁


    ****构建完成****

    ****构建项目 SysTick _ex1_interrupt ****的 CM_RAM 配置

    /home/anthony/ti/ccs1220/ccs/utils/bin/gmake -k -j 8 all -O

    生成文件:"../startup_cm.c"
    调用:ARM 编译器
    "/home/anthony/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/bin/armcl -mv7M4 --code_state=16 --float_support=none -me -Ooff --include_path="/home/anthony/Repositories/CCSTests/systick_ex1_interrupt --include_path="/home/anthony/Repositories/CCSTests/systick_ex1_interrupt/device --include_path="/home/anthony/ti/C2000Ware_4_03_00_00/driverlib/f2838x/driverlib_cm --include_path="k="/home/anthony/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/include --define=debug --compile_warning=225 --diag_wel=off --display_error_diag_subsections-pregen_diag_defination_diag_diag_diag_diag_diag_diff -"。
    已完成构建:"../startup_cm.c"

    gmake:***没有将目标设置为"/driverlib/f2838x/driverlib_cm/ccs/Debug/driverlib_cm.lib "的规则,而是"所有"所需的。

    生成文件:"../SysTick _ex1_interrupt.c"
    调用:ARM 编译器
    "-mv7M4 --code_state=16 --float_support=none -me -Ooff --include_path="--include_path="/home/anthony/Repositories/CCSTests/systick_ex1_interrupt/device --include_path="/home/anthony/ti/C2000Ware_4_03_00_00/driverlib/f2838x/driverlib_cm --include_path="/home/anthony/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/bin/armcl --include_path="/home/anthony/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/include --include_path="/home/anthony/Repositories/CCSTests/systick_ex1_interrupt --define=debug --compile_warning=225 --diag_wrap -diag_wrap=off ---display_error_diag_subsections_diag_pregen_interrupt_exc=1"- proc_prestick_interrupt_exc=1"_diag_diag_diag_diag_diag_diag_decond_exc=1"。
    已完成构建:"../SysTick _ex1_interrupt.c"

    生成文件:"../device/cm.c
    调用:ARM 编译器
    /home/anthony/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/bin/armcl -mv7M4 --code_state=16 --float_support=none -me -Ooff --include_path="/home/anthony/Repositories/CCSTests/systick_ex1_interrupt --include_path="/home/anthony/Repositories/CCSTests/systick_ex1_interrupt/device /device/cm.c --include_path="/home/anthony/ti/C2000Ware_4_03_00_00/driverlib/f2838x/driverlib_cm --include_path="/home/anthony/ti/ccs1220/ccs/tools/compiler/ti-cgt-arm_20.2.7.LTS/include --define=debug --compile_warning=225 --diag_wrap=off --display_error_diag_decond_diag_decond_diag_decond_diag_decond_decond_diff -"_diag_diag_diag_decome-on-d"。
    已完成建设:"../device/cm.c "

    gmake:由于错误、未重制目标"all"。

    ****构建完成****

    项目浏览器确实包含某种伪库文件、此文件会导致"此项目包含1个未解析的可构建链接资源。 项目可能无法按预期生成。" 警告(请参阅所附屏幕截图底部)。 我想该示例预计它已经被编译、但我对这些工具和 CCS 没有足够的熟悉、没有告知它可以从 device/driverlib_cm 文件夹中的文件中进行编译、也没有找到仅构建 lib 文件的示例项目

    此致、

    Josel

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

    Josel:  

    我们会检查并回复给您。 理想情况下、它不应构建 driverlib_cm、而应使用预编译库。

    此致

    Siddharth  

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

    尊敬的 Siddharth:

    我找不到所需库的任何预编译库文件、也没有任何从可用源代码构建它的示例工程。 应该有吗?

    此致、

    Josel

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

    Josel:

    默认情况下、driverlib_cm.lib 不包含在项目中吗?  

    您也可以尝试为位于[c2000wareinstall]\driverlib\f2838x\swerlib_cm\ccs 的 driverlib_cm 导入工程,然后对其进行编译。如果编译正常,则可以将其链接到 Systick _ex1_interrupt 示例,然后重新编译该示例。

    此致

    Siddharth  

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

    尊敬的 Siddharth:

    CCS 项目中只存在一个"虚拟文件"(请见附在我之前邮件内的屏幕截图底部的"driverlib_cm.lib"文件): 该文件在 CCS 工程浏览器中被引用、但该文件不存在于引用路径下的驱动器上、这可能是我在编译时收到警告和错误的原因。 它的行为显然类似于 make 目标、因为当找不到该文件时、CCS 会尝试从源代码进行编译、但没有找到任何方法来执行该操作、并生成"gmake"错误(请参阅我之前的电子邮件中的日志)。

    我找不到您提到的路径的最后一个文件夹:在[C2000WareInstall]/driverlib/f2838x/driverlib_cm 文件夹中、我只需要 driverlib .c 和.h 文件(aes.c/h、cmmpu.c/h、...)和"inc"文件夹。 找不到"CCS"文件夹。 我从 CCS 的 Resource Explorer 下载了 C2000Ware、并且使用的是 Linux。 这两件事中有一件是可能的,所以我没有整个包?

    然而,我最终找到了一个解决方案:进入属性>C/C++常规>路径和符号>源位置,并添加包含源文件的文件夹,然后删除 driverlib_cm.lib "虚拟文件",使我可以构建没有错误

    祝你度过美好的一天

    渐变、

    Josel

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

     Josel:

    如果浏览 C2000ware 的已下载文件夹、driverlib_cm.lib 应位于  C2000WareInstall]/driverlib/f2838x/driverlib_cm 文件夹中。  

    它将在 Linux 计算机上检查并返回给您。

    此致

    Siddharth  

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

    尊敬的 Siddharth:

    好的、我将等待您的回答。

    此致、

    Josel

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

    Josel:

    已安装的软件包中存在 driverlib_cm.lib。  不确定您无法查看的原因。

    您可以尝试从 https://www.ti.com/tool/C2000WARE#downloads 重新安装软件包吗

    此致

    Siddharth