[001: Set up the ESP8266 development environment under ubuntu -- edit, compile, and download], ubuntuesp8266
System Environment: ubuntu 16.04 TLS 64BIT
Editor: Eclipse CDT version
Compiler: xtensa-lx106-elf cross-compilation toolchain
Download tool: esptool. py pyserial
I. Software preparation
1. eclipse: download.Eclipse. Org download CPP version
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
Ii. Installation
1. eclipse
2. xtensa-lx106-elf
/* Unzip tool chain */# sudo tar-vxjf xtensa-lx106-elf.tar.bz2-C/opt // * configure environment variables, add the following content at the end of the file */# sudo gedit/etc/profileexport PATH =/opt/xtensa-lx106-elf/bin: $ PATH/* Save and exit * // * Make the configuration take effect */# sodo source/etc/profile/* enter the following content and press the Tab key */# xtensa/* If the sum is xtensa-lx106-elf-configuration successful */
3. esptool. py
#cd esptool#sudo cp esptool.py /usr/bin
4. pyserial
#cd pyserial-master#sudo python2.7 setup.py install
Iii. Compilation
Download the Esp82766 Official Development Kit eclipse project version
Compile directly
4. Download
/* Download bin */use # ls/dev/tty * to check whether the port number of the current connected device is ttyUSB0 or ttyACM0/* single file download */# sudo python2.7/usr/bin/ esptool. py -- port/dev/ttyUSB0 write_flash0x01000 user1.bin/* multi-File Download */# sudo python2.7/usr/bin/esptool. py -- port/dev/ttyUSB0 write_flash0x01000 user1.bin 0x81000 user2.bin the download percentage information is displayed when the command is successfully executed.