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.

[参考译文] LAUNCHXL-CC1310:gmake can't create .elf file

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/1364960/launchxl-cc1310-gmake-can-t-create-elf-file

器件型号:LAUNCHXL-CC1310
主题中讨论的其他器件:CC1310

大家好!

我正在尝试使用 Code Composer Studio 构建 Contiki-NG 的"RPL 边界路由器"示例。 我仔细地遵循了这些步骤,但不管我做什么,**. elf 文件似乎不会生成,我总是得到消息:

gmake: *** No rule to make target 'border-router.elf'.

以下是我采取的步骤:

  1. 克隆 Contiki-NG 存储库和初始化的子模块:

    git clone github.com/.../contiki-ng.git cd contiki-ng git submodule update --init --recursive

  2. 使用 GNU 编译器和 "rpl-border-router" 示例创建了一个带有正确目标器件(CC1310)的新 CCS 工程。

  3. 在项目中添加了 Contiki 源路径作为链接文件夹。

  4. 调整了 PATH 环境变量以包括到 Git 和 ARM GCC 工具链的路径:

    C:\Program Files\Git\bin;C:\Program Files\Git\usr\bin;C:\ti\ccs1260\ccs\tools\compiler\gcc-arm-none-eabi-9-2019-q4-major\bin;C:/ti/ccs1260/ccs/eclipse/jre/bin/server;C:/ti/ccs1260/ccs/eclipse/jre/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Arm GNU Toolchain arm-none-eabi\13.2 Rel1\bin;C:\Program Files (x86)\Arm GNU Toolchain arm-none-linux-gnueabihf\13.2 Rel1\bin;C:\Users\ahmedalhloul\AppData\Local\Programs\Python\Launcher\;C:\Users\ahmedalhloul\AppData\Local\Microsoft\WindowsApps;C:\Users\ahmedalhloul\AppData\Local\Programs\Microsoft VS Code\bin;C:\ti\ccs1260\ccs\eclipse

  5. CCS 中配置的编译器设置不自动生成 Makefile、并将编译目录设置为示例的源目录:

    ${CONTIKI_ROOT}/examples/rpl-border-router

  6. 在 CCS 中将构建目标设置为:

    • 增量构建:border-router.elf
    • 清洁: clean

  7. 已验证工程目录中的 Makefile:

    CONTIKI_PROJECT = border-router TARGET = simplelink BOARD = launchpad/cc1310 CFLAGS += -g all: $(CONTIKI_PROJECT) CONTIKI = ../.. PLATFORMS_EXCLUDE = z1 include $(CONTIKI)/Makefile.dir-variables MODULES += $(CONTIKI_NG_SERVICES_DIR)/rpl-border-router MODULES_REL += webserver include $(CONTIKI)/Makefile.include

尽管执行了这些步骤、我仍会遇到错误消息。 我怀疑 Makefile 配置或 CCS 处理编译过程的方式可能存在问题。

非常感谢为解决此问题提供任何帮助或指导。

谢谢!