ESP8266 Development Kit on Mac Os Yosemite
来源:互联网 发布:那些软件可以赚集分宝 编辑:程序博客网 时间:2024/05/01 20:08
After successful installation of development tools on Windows with Eclipse IDE for ESP8266 and have pretty interesting time with the MQTT project (esp_mqtt), I tried looking for someone who develop ESP8266 applications for Mac, discovered a lot of people do this, but there is no specific guidance. So I was tinkering, and record the steps in a specific way for those who are in need.
First, prepare the necessary tools
Download and install macports, then:
sudo port install git gsed gawk binutils gperf grep gettext py-serial wget libtool autoconf automake
Create a case-sensitive filesystem image and mount it somewhere before cloning and compile esp-sdk
hdiutil create -size 5g -fs "Case-sensitive HFS+" -volname ESPTools ESPTools.sparsebundlehdiutil attach ESPTools.sparsebundlesudo ln -s /Volumes/ESPTools/ /esptoolscd /esptoolsgit clone https://github.com/pfalcon/esp-open-sdk.git --recursivecd esp-open-sdksed -i.bak '1s/^/gettext=\'$'\n/' crosstool-NG/kconfig/Makefilesed -i.bak -e 's/[[:<:]]sed[[:>:]]/gsed/' Makefilesed -i.bak -e 's/[[:<:]]awk[[:>:]]/\$(AWK)/' lx106-hal/src/Makefile.amsed -i.bak 's/AM_PROG_AS/AM_PROG_AS\'$'\nAM_PROG_AR/' lx106-hal/configure.acmake STANDALONE=n
Then:
export PATH=$PATH:/esptools/esp-open-sdk/xtensa-lx106-elf/bin
You need a tool to creation and handling of firmware files suitable for the ESP8266 chip. I am clone here: https://github.com/tommie/esptool-ck but it was an error exists on the Mac, not compiled, the pull request to resolve the error had not been interested. And I have to fork, edit, to be compile
git clone https://github.com/tuanpmt/esptool-ck.gitcd esptool-ckmakechmod +x esptool
At this point, you should be able to compile it, but how to check. Just:
cd /esptoolsgit clone https://github.com/tuanpmt/esp_mqttcd esp_mqttmake -f Makefile.mac
Compile NodeMcu
git clone https://github.com/nodemcu/nodemcu-firmwaremake
Next we will install Eclipse IDE, and configure it.
Download Install java 7: http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
Download Eclipse for Mac OS: https://www.eclipse.org/downloads/?osType=macosx
Install PySerial: http://sourceforge.net/projects/pyserial/
tar xfvz pyserial-2.7.tar.gzcd pyserial-2.7sudo python setup.py install
Eclipse->File->New->Makefile project exist with code
Project properties->Build command: make -f Makefile.mac
Add Make Target all, clean, flash
Reference:
https://github.com/pfalcon/esp-open-sdk/issues/11
- ESP8266 Development Kit on Mac Os Yosemite
- Setup Ruby On Rails on Mac OS X 10.10 Yosemite
- Install and Run Scapy on Mac OS X 10.10 (Yosemite)
- Driver development on Mac OS X (1)
- mac os 10.10 Yosemite 安装
- matlab2014a不支持Mac OS Yosemite
- Mac OS--Yosemite拨打电话
- mac os x yosemite mysql
- Mac OS Yosemite 文件批量重命名
- ios8与mac os x yosemite协同
- Mac OS X Yosemite的JavaSE
- 在mac os yosemite下安装jdk7
- Mac OS X Yosemite安装JAVA小记
- Mac os YOsemite 10.10安装Metasploit
- OS X 10.10 Yosemite Web Development Environment: Part 2
- The development of Mac OS
- mac os升级到OS X Yosemite后修复mysql
- Set up NginX and PHP for development on Mac OS X
- 初学Android,GridView
- python正则表达式-findall
- 美语音标 何为音节
- 梳理各种编码
- Linux netstat命令详解
- ESP8266 Development Kit on Mac Os Yosemite
- ORACLE ORA-01830:日期格式图片在转换整个输入字符串之前结束
- jstl函数库-length函数
- DP入门50题(1) ——poj3176 数塔(详细、适合新手)
- 美语音标 何谓重音
- Softany WinCHM Pro v5 0-LAXiTY
- Objective--C中的NSNumber类
- Webyog SQLyog Ultimate v12 0 8 0 Multilingual Regged-CORE
- SAP自动付款(Automatic payment)