这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
cc2650:development_environment_set_up [2017/09/01 12:39] long |
cc2650:development_environment_set_up [2021/06/22 23:14] (当前版本) |
||
---|---|---|---|
行 1: | 行 1: | ||
< | < | ||
- | # CC2650 Contiki 开发环境搭建 | + | # CC2650 Contiki 开发环境搭建 |
对于Contiki 6Lowpan所有开发资源,我们建议直接从[官方](http:// | 对于Contiki 6Lowpan所有开发资源,我们建议直接从[官方](http:// | ||
- | * [Contiki ](http:// | ||
- | * [Contiki-GitHub](https:// | ||
- | ## 下载安装 ## | + | - [Contiki ](http:// |
+ | - [Contiki-GitHub](https:// | ||
+ | |||
+ | ## 下载安装 | ||
+ | |||
+ | ### 下载Instant Contiki | ||
- | ### 下载Instant Contiki ### | ||
**Instant Contiki**是VMware的虚拟机镜像文件,Contiki已经部署好所有6LowPan交叉编译、仿真环境,同时打包好工具、源码到这个**Instant Contiki**镜像文件。所以我们只需要下载后解压,并且尝试VMware虚拟机软件打开。 | **Instant Contiki**是VMware的虚拟机镜像文件,Contiki已经部署好所有6LowPan交叉编译、仿真环境,同时打包好工具、源码到这个**Instant Contiki**镜像文件。所以我们只需要下载后解压,并且尝试VMware虚拟机软件打开。 | ||
行 15: | 行 17: | ||
![](http:// | ![](http:// | ||
- | > | + | > **注意**:解压路径不要包含空格、中文等字符。 |
+ | |||
+ | ### 安装 VMWare 虚拟机 | ||
- | ### 安装 VMWare 虚拟机 ### | ||
对于虚拟机,为了不必要麻烦,建议同我们版本保持一致。直接双击安装`VMware-workstation-full-12.1.0-3272444.exe` | 对于虚拟机,为了不必要麻烦,建议同我们版本保持一致。直接双击安装`VMware-workstation-full-12.1.0-3272444.exe` | ||
![](http:// | ![](http:// | ||
行 27: | 行 30: | ||
成功启动Ubuntu后,我们需要在此界面输入密码:`user` | 成功启动Ubuntu后,我们需要在此界面输入密码:`user` | ||
![](http:// | ![](http:// | ||
- | > | + | |
+ | > **提示**: | ||
成功进入桌面后,我们首先确定网络连接状态。确定其正常桥接了Windows的网络适配器,并且成功分配IP,并且能够正常访问Internet。 | 成功进入桌面后,我们首先确定网络连接状态。确定其正常桥接了Windows的网络适配器,并且成功分配IP,并且能够正常访问Internet。 | ||
行 35: | 行 39: | ||
![](http:// | ![](http:// | ||
正常访问连接后,我们打开桌面`Terminal`, | 正常访问连接后,我们打开桌面`Terminal`, | ||
+ | |||
```shell | ```shell | ||
cd / | cd / | ||
ls -al | ls -al | ||
``` | ``` | ||
+ | |||
![](http:// | ![](http:// | ||
Contiki源码通过Git进行版本管理,Clone远程地址https:// | Contiki源码通过Git进行版本管理,Clone远程地址https:// | ||
+ | |||
```shell | ```shell | ||
git submodule sync && git submodule update --init | git submodule sync && git submodule update --init | ||
``` | ``` | ||
+ | |||
这里我们尝试编译进入到`contiki/ | 这里我们尝试编译进入到`contiki/ | ||
行 50: | 行 58: | ||
make TARGET=srf06-cc26xx BOARD=launchpad/ | make TARGET=srf06-cc26xx BOARD=launchpad/ | ||
``` | ``` | ||
+ | |||
成功编译后,在我们当前目录会生成一个*.bin, | 成功编译后,在我们当前目录会生成一个*.bin, | ||
![](http:// | ![](http:// | ||
行 55: | 行 64: | ||
接下来,我们讨论如何将bin拷贝到Windows进行下载。 | 接下来,我们讨论如何将bin拷贝到Windows进行下载。 | ||
- | ### 安装SSH工具 | + | ### 安装SSH工具 |
SSH 是一个扩平台的远程登录会话协议,利用它,我们可以轻松实现在Windows上面访问Ubuntu虚拟机,同时轻松实现、Terminal远程连接。文件共享 | SSH 是一个扩平台的远程登录会话协议,利用它,我们可以轻松实现在Windows上面访问Ubuntu虚拟机,同时轻松实现、Terminal远程连接。文件共享 | ||
在虚拟机上面,我们直接安装SSH服务端,在线更新,确保网络连接。 | 在虚拟机上面,我们直接安装SSH服务端,在线更新,确保网络连接。 | ||
+ | |||
``` | ``` | ||
sudo apt-get install openssh-server | sudo apt-get install openssh-server | ||
# | # | ||
``` | ``` | ||
+ | |||
Windows安装 | Windows安装 | ||
![](http:// | ![](http:// | ||
- | > | + | > **注意**:这里端口号固定为22,IP地址是我们虚拟机桥接Windows分配的IP地址。 |
成功配置后,我们点击连接,同时需要输入我们`Usert`用的密码`user`。 | 成功配置后,我们点击连接,同时需要输入我们`Usert`用的密码`user`。 | ||
行 73: | 行 85: | ||
我们直接通 | 我们直接通 | ||
![](http:// | ![](http:// | ||
- | ### FlashProgrammer2 | + | |
+ | ### FlashProgrammer2 | ||
Flash Flash Programmer 2 是一款Windows离线编程工具,利用它我们可以将虚拟机编译的的*.bin直接烧写到我们CC2650 Flash固化。 | Flash Flash Programmer 2 是一款Windows离线编程工具,利用它我们可以将虚拟机编译的的*.bin直接烧写到我们CC2650 Flash固化。 | ||
- | ### Troubleshooting | + | ## Troubleshooting |
- | #### Coojia 编译失败 | + | |
+ | ### Coojia 编译失败 | ||
![Coojia 编译失败](http:// | ![Coojia 编译失败](http:// | ||
+ | |||
``` | ``` | ||
BUILD FAILED | BUILD FAILED | ||
行 96: | 行 112: | ||
``` | ``` | ||
+ | ### CC26x0 编译错误, | ||
- | #### CC26x0 编译错误, | ||
``` | ``` | ||
user@instant-contiki: | user@instant-contiki: | ||
行 109: | 行 125: | ||
更新最新的cc26xxware软件。 | 更新最新的cc26xxware软件。 | ||
+ | |||
``` | ``` | ||
# 确保使用最新的 cc26xxware | # 确保使用最新的 cc26xxware | ||
行 114: | 行 131: | ||
``` | ``` | ||
- | ## 加入我们 | + | ## 加入我们 |
文章所有代码、工具、文档开源。加入我们[**QQ群 591679055**](http:// | 文章所有代码、工具、文档开源。加入我们[**QQ群 591679055**](http:// | ||
+ | |||
<div> | <div> | ||
<p align=" | <p align=" | ||
行 122: | 行 141: | ||
</p> | </p> | ||
</ | </ | ||
- | </ | ||
+ | </ |