Skip to content

Commit e00ee9e

Browse files
Update docs
1 parent 3bd4692 commit e00ee9e

20 files changed

+262
-70
lines changed

docs/en/additionalfeatures.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ Additional IDE Features
33
.. toctree::
44
:maxdepth: 1
55

6+
LSP C/C++ Editor<additionalfeatures/lspeditor>
7+
CMake Editor<additionalfeatures/cmakeeditor>
68
ESP-IDF Application Size Analysis<additionalfeatures/application-size-analysis>
79
ESP-IDF Terminal<additionalfeatures/esp-terminal>
810
Install ESP-IDF Components<additionalfeatures/install-esp-components>
9-
LSP C/C++ Editor<additionalfeatures/lspeditor>
10-
CMake Editor<additionalfeatures/cmakeeditor>
1111
Heap Tracing<additionalfeatures/heaptracing>
12-
ESP-IDF OpenOCD Debugging<additionalfeatures/openocddebugging>
12+
ESP-IDF OpenOCD Debugging<openocddebugging>
1313
GDB Stub Debugging<additionalfeatures/gdbstubdebugging>
1414
Core Dump Debugging<additionalfeatures/coredumpdebugging>
1515
Application Level Tracing<additionalfeatures/appleveltracing>
@@ -18,6 +18,6 @@ Additional IDE Features
1818
Write Binary to Flash<additionalfeatures/writebinarytoflash>
1919
DFU Flashing<additionalfeatures/dfu>
2020
Wokwi Simulator<additionalfeatures/wokwisimulator>
21-
Switching Language<additionalfeatures/switchlanguage>
21+
Switch Between Languages<additionalfeatures/switchlanguage>
2222
Configure CDT Build Environment Variables<additionalfeatures/configureenvvariables>
2323
Configuring Clang Toolchain<additionalfeatures/clangtoolchain>

docs/en/additionalfeatures/install-esp-components.rst

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
Install ESP-IDF Components
22
===============================
3-
You can install the ESP-IDF Components directly into your project from the available components online. Follow the steps below:
4-
5-
- Right-click on the project in ``Project Explorer`` where you want to add the component, and select ``Install ESP-IDF Components``.
6-
7-
.. image:: ../../../media/ESP-IDF_Components/install_components.png
8-
:alt: Install ESP-IDF Components
9-
10-
A new window will open, displaying all available components to be installed.
3+
You can install the ESP-IDF Components directly into your project from the available components from the `ESP-IDF Component Registry <https://components.espressif.com/>`_. Follow the steps below:
114

5+
- Right-click on the project in ``Project Explorer`` where you want to add the component, and select ``ESP-IDF > Install ESP-IDF Components``.
6+
- A new window will open, displaying all available components to be installed.
127
- In the window, you can click on the ``Install`` button to add the selected component to the project. To access the README file for a component, click ``More Info``, which opens the README in your browser.
138

149
.. image:: ../../../media/ESP-IDF_Components/components_window.png

docs/en/additionalfeatures/switchlanguage.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Switching Language in Espressif IDE
1+
Switch Between Languages in Espressif IDE
22
=======================================
3-
To change the plugin language, a menu is provided to show the list of available languages for the plugin.
3+
Espressif IDE supports English and Chinese languages. You can switch between these languages using the following steps:
44

55
1. Click on the ``Espressif`` menu from the menu bar.
66
2. Select ``Change Language`` from the drop-down menu.

docs/en/buildproject.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ Build the Project
66
:align: middle
77

88

9-
Once you have created a project and configured the esp target and serial port, you can build the project by following the steps below:
9+
Once you have created a project and configured the esp target and serial port, you can build the project by clicking on |build_icon| in the toolbar.
10+
11+
However, below steps will guide you through the process of building the project if you are new to the IDE:
1012

1113
1. Select a project from the ``Project Explorer``.
1214
2. Select ``Run`` from the first dropdown, which is called ``Launch Mode``.

docs/en/configureproject.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ Configure Your Project
33

44
Project configuration is stored in a single file called ``sdkconfig`` located in the root directory of the project. This configuration file can be modified using the ``SDK Configuration Editor``.
55

6+
.. note::
7+
sdkconfig file is generated only after the build. Hence, it is recommended to build the project once before configuring the project.
8+
69
To launch the SDK Configuration Editor:
710

811
#. Navigate to the ``sdkconfig`` file.

docs/en/connectdevice.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
11
Connect Your Device
22
===============================
3-
Next, you should select the ESP target for your project and serial port of your device. By default, the launch target dropdown will display all the supported targets provided by the plugin.
3+
Next, select the ESP target for your project (ignore this step if it was already set during project creation) and the serial port of your device by clicking on the gear icon. By default, the launch target dropdown will display all the supported targets provided by the plugin.
44

55
.. image:: https://github.com/espressif/idf-eclipse-plugin/assets/8463287/8d85c547-5cd3-4c10-8ca2-9bb5d69b4bce
66

7-
However, if you would like to add a target that is not available in the launch target dropdown, please follow the instructions below:
7+
Clicking on the gear icon will open the launch configuration dialog. Here, you can select the serial port for your device.
8+
9+
.. image:: ../../media/8_launch_target.png
10+
11+
Custom Target
12+
----------------
13+
If you need to add a target that is not available in the launch target dropdown, please follow the instructions below:
814

915
1. Click on the launch target dropdown.
1016
2. Select ``New Launch Target``.
1117
3. Select ``ESP Target``.
1218
4. Provide properties for the target where you would like to launch the application. Enter a ``Name`` for the target and select the ``Serial Port`` to which your ESP device is connected on your machine.
1319

14-
.. image:: ../../media/8_launch_target.png
20+

docs/en/debugproject.rst

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Debug Your Project
22
===============================
3+
4+
.. |debug_icon| image:: ../../media/icons/debug.png
5+
:height: 16px
6+
:align: middle
7+
38
In most cases, only two things are required to start debugging an ESP-IDF project:
49

510
1. Create a debug configuration
@@ -8,9 +13,18 @@ In most cases, only two things are required to start debugging an ESP-IDF projec
813
.. note::
914
If you're using Windows, you may need to install drivers using Zadig to run a debug session successfully. For detailed instructions, please refer to this `guide <https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/jtag-debugging/configure-ft2232h-jtag.html#configure-usb-drivers>`_.
1015

11-
The fastest way to create a debug configuration is to expand the configuration list in the launch bar and click `New Launch Configuration...`. Then select `ESP-IDF GDB OpenOCD Debugging` -> Double Click or `Next`. After that, the preview for the new debug configuration will open where it's necessary to check the board.
16+
The fastest way to create a debug configuration is as follows:
17+
18+
1. Expand the configuration list in the launch bar and click on `New Launch Configuration...`.
19+
2. Select `ESP-IDF GDB OpenOCD Debugging`, then double-click or click `Next`.
20+
3. A preview of the new debug configuration will open, where you should check the board settings.
21+
22+
After creating the debug configuration, you can proceed with debugging the project:
23+
24+
1. Select the configuration you just created.
25+
2. Choose debug mode.
26+
3. Click on the "Debug" icon |debug_icon| to start debugging.
1227

13-
After creating the debug configuration, you can go ahead and debug the project. Select the configuration you just created, select debug mode, and click on the "Debug" icon ![](docs_readme/images/icons/debug.png) to start debugging:
1428

1529
.. image:: https://github.com/espressif/idf-eclipse-plugin/assets/24419842/1fb0fb9b-a02a-4ed1-bdba-b4b4d36d100f
1630
:alt: Debugging process

docs/en/faqs.rst

Lines changed: 153 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,153 @@
1-
FAQs
2-
===============================
1+
FAQ
2+
====
3+
4+
How do I know the installed version of Java in my system?
5+
----------------------------------------------------------
6+
You can check using `java -version` command from the terminal.
7+
8+
How to check the Java version used by Eclipse?
9+
----------------------------------------------
10+
- `Help > About Eclipse > Installation Details > Configuration`
11+
- Look for `-vm` argument.
12+
13+
How to increase the heap memory for Java while working Eclipse IDE?
14+
--------------------------------------------------------------------
15+
- Locate the eclipse.ini or espressif-ide.ini
16+
- Increase the Xmx value under the `-vmargs` args section. For example, you can set to `-Xmx2048m`.
17+
18+
What are the operating systems the plugin supports?
19+
----------------------------------------------------
20+
- Windows
21+
- macOSX
22+
- Linux
23+
24+
How do I provide Eclipse environment and plugins information?
25+
-------------------------------------------------------------
26+
`Help > About Eclipse > Installation Details > Configuration > Copy to Clipboard`
27+
28+
How do I know the installed IDF Eclipse Plugins version?
29+
---------------------------------------------------------
30+
- You can check using the menu `Eclipse > About Eclipse > Installation Details > Installed Software`
31+
- Search for `Espressif`.
32+
33+
How do I uninstall IDF Eclipse Plugins from the Eclipse?
34+
---------------------------------------------------------
35+
- `Eclipse > About Eclipse > Installation Details > Installed Software`
36+
- Search for `Espressif`.
37+
- Select the Espressif IDF Feature
38+
- `Uninstall..`.
39+
40+
Unable to install IDF plugins in Eclipse?
41+
-----------------------------------------
42+
Please check the error log from the main menu, select `Window > Show View > Other`. Then select `General > Error Log`.
43+
44+
Espressif Menu options and Espressif IDF Project menu are not visible in my Eclipse CDT
45+
---------------------------------------------------------------------------------------
46+
- Make sure you have installed Java 8 and above and Eclipse in the C/C++ perspective.
47+
- Reset the perspective using `Window > Perspective > Reset Perspective..`.
48+
49+
Do IDF Eclipse Plugins support CMake IDF project creation?
50+
----------------------------------------------------------
51+
Yes, you can create IDF CMake project using `File > New > Espressif IDF Project`.
52+
53+
Can I import my existing IDF project into Eclipse?
54+
---------------------------------------------------
55+
Yes, you can import using Import Menu. `Import... > Espressif > Existing IDF Project`.
56+
57+
Where can I find the IDF installed tools in my system?
58+
------------------------------------------------------
59+
Default directory is `$HOME/.espressif` for Linux/MacOS users or `%USER_PROFILE%.espressif` for Windows users.
60+
61+
Why am I getting timeout errors when Installing tools?
62+
------------------------------------------------------
63+
If you are getting errors when downloading or installing tools this can be due to some issue with the mirrors. You can try to set the mirrors in Eclipse `Preferences > Espressif` you will see two settings for Git and Pip Py Wheels please set these to proper mirror according to your region. Currently, these two mirrors are available.
64+
65+
### Mirror for GIT (IDF_GITHUB_ASSETS)
66+
- dl.espressif.com/github_assets (default)
67+
- dl.espressif.cn/github_assets
68+
69+
### Mirror for python wheels (PIP_EXTRA_INDEX_URL)
70+
- https://dl.espressif.com/pypi (default)
71+
- https://dl.espressif.cn/pypi
72+
73+
Deleted C/C++ build environment variables still appearing?
74+
----------------------------------------------------------
75+
- You need to uncheck the preference recorder. This can be performed by following. Eclipse `Preferences > Oomph > Setup Tasks > Preference Recorder`.
76+
- Uncheck `Record into`.
77+
78+
How can I rollback to old ESP-IDF Eclipse plugin?
79+
-------------------------------------------------
80+
- Open Eclipse IDE and Uninstall the esp-idf plugin.
81+
- Restart Eclipse IDE.
82+
- Download the previous version of the ESP Eclipse Plugin using this `link`_.
83+
- Go to `Help > Install New Software`.
84+
- Press the `Add` button, a window will open with the name of `Add Repository`.
85+
- Press the `Archive` button and select the file downloaded.
86+
- Proceed with the installation.
87+
- Restart Eclipse.
88+
89+
Where can I find Compiler_commands.json file for the project?
90+
--------------------------------------------------------------
91+
`/projectName/build/compile_commands.json`
92+
93+
compile_commands.json containing the exact compiler calls for all translation units of the project in machine-readable form which is used by the Eclipse CDT indexing for parsing and resolving headers.
94+
95+
How do I access CDT Parser error log?
96+
--------------------------------------
97+
Please follow this menu. `Project > C/C++ Index > Create Parser Log`.
98+
99+
How do I access the error log?
100+
------------------------------
101+
To view the Eclipse error log: From the main menu, select `Window > Show View > Other`. Then select `General > Error Log`.
102+
103+
How do I report a deadlock or Eclipse hang?
104+
-------------------------------------------
105+
You can find the detailed instructions here: https://wiki.eclipse.org/How_to_report_a_deadlock.
106+
- On the command line, use `jps -v` to find the PIDs of Java processes and `jstack <pid>` to show the stack trace of Java processes.
107+
108+
Here 32308 and 8824 are PIDs of Java processes. 8824 is jps itself and is of no interest for us. 32308 is an Eclipse process judging from the presence of `org.eclipse.equinox.launcher` in its command line. The `jstack` command saves the stack trace of the Eclipse process in a file `/tmp/jstack.txt`, attach the file to the bug report.
109+
110+
`sun.security.validator.ValidatorException: PKIX path building failed:` error
111+
------------------------------------------------------------------------------
112+
This would have been caused by the Java version or Java certificates. Please make sure you've installed `Java 11 and later` to fix this error.
113+
Check below links:
114+
- https://esp32.com/viewtopic.php?f=13&t=12327&start=10#p50137
115+
- https://stackoverflow.com/questions/6908948/java-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find
116+
117+
Why Java 11 recommended for IDF Eclipse Plugin?
118+
-----------------------------------------------
119+
We recommend using Java 11 (that's the latest LTS version from Oracle) and above while working with IDF Eclipse Plugin considering Eclipse 2020-06 has a requirement for Java 11 to work with the CDT. Here are some important pointers from Eclipse.
120+
121+
### Installing CDT 9.11 on Eclipse 2020-06 and later requires a workaround when using Java 8
122+
Check this - https://wiki.eclipse.org/CDT/User/NewIn911#Release
123+
124+
CDT 9.11 only requires Java 8 to run. However, a new feature in Eclipse 2020-06 and later means that the install wizard may prevent installation. The workaround is to disable "Verify provisioning operation is compatible with the currently running JRE" in Windows -> Preferences -> Install/Update. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=564407#c1.
125+
126+
### CDT 10.0 required Java 11 or later
127+
Check this - https://wiki.eclipse.org/CDT/User/NewIn100
128+
129+
Starting with CDT 10.0, Java 11 or later is required to run CDT. This aligns with the requirements of Eclipse IDE which also requires Java 11 to run starting in 2020-09.
130+
131+
How to delete Launch Targets from the Eclipse
132+
---------------------------------------------
133+
There is no UI option to delete launch targets directly from Eclipse, however, this can be achieved by following the below instructions:
134+
- Go to the Eclipse workspace directory. For example: In my case `/Users/myName/myTesteclipseWorkspace`.
135+
- Navigate to `.metadata/.plugins/org.eclipse.core.runtime/.settings` folder in the workspace directory.
136+
- Look for `org.eclipse.launchbar.core.prefs` file and open it in the editor.
137+
- Search for the launch target name you want to delete and remove all those entries from the file.
138+
- Save the file.
139+
- Restart Eclipse.
140+
141+
How do I access project build log?
142+
-----------------------------------
143+
- To enable logging, navigate to `Preferences > Project > C/C++ > Build > Logging`.
144+
- Check `Enable global build logging`.
145+
- Build the project.
146+
- Export `global-build.log`. This is the same build console log which appears in the CDT build console, but the build console usually has a limited buffer size, hence it won't display everything.
147+
148+
How do I enable verbose debug output to my project build?
149+
----------------------------------------------------------
150+
IDF Eclipse plugin uses CMake commands to build the project, so it's possible to pass CMake arguments from the build configuration wizard. To configure this:
151+
- Click on the editor configuration wizard.
152+
- Navigate to `Build Settings` tab.
153+
- Add `--debug-output` or other

docs/en/index.rst

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,42 @@ Espressif-IDE
22
=========================
33
:link_to_translation:`zh_CN:[中文]`
44

5-
Espressif-IDE is an Integrated Development Environment(IDE) based on Eclipse CDT for developing IoT Applications using the ESP-IDF framework. It's a standalone and customized IDE built specifically for ESP-IDF. Espressif-IDE comes with the IDF Eclipse plugins, essential Eclipse CDT plugins, and other third-party plugins from the Eclipse platform to support building ESP-IDF applications.
5+
Espressif-IDE is an Integrated Development Environment (IDE) based on `Eclipse CDT <https://github.com/eclipse-cdt/>`_ for developing IoT Applications using the `ESP-IDF <https://github.com/espressif/esp-idf>`_. It's a standalone and customized IDE built specifically for ESP-IDF. Espressif-IDE comes with the IDF Eclipse plugins, essential Eclipse CDT plugins, and other third-party plugins from the Eclipse platform to support building ESP-IDF applications.
66

7-
The plug-in runs on macOS, Windows and Linux platforms.
7+
The plug-in runs on `macOS`, `Windows` and `Linux` platforms.
88

99
.. note::
10-
Espressif-IDE version 3.0 and later supports ESP-IDF version 5.x and above. For ESP-IDF version 4.x and earlier, please use Espressif-IDE version 2.12.1.
10+
Espressif-IDE version 3.0 and later supports ESP-IDF version 5.x and above. For ESP-IDF version 4.x and earlier, please use Espressif-IDE version `2.12.1 <https://github.com/espressif/idf-eclipse-plugin/releases/tag/v2.12.1>`_.
1111

12+
.. image:: ../../media/espressif-ide.png
13+
:alt: Espressif-IDE
14+
:align: center
15+
1216
Features
1317
----------------
1418

15-
- Easy-to-use IDE built on Eclipse CDT environment
16-
- Specifically built for ESP-IDF application development
1719
- Auto-configuration of the build environment variables
1820
- Integrated toolchain configuration
19-
- New Project Wizards and getting started ESP-IDF examples
20-
- Advanced editing, compiling, and editing with syntax coloring features
21+
- New Project Wizards and getting started with ESP-IDF examples
22+
- LSP-based editor for advanced editing, compiling, and syntax coloring features
2123
- Pre-built function header and function definition navigation
22-
- ESP-IDF and ESP-IDF Tools installation and configuration directly from IDE
23-
- SDK Configuration editor for project-specific settings
24-
- Integrated CMake Editor plug-in for editing CMake files such as CMakeLists.txt
25-
- CMake based build support
24+
- ESP-IDF and ESP-IDF tools installation and configuration directly from the IDE
25+
- SDK configuration editor for project-specific settings
26+
- Integrated CMake editor plug-in for editing CMake files such as CMakeLists.txt
27+
- CMake-based build support
2628
- Support for UART and JTAG flashing
27-
- Customized ESP-IDF OpenOCD Debugging with pre-built configuration and settings
28-
- GDB Hardware debugging
29+
- Customized ESP-IDF OpenOCD debugging with pre-built configuration and settings
2930
- Integrated ESP-IDF serial monitor
30-
- ESP-IDF Terminal with the pre-configured ESP-IDF build environment
31-
- Application size analysis editor for analyzing static memory footprint of your application
32-
- Supports Heap profiling for memory analysis and finding memory leaks
33-
- Supports GDB Stub debugging and Application level tracing
34-
- Supports esp32,esp32s2, esp32s3 and esp32c3 chips
35-
- English and Chinese language support for IDE
36-
- Extensible IDE for other third-party plugins from Eclipse eco-system
37-
- Host operating systems supported: Windows, macOS, and Linux
38-
31+
- ESP-IDF terminal with the pre-configured ESP-IDF build environment
32+
- Application size analysis editor for analyzing the static memory footprint of your application
33+
- Supports heap profiling for memory analysis and finding memory leaks
34+
- Supports GDB stub debugging and application-level tracing
35+
- English and Chinese language support for the IDE
3936

4037
For more about this project please see https://github.com/espressif/idf-eclipse-plugin
4138

4239
.. toctree::
43-
:maxdepth: 2
40+
:maxdepth: 1
4441

4542
Prerequisites <prerequisites>
4643
Installation <installation>

0 commit comments

Comments
 (0)