You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
article updates: working with ESP-IDF in CLion (#438)
* article: working with ESP-IDF in CLion
* article updates: working with ESP-IDF in CLion
* Update oleg-zinovyev.json
* Update data/authors/oleg-zinovyev.json
Co-authored-by: ESP-Kirill <[email protected]>
---------
Co-authored-by: ESP-Kirill <[email protected]>
- Select the environment file on your computer. For macOS, you need the file called `export.sh` (on Windows, it’s `export.bat`), which is located in the default ESP-IDF directory.
72
-
- Click `Apply`
71
+
- Select the environment file on your computer. For macOS, you need the file called `export.sh` (on Windows, it’s `export.bat`), which is located in the default ESP-IDF directory.
72
+
- Click `Apply`
73
73
74
74
7. Go to `Settings` > `Build, Execution, Deployment` > `CMake`.
75
-
- In the default `Debug` profile settings, select the recently created toolchain, which in our case is `ESP-IDF`.
75
+
- In the default `Debug` profile settings, select the recently created toolchain, which in our case is `ESP-IDF`.
76
76
77
-
{{< figure
78
-
default=true
79
-
src="img/4-esp-clion-cmake.webp"
80
-
>}}
77
+
{{< figure
78
+
default=true
79
+
src="img/4-esp-clion-cmake.webp"
80
+
>}}
81
81
82
-
- In the `CMake options` field, enter `-DIDF_TARGET=esp32s3` (because an ESP32-S3-based board is used).
83
-
- In the `Build directory` field, enter `build`.
84
-
- Click `OK`.
82
+
- In the `CMake options` field, enter `-DIDF_TARGET=esp32s3` (because an ESP32-S3-based board is used).
83
+
- In the `Build directory` field, enter `build`.
84
+
- Click `OK`.
85
85
86
86
Your project will then start to load. If the process fails, click `Reset and Reload Project` in the CMake tool window settings.
87
87
@@ -96,23 +96,21 @@ If the project is loaded successfully, you’ll see `[Finished]` at the end of t
96
96
97
97
1. Make sure your board is connected to your computer via the UART port.
98
98
2. If you’re using the same application example, make sure that the GPIO LED number is correctly specified in the source code:
99
-
- In CLion’s `Project` tool window, locate the main directory in your project directory and open the `led_strip_example_main.c` file.
100
-
- In the `#define RMT_LED_STRIP_GPIO_NUM` line, change the default value to `38` or `48`, depending on your board hardware revision.
99
+
- In CLion’s `Project` tool window, locate the main directory in your project directory and open the `led_strip_example_main.c` file.
100
+
- In the `#define RMT_LED_STRIP_GPIO_NUM` line, change the default value to `38` or `48`, depending on your board hardware revision.
101
101
102
-
{{< figure
103
-
default=true
104
-
src="img/6-esp-clion-gpio-num.webp"
105
-
>}}
102
+
{{< figure
103
+
default=true
104
+
src="img/6-esp-clion-gpio-num.webp"
105
+
>}}
106
106
107
-
3. Click the `Run / Debug Configurations` drop-down list on the main toolbar and select the `flash` configuration.
107
+
3. Click the `Run / Debug Configurations` drop-down list on the main toolbar and select the `flash` configuration. This configuration allows you to build the project and then flash the board automatically.
108
108
109
109
{{< figure
110
110
default=true
111
111
src="img/7-esp-clion-flash-target.webp"
112
112
>}}
113
113
114
-
This configuration allows you to build the project and then flash the board automatically.
115
-
116
114
4. Click the green `Build` icon on the main IDE toolbar.
3. Select the `Shell Script` template. In this new configuration dialog:
150
-
- Enter a name of your choice.
151
-
- Select `Script text` next to `Execute`.
152
-
- Enter the following text, including the path of the environment file you’ve just copied: `. /Users/Oleg.Zinovyev/esp/esp-idf/export.sh ; idf.py flash monitor`.
148
+
- Enter a name of your choice.
149
+
- Select `Script text` next to `Execute`.
150
+
- Enter the following text, including the path of the environment file you’ve just copied: `. /Users/Oleg.Zinovyev/esp/esp-idf/export.sh ; idf.py flash monitor`.
153
151
154
-
{{< figure
155
-
default=true
156
-
src="img/12-esp-clion-flash-monitor.webp"
157
-
>}}
152
+
{{< figure
153
+
default=true
154
+
src="img/12-esp-clion-flash-monitor.webp"
155
+
>}}
158
156
159
-
- Leave the rest of the options as they are and click `OK`.
157
+
- Leave the rest of the options as they are and click `OK`.
160
158
161
159
4. Click the green `Run` icon on the main toolbar.
162
160
@@ -181,23 +179,23 @@ default=true
181
179
src="img/14-esp-clion-copy-config.webp"
182
180
>}}
183
181
184
-
- Rename the copied configuration to reflect the new functionality, for example, `ESP-menu-config`.
185
-
- In the script text, replace `flash monitor` with `menuconfig`.
182
+
3. Rename the copied configuration to reflect the new functionality, for example, `ESP-menu-config`.
183
+
4. In the script text, replace `flash monitor` with `menuconfig`.
186
184
187
185
{{< figure
188
186
default=true
189
187
src="img/15-esp-clion-menu-config.webp"
190
188
>}}
191
189
192
-
3. Click `OK`.
193
-
4. Make sure the IDE’s new terminal is disabled (unchecked), as the project configuration menu may not work properly with it.
190
+
5. Click `OK`.
191
+
6. Make sure the IDE’s new terminal is disabled (unchecked), as the project configuration menu may not work properly with it.
194
192
195
193
{{< figure
196
194
default=true
197
195
src="img/17-esp-clion-menu-config-terminal.webp"
198
196
>}}
199
197
200
-
5. Click the green `Run` icon on the main toolbar.
198
+
7. Click the green `Run` icon on the main toolbar.
201
199
202
200
The project configuration menu will open in the IDE’s terminal.
0 commit comments