Getting Started with Noduino SDK on Windows

来自Jack's Lab
(版本间的差异)
跳转到: 导航, 搜索
(准备)
(尝试 Noduino SDK)
第82行: 第82行:
 
# upload the example to dev board through serial
 
# upload the example to dev board through serial
 
$ make flash
 
$ make flash
 +
</source>
 +
 +
 +
不同平台下,你的串口设备号可能不一样,确认一下你的串口设备,比如在 Windows 下 Falcon 开发板可能被识别为 COM7(设备管理器里查看),则:
 +
 +
<source lang=bash>
 +
$ make flash ESPPORT=COM7
 
</source>
 
</source>
  

2016年7月24日 (日) 13:20的版本

目录

1 准备

准备一块 Noduino Falcon V1.0 / Noduino Falcon V2.4 / nodemcu v1.0 开发板,一根 micro USB 连接线:

Falcon-v1.0-1000.jpg

Falcon-v2.4-800.jpg

Nodemcu-v1.0-board.jpg


Noduino Falcon V1.0 开发板使用 FT232RL USB 转串口,在多数新的 Windows 系统下无需驱动,老的系统可到 FTDI 官网下载驱动

Noduino Falcon V2.4 开发板使用 CP2102 USB 转串口,到芯片厂家官网下载 Windows 版的驱动:http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx


插上USB,系统发现开发板的串口端口为 COM6:

Nodemcu-win-driver5.jpg



2 准备

先安装必要的工具,以下所有工具 weibo vdisk 镜像:http://vdisk.weibo.com/s/DpizFJfhhbeXv


安装 Git for windows


安装 mingw32-make (下载后改名 make.exe 放在 /PATH/TO/GIT_For_Win/usr/bin 下即可)


安装 python 2.7

安装在 C:\Python27


完了运行 git for windows,修改 /etc/bash.bashrc,加入 python 路径:

 export PATH=/c/python27/:$PATH

保存退出


安装必须的 pyserial
$ git clone git://github.com/pyserial/pyserial.git
$ cd pyserial
$ python setup.py install


到此 windows 设置全部完成



3 尝试 Noduino SDK

# clone the whole sdk
$ git clone --recursive git://github.com/icamgo/noduino-sdk.git noduino-sdk

# fetch the toolchain of esp8266
$ cd noduino-sdk/toolchain
$ ./gen.py        # generate the toolchain (you need Python 2.7)

尝试点灯的例子

# try the first example
$ cd ../example/blink

# upload the example to dev board through serial
$ make flash


不同平台下,你的串口设备号可能不一样,确认一下你的串口设备,比如在 Windows 下 Falcon 开发板可能被识别为 COM7(设备管理器里查看),则:

$ make flash ESPPORT=COM7

上传完之后,你会很快看到板子靠近 USB 口的 LED 开始在慢闪(大概 2s 间隔)



4 扩展阅读

产品级开发建议使用我们的专业 SDK:


学习、研究、创客可以尝试:


ESP8266 的各种问题参考:






















个人工具
名字空间

变换
操作
导航
工具箱