System environment: Ubuntu 16.04 TLS 64BIT
Editor: Eclipse CDT version
Compiler: Xtensa-lx106-elf cross-compilation Toolchain
Download tool: esptool.py pyserial
First, software preparation
1.eclipse:download. eclipse. org Download CPP version
2.xtensa-lx106-elf:google or Baidu
3.esptool.py:https://github.com/themadinventor/esptool (or search in GitHub)
4.pyserial:https://github.com/pyserial/pyserial
Second, installation
1.eclipse slightly
2.xtensa-lx106-elf
/*Unzip tool chain*/#sudo Tar-VXJF xtensa-lx106-elf.tar.bz2-c/opt//*Configure environment variables, add the following to the end of the file*/#sudo gedit/etc/Profileexport PATH=/opt/xtensa-lx106-elf/Bin: $PATH/*Save Exit*//*make configuration effective*/#sodo Source/etc/ Profile/*enter the following and press the TAB key*/#xtensa/*If the completion is xtensa-lx106-elf-, the configuration is successful .*/
3.esptool.py
/usr/bin
4.pyserial
#cd pyserial-master#sudo python2. 7 setup.py Install
Third, compile
Download Esp82766 Official Development Kit Eclipse Project version
Direct compilation can
Four, download
/*Download Bin*/Use #ls/dev/tty*View the port number of the current connected device is generally ttyUSB0 or ttyACM0/*Single File Download*/#sudo Python2.7/usr/bin/esptool.py--port/dev/ttyUSB0 Write_flash0x01000User1.bin/*multi-File Download*/#sudo Python2.7/usr/bin/esptool.py--port/dev/ttyUSB0 Write_flash0x01000User1.bin0x81000user2.bin command execution succeeds download percent information appears
"Build ESP8266 development environment under 001:ubuntu--Edit Compile download"