Under Linux, use Eclipse to open the ESP32 project file and compile the download.

Source: Internet
Author: User
Tags idf

In the previous article, I have already talked about downloading ESP-IDF using Linux's own tools, but in order to develop the system, we use eclipse to compile the IDF as a whole.

First of all

Cd/esp32

Run Eclipse and select workspace under/home/li/esp32/workspace/hello_world

Using directives

cd/esp32/esp-idf/examples/get-started/hello_world/ and Instructions Cp-r Hello_world/home/li/esp32/workspace/hello_world
and through the instructions
Chmod-r 777/home/li/esp32/
Get folder read-Write and execute rights

Copy the project files that you need to use for this item to workspace, and then

Create a New->cproject

Click Finish to see the built project in eclipse

The project's properties (proterties) need to be modified before compiling

Add related environment variables

For a path, you can use the Echo directive to query, as shown below

Add Compiler Path

In the first instruction we will download the compiler to the Esp32 folder by instruction, so we can add path directly to the path.

Add a file path that contains the same method as under Windows

Add User directives

Open with Shortcut key shift+f9

First

In build flash it is possible (build flash if reality no premission ... open/dev/ttyusb0 is because your current user group does not have permission to ttyUSB0, by instruction sudo usermod-ag Dialout Li (where Li is the user's name) will be able to obtain the relevant USB access rights permanently. )

The results of the compilation are as follows

You can see that the compilation efficiency under Linux is much higher than the windows

Under Linux, use Eclipse to open the ESP32 project file and compile the download.

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.