【问题标题】:make[1]: *** [_build/app_error.o] Error 1make[1]: *** [_build/app_error.o] 错误 1
【发布时间】:2015-01-23 06:46:24
【问题描述】:

现在我使用 nrf51-dev 套件,我想要闪烁的代码,在 Keil 中我编译代码并加载到套件中,它工作正常,但现在我想在 eclipse 中制作代码,为此我安装了所有必需的工具,但现在它给我控制台错误是

echo  makefile
makefile
mkdir _build
Compiling file: app_error.c
The system cannot find the path specified.
make[1]: *** [_build/app_error.o] Error 1
make[1]: Leaving directory `D:/Work/NRF/DOC/nRF51_SDK_7.1.0_372d17a/examples/ble_central/ble_app_multilink_central/pca10028/ser_s120_uart/armgcc'
make: *** [all] Error 2

不知道为什么会发生这种情况或任何解决方案。 谢谢

【问题讨论】:

    标签: eclipse makefile nrf51


    【解决方案1】:

    我已经能够在此处重现并解决您的问题。

    1. Keil 和 Eclipse 不使用相同的构建系统,在这种情况下,Eclipse 使用您项目的 Makefile 中定义的工具链 (nRF51_SDK_7.1.0_372d17a/examples/ble_central/ble_app_multilink_central/pca10028/ser_s120_uart/armgcc/生成文件)。这就是为什么您的行为与 Keil(使用内部工具链)不同的原因。

    2. 所以,您项目的 makefile 正在尝试执行以下命令:

      $(CC) $(CFLAGS) $(INC_PATHS) -c -o $@ $

    ...其中 CC 解析为“$(GNU_INSTALL_ROOT)/bin/$(GNU_PREFIX)-gcc”

    ...其中 GNU_INSTALL_ROOT 是您的工具链的位置,您应该自己填写(在 nRF51_SDK_7.1.0_372d17a/components/toolchain/gcc/Makefile.windows 中)。例如

    GNU_INSTALL_ROOT := $(PROGFILES)/GNU Tools ARM Embedded/4.7 2013q1

    1. 您包含的这些日志来自“ser_s120_uart”项目。如果要构建blinky项目,只需将nRF51_SDK_7.1.0_372d17a/examples/peripheral/blinky导入Eclipse即可。

    最后但同样重要的是,不要忘记Nordic community。那里有很多有才华的人:)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-03-27
      • 2014-11-26
      • 1970-01-01
      • 2011-07-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多