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)