Getting Started with Noduino SDK on Windows

来自Jack's Lab
(版本间的差异)
跳转到: 导航, 搜索
(概述)
(尝试 Noduino SDK)
第35行: 第35行:
 
<source lang=bash>
 
<source lang=bash>
 
# clone the whole sdk
 
# clone the whole sdk
$ git clone git://github.com/icamgo/noduino-sdk.git noduino-sdk
+
$ git clone --recursive git://github.com/icamgo/noduino-sdk.git noduino-sdk
  
 
# fetch the toolchain of esp8266
 
# fetch the toolchain of esp8266
$ cd noduino-sdk
+
$ cd noduino-sdk/toolchain/dist
$ git submodule init
+
$ git submodule update
+
$ cd toolchain/dist
+
  
 
$ wget http://noduino.org/toolchain/win32-xtensa-lx106-elf-gb404fb9-2.tar.gz
 
$ wget http://noduino.org/toolchain/win32-xtensa-lx106-elf-gb404fb9-2.tar.gz
第53行: 第50行:
 
<source lang=bash>
 
<source lang=bash>
 
# try the first example
 
# try the first example
$ cd ../example/noduino/blink
+
$ cd ../../example/noduino/blink
  
 
# upload the example to dev board through serial
 
# upload the example to dev board through serial

2015年12月7日 (一) 23:58的版本

目录

1 准备

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

Nodemcu-v1.0-board.jpg


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


安装完成后,系统会发现开发板的串口端口为 COM6:

Nodemcu-win-driver5.jpg



2 准备

先安装必要的工具


安装 Git for windows


安装 python 2.7



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/dist

$ wget http://noduino.org/toolchain/win32-xtensa-lx106-elf-gb404fb9-2.tar.gz

$ cd ..
$ ./gen.py        # generate the toolchain (you need Python 2.7)

尝试点灯的例子

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

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

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



4 扩展阅读

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


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


ESP8266 的各种问题参考:






















个人工具
名字空间

变换
操作
导航
工具箱