从Contiki编译示例时出错

时间:2016-07-11 12:04:20

标签: contiki

当我在Contiki上运行此命令时

sudo make TARGET=srf06-cc26xx BOARD=sensortag/cc2650 cc26xx-demo.bin CPU_FAMILY=cc26xx  

它返回以下错误:

  

CC ../../platform/srf06-cc26xx/./contiki-main.c make:arm-none-eabi-gcc:找不到命令make:*** [obj_srf06-cc26xx / contiki-main。 o]错误127

2 个答案:

答案 0 :(得分:2)

要运行make,如果您的contiki repo位于具有用户所有权限的目录中,那么您不需要将其作为sudo运行。 要安装arm-none-eabi-gcc软件包,请运行:

    sudo apt-get install arm-none-eabi-gcc

安装完成后,您可以查看已安装的版本:

    arm-none-eabi-gcc --version

并且您的输出应该类似于此(这适用于Ubuntu 16.04):

    arm-none-eabi-gcc (15:4.9.3+svn231177-1) 4.9.3 20150529 (prerelease)
Copyright (C) 2014 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions.
    There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

我希望它有所帮助!

Br,弗吉尼亚

答案 1 :(得分:1)

阅读目标平台的srf06-cc26xx自述文件:https://github.com/contiki-os/contiki/tree/master/platform/srf06-cc26xx

首先,您需要从https://launchpad.net/gcc-arm-embedded

安装GNU ARM嵌入式工具链

如果已安装,请确保arm-none-eabi-gcc环境变量中包含PATH

您还需要来自http://srecord.sourceforge.netsrecord个应用程序(对于Linux,可通过srecord提供apt-get个包)。

相关问题