"Build ESP8266 development environment under 001:ubuntu--Edit Compile download"

Source: Internet
Author: User

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"

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.