contiki + eclipse在Windows上 [英] contiki + eclipse on windows

查看:206
本文介绍了contiki + eclipse在Windows上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使contiki工作在一个cc2650,因为我有点不愿意使用命令行来做所有的事情,我不想在我的电脑上安装一个新的操作系统,我想在Windows上使用eclipse IDE来执行此操作。

I'm trying to make contiki working on a cc2650, since I a little bit reluctant to the idea of using command line to do everything and I don't want to install a new operating system on my pc, I would like to use eclipse IDE on windows to do so.

有人知道是否可行?
Davide。

Do anybody know if it is possible? Davide.

推荐答案

最后我做到了。
这不是很难。我发布这里的步骤我遵循,如果别人,只有很少的工具链技能必须这样做,可以使用我的经验,并避免扔掉一天的工作。

Finally I made it work. It was not very difficult. I post here steps I follow so if somebody else, with just few toolchain skills has to do this, can use my experience and avoid to throw away a day of work.

首先要做的事情(显然)是为C / C ++开发人员下载Eclipse,如果像我一样,已经在使用TI CodeComposerStudio来编程TI设备,那么它应该可以工作(我已经测试过了),而没有任何修改。

First thing to do (obviously) is to download Eclipse for C/C++ developer, if you, like me, are already using TI CodeComposerStudio to program TI devices it should work (I've tested) without any modifications.

然后你需要:make,gcc,gdb,g ++。对于此下载cygwin(在google中搜索),运行安装程序并选择这些软件包:

Then you need: make, gcc, gdb, g++. For this download cygwin (search it in google), run the installer and select these packages:


  • gcc-core

  • gcc-g ++

  • gdb

  • make

  • gcc-core
  • gcc-g++
  • gdb
  • make

继续安装。
将cygwin\bin文件夹添加到Windows中的PATH环境变量

Go on and install them. Add cygwin\bin folder to PATH in windows Environment variables

在此打开cygwin终端后,导航到要用于contiki的目录,然后键入:

After this open cygwin terminal, navigate to the directory you want to use for contiki and type:

git clone --recursive https://github.com/contiki-os/contiki

这将会下载contiki来源。记住,使用cygwin终端,您无法在cygwin安装文件夹外导航,所以contiki源将驻留在cygwin文件夹中。
现在完成了!
您只需要打开Eclipse,File-> import-> C / C ++ - > ExistingCode作为Makefile项目,从contiki / examples中选择一个示例并将其导入(记住选择Cygwin GCC)。

This will download contiki sources. Remember that, with cygwin terminal you can not navigate outside cygwin installation folder, so contiki sources will reside inside cygwin folder. Now it's done! You only need to open Eclipse, File->import->C/C++->ExistingCode as Makefile project, select an example from contiki/examples and import it (remember to select Cygwin GCC).

要为您的目标修改make命令:项目属性 - > C / C ++构建,取消选中使用默认构建命令并编写命令,在我的情况下,我正在使用TI sensorTag我使用:

To modify make command for your target: project properties->C/C++ Build, uncheck 'Use default build command' and write your command, in my case I'm working with TI sensorTag so I use:

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

实际上,我在这些步骤后收到错误。这是与.hex文件的创建有关(至少我认为),所以如果你只需要.bin,你可以丢弃该错误。但是如果要从控制台取消,只需从此处下载SRecord,并将可执行文件放在cygwin\bin(这样你就不必在环境变量中添加另一个文件夹到PATH。)

Actually I get an error after these steps. It was something related to the creation of .hex file (at least I think) so if you need only the .bin you can discard that error. But if you want to cancel it from console simply download SRecord from here and put executable files inside cygwin\bin (in this way you don't have to add another folder to PATH in Environment variables).

通过这些步骤,您可以轻松编译contiki,因为您不能上传二进制到目标,因为你必须使用其他工具。在我的情况下,我使用TI的Flash程序员2,这完全正常。

With these steps you can easily compile contiki, as said you can not upload binary to the target, for that you have to use other tools. In my case I use Flash Programmer 2 from TI which perfectly works as it is.

这篇关于contiki + eclipse在Windows上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆