[001: Set up the ESP8266 development environment under ubuntu -- edit, compile, and download], ubuntuesp8266

Source: Internet
Author: User

[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.

 

  

   

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.