Getting Started with Noduino SDK on Windows
来自Jack's Lab
(版本间的差异)
(→尝试 Noduino SDK) |
(→尝试 Noduino SDK) |
||
(未显示1个用户的26个中间版本) | |||
第1行: | 第1行: | ||
− | == | + | == 硬件准备 == |
− | 准备一块 Noduino Falcon | + | 准备一块 Noduino Falcon V1.0 / Noduino Falcon V2.4 开发板,一根 micro USB 连接线: |
− | [[文件: | + | [[文件:Falcon-v1.0-1000.jpg | 600px]] |
+ | [[文件:Falcon-v2.4-800-wiki.png | 600px]] | ||
− | |||
+ | 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 | 600px]] | [[文件:Nodemcu-win-driver5.jpg | 600px]] | ||
第15行: | 第19行: | ||
<br><br> | <br><br> | ||
− | == | + | == 准备工具 == |
− | + | 先安装必要的工具,以下所有工具镜像:http://pan.baidu.com/s/1pKUn8DH | |
第23行: | 第27行: | ||
* https://git-for-windows.github.io/ | * https://git-for-windows.github.io/ | ||
+ | |||
+ | |||
+ | ;; 安装 mingw32-make (下载后改名 make.exe 放在 /PATH/TO/GIT_For_Win/usr/bin 下即可) | ||
+ | |||
+ | * http://sourceforge.net/projects/mingw/files/MinGW/Extension/make/make-3.82.90-cvs/make-3.82.90-2-mingw32-cvs-20120902-bin.tar.lzma/download | ||
第28行: | 第37行: | ||
* https://www.python.org/ftp/python/2.7/python-2.7.msi | * https://www.python.org/ftp/python/2.7/python-2.7.msi | ||
+ | |||
+ | 安装在 C:\Python27 | ||
+ | |||
+ | |||
+ | 完了运行 git for windows,修改 /etc/bash.bashrc,加入 python 路径: | ||
+ | |||
+ | export PATH=/c/python27/:$PATH | ||
+ | |||
+ | 保存退出 | ||
+ | |||
+ | |||
+ | ;;安装必须的 pyserial: | ||
+ | |||
+ | <source lang=bash> | ||
+ | $ git clone git://github.com/pyserial/pyserial.git | ||
+ | $ cd pyserial | ||
+ | $ python setup.py install | ||
+ | </source> | ||
+ | |||
+ | |||
+ | 到此 windows 设置全部完成 | ||
<br><br> | <br><br> | ||
第35行: | 第65行: | ||
<source lang=bash> | <source lang=bash> | ||
# clone the whole sdk | # clone the whole sdk | ||
− | $ git clone --recursive git://github.com/ | + | $ git clone --recursive git://github.com/noduino/noduino-sdk.git noduino-sdk |
# fetch the toolchain of esp8266 | # fetch the toolchain of esp8266 | ||
− | $ cd noduino-sdk/toolchain | + | $ cd noduino-sdk/toolchain |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
$ ./gen.py # generate the toolchain (you need Python 2.7) | $ ./gen.py # generate the toolchain (you need Python 2.7) | ||
</source> | </source> | ||
第51行: | 第77行: | ||
# try the first example | # try the first example | ||
$ cd ../example/noduino/blink | $ cd ../example/noduino/blink | ||
+ | </source> | ||
+ | |||
+ | 编译、刷写: | ||
+ | |||
+ | <source lang=bash> | ||
# 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> | ||
第76行: | 第114行: | ||
− | ;; | + | ;;更多问题参考: |
− | * [[ | + | * [[Noduino]] |
2018年4月23日 (一) 20:20的最后版本
目录 |
[编辑] 1 硬件准备
准备一块 Noduino Falcon V1.0 / Noduino Falcon V2.4 开发板,一根 micro USB 连接线:
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:
[编辑] 2 准备工具
先安装必要的工具,以下所有工具镜像:http://pan.baidu.com/s/1pKUn8DH
- 安装 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/noduino/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/noduino/blink
编译、刷写:
# upload the example to dev board through serial $ make flash
不同平台下,你的串口设备号可能不一样,确认一下你的串口设备,比如在 Windows 下 Falcon 开发板可能被识别为 COM7(设备管理器里查看),则:
$ make flash ESPPORT=COM7
上传完之后,你会很快看到板子靠近 USB 口的 LED 开始在慢闪(大概 2s 间隔)
[编辑] 4 扩展阅读
产品级开发建议使用我们的专业 SDK:
- Getting Started with Noduino SDK on Linux
- Getting Started with Noduino SDK on Mac OS X
- Getting Started with Noduino SDK on Windows
学习、研究、创客可以尝试:
- Getting Started with Noduino on Linux
- Getting Started with Noduino on Mac OS X
- Getting Started with Noduino on Windows
- 更多问题参考: