ESP32 build ESP32 development environment under 3.ubuntu14.04 (latest version)

Source: Internet
Author: User
Tags git clone idf

The hardware is a ESP32 integrated module with WiFi and Bluetooth.

1. First ctrl+alt+t Open the terminal,sudo-s choose to log on with root permission .

2. input instructions:sudo apt-get install git make gcc Libncurses5-dev flex Bison gperf python-serial

3. Download file:Xtensa-esp32-elf-linux64-1.22.0-73-ge28a011-5.2.0.tar,

Physical Machine Direct link : https://pan.baidu.com/s/1boYrn6v password : Aub1 After the completion of the file to the Linux virtual machine or with virtual

The direct download of the machine comes with the browser: (be sure to install the latest version, or the subsequent compilation will be wrong, now this is the latest version of this time)

4. CD/ to root directory

mkdir esp32 Create a esp32 folder

5. Move the downloaded compressed file to the new Esp32 folder

CD/ESP32 After returning to the Esp32 folder,

TAR-ZXVF xtensa-esp32-elf-linux64-1.22.0-61-gab8375a-5.2.0.tar.gz Unzip the file

At this point, the build environment is complete.

6. After the download of the compilation environment is complete, you need to download the ESP32 ESP-IDF development conditions in the terminal input

git clone--recursive https://github.com/espressif/esp-idf.git to download the latest development conditions (download time is longer)

The directory structure of the ESP-IDF is as follows:

Components : Core components of ESP-IDF

examples : ESP-IDF provided by the instance program

Make : ESP-IDF Project Management Catalogue

Tools : The toolset provided by ESP-IDF

Docs : ESP-IDF Related Documents

Atthis point, the development conditions and compilation conditions of the ESP32 are completed, but it is still not possible to compile the file, because we do not

To tell Linux its environment variables, in order to avoid each login to the Linux terminal to re-enter the environment variables, we add environment variables in the/HOME/LI/.BASHRC file.

7. Command Window input gedit ~/.BASHRC Open the file and add the environment.

#Esp32

Export Path=/esp32/xtensa-esp32-elf/bin: $PATH

Export IDF_PATH=/ESP32/ESP-IDF

Exit after saving, command box is lost as source ~/.BASHRC

Update environment variables The entire development environment is built.

ESP32 build ESP32 development environment under 3.ubuntu14.04 (latest version)

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.