1.ESP8266_12E(NodeMCU1.0)(AI Thinker)板Arduino IDE环境安装

(1)方法1(自动安装,windows,mac,linux平台都可)
http://arduino.esp8266.com/stable/package_esp8266com_index.json
(2)方法2(手工安装库和工具,mac,linux)
(a)cd hardware
(b)mkdir esp8266com
(c)cd esp8266com
(d)git clone https://github.com/esp8266/Arduino.git esp8266
(e)cd esp8266/tools
(f)python2.7 get.py

2.EESP8266_12E(NodeMCU1.0)(AI Thinker)板micropythons固件写入与使用

(1)安装烧写固件工具:pip install esptool
(2)烧写固件
(a) 下载固件(micropython.org): esp8266-20171101-v1.9.3.bin
(b) 清flash: esptool.py --port /dev/tty.SLAB_USBtoUART erase_flash
(c) 写固件:esptool.py --port /dev/tty.SLAB_USBtoUART --baud 115200 write_flash --flash_size=detect 0 esp8266-20171101-v1.9.3.bin
就有wifi啦!!!是AP, ssid=micropyth-xxx 密码:micropythoN
(d) windows环境:esptool安装到python2\Scripts\目录下,运行 c:\python27\scripts\esptool.py
esptool.py -h
(4)使用工具
(a)rshell(!可双向传送文件,!支持repl, windows,mac,linux平台)
(b)webrepl(!只双向传送文件,!支持windows,mac,linux平台)
(c)putty(!只支持repl,!支持windows,mac,linux平台)

3 ESP32 Arduino安装

(1)方法1(自动安装, windows,mac,linux平台都可):
http://arduino.esp8266.com/stable/package_esp8266com_index.json
(2)方法2(手工安装库和工具)

4 ESP32 micropythons固件写入

(1) 安装烧写固件工具:
pip install esptool
(2) 烧写固件
* 下载固件:esp32-20171204-v1.9.2-445-g84035f0f.bin
* 清flash: esptool.py --port /dev/tty.SLAB_USBtoUART erase_flash
* 写固件:esptool.py --chip esp32 --port /dev/tty.SLAB_USBtoUART write_flash -z 0x1000 /Users/romh/downloads/esp32-20171204-v1.9.2-445-g84035f0f.bin
(3)使用
* rshell(!可双向传送文件,!支持repl,!只mac,linux平台)
* 当前(2017.10) 不支持webrepl

* putty(!只支持repl,!支持windows,mac,linux平台)

5 PYB1.0,PYB1.1固件写入

windows平台用DfuSe_Demo_V3.0.2,略。
linux平台安装如下
install dfu-util
sudo dfu-util --alt 0 -D pybv10-network-20161110-v1.8.6.dfu
写新片micropython固件用ST-link编程器。
有micropython固件后,可以用这个工具升级。
putty or TeraTerm连接使用。

!rshell也可以用。

6 终端调试工具()

(1)rshell(功能强大,!可双向传送文件,!支持repl,windows,mac,linux平台)
(a)安装rshell
sudo pip3 install rshell

https://github.com/dhylands/rshell
(b)使用rshell
帮助
rshell -help
连接ESP目标板
rshell --buffer-size=30 -p /dev/tty.SLAB_USBtoUART

cp somefile.py /flash
repl ~ pyb.bootloader() ~
repl
ctrl_x, ctrl_c
传送二进制文件有问题?
(2)网页webrepl
下载后,点击其中的html文件 !可传送文件,可webrepl命令。
(3)命令行webrepl
下载后,python3下用webrepl_cli.py命令行方式, !只可传送文件。

(4)安装putty(mac安装太多内容,时间长,不建议用。windows平台很小,建议用。!只有repl)
* 安装xcode
* 安装MacPorts
* suod port install putty
https://www.xquartz.org
* cp /opt/local/bin/putty ~/Desktop/PuTTY

微信:h790516
qq :790516
博客:http://www.cnblogs.com/hyper99
微店:嵌入式系统工匠坊 ---http://wd.koudai.com/s/259792644
作者:黄永平(Hyper)
时间:2017年12月7日

microPython环境安装及使用的更多相关文章

  1. 使用专业的消息队列产品rabbitmq之centos7环境安装

      我们在项目开发的时候都不可避免的会有异步化的问题,比较好的解决方案就是使用消息队列,可供选择的队列产品也有很多,比如轻量级的redis, 当然还有重量级的专业产品rabbitmq,rabbitmq ...

  2. Linux下xampp集成环境安装配置方法 、部署bugfree及部署禅道

    XAMPP(Apache+MySQL+PHP+PERL)是一个功能强大的建站集成软件包.XAMPP 是一个易于安装且包含 MySQL.PHP 和 Perl 的 Apache 发行版.XAMPP 的确非 ...

  3. node.js环境安装,及连接mongodb测试

    1.node.js环境安装 npm config set python python2.7npm config set msvs_version 2013npm config set registry ...

  4. 谈谈React Native环境安装中我遇到的坑

    谈谈React Native环境安装 这个坑把我困了好久,真的是接近崩溃的边缘...整理出来分享给大家,希望遇到跟我一样问题的小伙伴能尽快找到答案. 首先,这是在初始化App之后,react-nati ...

  5. Kali Linux渗透测试实战 1.2 环境安装及初始化

    1.2 环境安装及初始化 目录(?)[-] 环境安装及初始化 下载映像 安装虚拟机 安装Kali Linux 安装中文输入法 安装VirtualBox增强工具 配置共享目录和剪贴板 运行 Metasp ...

  6. Linux初学 - Elasticsearch环境安装

    下载 https://www.elastic.co/downloads/elasticsearch 安装 rpm -ivh 也可以双击rpm包安装 修改elastaticsearch host配置 修 ...

  7. Win7下Python2.7环境安装paramiko模块

    Win7下Python2.7环境安装paramiko模块,经过安装并测试成功,整理文档如下: 1.下载安装Windows版本的Python2.7,我默认装在C:\Python27 我的python已经 ...

  8. [ALM]一步一步搭建MS ALM环境 - 安装TFS + SQL SERVER

    描述: 安装SQL SERVER 2012,安装TFS 2013,配置TFS,挽起袖子,准备干活儿 步骤: 1,打开Hyper-V Manager,参考[Hyper-V]使用操作系统模板创建新的虚拟机 ...

  9. Sencha Toucha 2 —1.环境安装配置、在线打包、离线打包

    环境安装配置        1. 下载 1.1     Sencha Touch 下载 http://cdn.sencha.com/touch/sencha-touch-2.2.1-gpl.zip 1 ...

随机推荐

  1. 《SQL必知必会》知识点汇总

    select CustomerNo from dbo.Customers; 通配符的使用 select *from dbo.Customers; select CustomerNo from dbo. ...

  2. 卸载Sharepoint2016后。重新安装提示 系统从以前的安装重新启动,或更新正在等待错误

    卸载Sharepoint2016 重启N遍,不停地重启.需要删除注册表项 下的 .将PendingFileRenameOperations键项删除,再重新安装就可以安装成功.

  3. netstat 常用方法

    netstat简介 netstat是一个监控TCP/IP网络的非常有用的工具,它可以显示路由表,实际的网络连接以及每一个网络接口设备的状态信息,netstat用于显示与IP,TCP,UDP和ICMP协 ...

  4. 推送代码到GitHub上的两种方式

       要想将本地Git上代码提交到GitHub可以使用两种协议进行提交,分别使用HTTPS和SSH两种协议,如下所示. 当使用HTTPS协议时,每次推送的时候都需要输入GitHub平台的用户名密码. ...

  5. 记录windows下编译chromium,备忘

    编译windows下chromium,时间:20170619, 官方地址:https://chromium.googlesource.com/chromium/src/+/master/docs/wi ...

  6. [Codeup 25481] swan

    莫名其妙还找到了另一个铟炔锶烃的OJ : Codeup墓地 25481: swan 时间限制: 1 Sec  内存限制: 128 MB献花: 86  解决: 13[献花][花圈][TK题库] 题目描述 ...

  7. C#关于递归等等

    递归的例子1 计算1到100相加的值 public partial class Default4 : System.Web.UI.Page{    protected void Page_Load(o ...

  8. 页面QQ在线咨询、在线交谈代码

    页面QQ在线咨询.在线交谈代码 样式一: <a target="blank" rel="nofollow" href="tencent://me ...

  9. HDU 1561 The more, The Better(树形dp之树形01背包)

    传送门: http://acm.hdu.edu.cn/showproblem.php?pid=1561 The more, The Better Time Limit: 6000/2000 MS (J ...

  10. nRF5 SDK for Mesh(八) Exploring Mesh APIs using light switch example,使用 灯开关 案例探索BLE mesh 的APIS

    Exploring Mesh APIs using light switch example The light switch example is meant to showcase the API ...