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.

[参考译文] CCS/AM3359:无法构建 EtherCAT 示例

Guru**** 2614265 points
Other Parts Discussed in Thread: SYSBIOS, AM3359

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/581556/ccs-am3359-cannot-build-ethercat-example

器件型号:AM3359
Thread 中讨论的其他器件:SYSBIOS

工具/软件:Code Composer Studio

我正在尝试为 AM3359板构建 SYSBIOS_IND_SDK_02.01.03.02中的 EtherCAT 示例。 我使用的是 CCS 6.2、并遇到以下错误:

Makefile:154:目标'EtherCAT.out'的配方失败
C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe:错误:EtherCAT.out 使用 VFP 寄存器参数、c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3 libgcc.a (bpabi.o)不使用
C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe:无法合并文件 c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3的目标特定数据\libgcc.a (bpabi.o)
C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe:错误:EtherCAT.out 使用 VFP 寄存器参数、c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3 libgcc.a (_divdi3.o)不使用
C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe:无法合并文件 c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3的目标特定数据\libgcc.a (_divdi3.o)
C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe:错误:EtherCAT.out 使用 VFP 寄存器参数、c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3 libgcc.a (_divdi3.o)不使用
C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe:无法合并文件 c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3的目标特定数据\libgcc.a (_divdi3.o)
C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe:错误:EtherCAT.out 使用 VFP 寄存器参数、c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3 libgcc.a (_fixunsdfdi.o)不使用
C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe:无法合并文件 c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3的目标特定数据\libgcc.a (_fixunsdfdi.o)
C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe:错误:EtherCAT.out 使用 VFP 寄存器参数、c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3 libgcc.a (_fixunssfdi.o)不使用
C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/bin/ld.exe:无法合并文件 c:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_9-2015q3/bin/../lib/gcc/arm-none-eabi/4.9.3的目标特定数据\libgcc.a (_fixunssfdi.o)
collect2.exe:错误:LD 返回1退出状态
gmake:***[EtherCAT.OUT]错误1
gmake:目标"全部"不会由于错误而重新生成。

我在 GNU Compiler->Runtime 菜单中将浮点硬件设置为 hard。 我是否使用了正确的 CCS 版本? 我收到警告:

说明   资源   路径   位置   类型
此项目是使用当前未安装的编译器版本创建的:GNU_4.8.4:Linaro [ARM]。 编译器的另一个版本将在编译期间使用:GNU_4.9.3:Linaro。 请参阅"帮助">"检查更新"或访问 CCS App Center 以获取最新的编译器。 请参阅"帮助">"安装新软件..." 安装旧版编译器。 或者、通过调整工程属性、将工程迁移到其中一个可用的编译器版本。    EtherCAT      属性   问题

我是否需要降级到 GNU_4.8工具链? 如果是、如何执行此操作(当我尝试它时、抱怨我已经安装了更新的工具链)。

请注意、我正在尝试基于 Beckhoff 从站堆栈工具构建完整的 EtherCAT 应用。 我使用该工具来生成面向 Sitara 的 EtherCAT 应用、但在尝试构建该应用时、我会收到一组链路错误。 因此、我想回到示例、看看我是否可以将其构建。 是否需要特定版本的 SYSBIOS/XDC/Starterware 才能使其正常工作?

感谢您的帮助!

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    EtherCAT 专家已收到通知。 他们将在这里作出回应。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Robert、确实很奇怪、如果我使用 CCS6.2、我会得到与您相同的错误、但如果我使用 CCS6.1.3、它会构建正常。 甚至使用相同的工具和 GNU v4.9.0。

    您可以尝试 CCSv6.1.x、也可以尝试 CCSv7并告诉我们您的结果吗?

    谢谢、
    Paula
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    CCS6.1.3确实起作用。 我已经尝试过 V7和6.1.0、并且看到了相同的结果。 执行图示...
    我将再次尝试使用 Beckhoff 版本、看看情况如何。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我忘记提到我之前收到了一份有关 CCSV7的答复、其中指出:
    PS:请注意、处理器 SDK RTOS 或工业 SDK 尚不支持 CCSv7。 我们将在即将推出的版本中启用此功能。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好、Robert、

    是否计划修复 CCSv6.2中的此错误?

    我的许多 客户正在使用 CCSv6.2进行生产。

    谢谢

    Thomas

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

    大家好、Thomas、我被指出 我们有一个 JIRA

    与此同时、修复方法是更新 GNU 编译器运行时设置中的项目设置、以将-mfpu 标志值指定为'neon"。

    谢谢、

    Paula