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.