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
@@ -175,6 +175,13 @@ If you want to install the tools without the help of ESP-IDF Tools Installer, op
175
175
cd%userprofile%\esp\esp-idf
176
176
install.bat
177
177
178
+
or with Windows PowerShell
179
+
180
+
.. code-block:: powershell
181
+
182
+
cd ~/esp/esp-idf
183
+
./install.ps1
184
+
178
185
Linux and macOS
179
186
~~~~~~~~~~~~~~~
180
187
@@ -188,7 +195,7 @@ Customizing the tools installation path
188
195
189
196
The scripts introduced in this step install compilation tools required by ESP-IDF inside the user home directory: ``$HOME/.espressif`` on Linux and macOS, ``%USERPROFILE%\.espressif`` on Windows. If you wish to install the tools into a different directory, set the environment variable ``IDF_TOOLS_PATH`` before running the installation scripts. Make sure that your user has sufficient permissions to read and write this path.
190
197
191
-
If changing the ``IDF_TOOLS_PATH``, make sure it is set to the same value every time the ``install.bat``/``install.sh`` and ``export.bat``/``export.sh`` scripts are executed.
198
+
If changing the ``IDF_TOOLS_PATH``, make sure it is set to the same value every time the Install script (``install.bat``, ``install.ps1`` or ``install.sh``) and an Export script (``export.bat``, ``export.ps1`` or ``export.sh``) are executed.
192
199
193
200
.. _get-started-set-up-env:
194
201
@@ -208,6 +215,12 @@ Alternatively, if you want to use ESP-IDF in an existing Command Prompt window,
208
215
209
216
%userprofile%\esp\esp-idf\export.bat
210
217
218
+
or with Windows PowerShell
219
+
220
+
.. code-block:: powershell
221
+
222
+
.$HOME/esp/esp-idf/export.ps1
223
+
211
224
Linux and macOS
212
225
~~~~~~~~~~~~~~~
213
226
@@ -481,9 +494,9 @@ You should update ESP-IDF from time to time, as newer versions fix bugs and prov
481
494
482
495
Another solution is to update only what has changed. :ref:`The update procedure depends on the version of ESP-IDF you are using <updating>`.
483
496
484
-
After updating ESP-IDF, execute ``install.sh`` (``install.bat`` on Windows) again, in case the new ESP-IDF version requires different versions of tools. See instructions at :ref:`get-started-set-up-tools`.
497
+
After updating ESP-IDF, execute the Install script again, in case the new ESP-IDF version requires different versions of tools. See instructions at :ref:`get-started-set-up-tools`.
485
498
486
-
Once the new tools are installed, update the environment using ``export.sh`` (``export.bat`` on Windows). See instructions at :ref:`get-started-set-up-env`.
499
+
Once the new tools are installed, update the environment using the Export script. See instructions at :ref:`get-started-set-up-env`.
Copy file name to clipboardExpand all lines: docs/en/get-started/windows-setup-update.rst
+13-4Lines changed: 13 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,20 +4,24 @@ Updating ESP-IDF tools on Windows
4
4
5
5
.. _get-started-install_bat-windows:
6
6
7
-
Install ESP-IDF tools using ``install.bat``
8
-
===========================================
7
+
Install ESP-IDF tools using a script
8
+
====================================
9
9
10
10
From the Windows Command Prompt, change to the directory where ESP-IDF is installed. Then run::
11
11
12
12
install.bat
13
13
14
+
For Powershell, change to the directory where ESP-IDF is installed. Then run::
15
+
16
+
install.ps1
17
+
14
18
This will download and install the tools necessary to use ESP-IDF. If the specific version of the tool is already installed, no action will be taken.
15
19
The tools are downloaded and installed into a directory specified during ESP-IDF Tools Installer process. By default, this is ``C:\Users\username\.espressif``.
16
20
17
21
.. _get-started-export_bat-windows:
18
22
19
-
Add ESP-IDF tools to PATH using ``export.bat``
20
-
==============================================
23
+
Add ESP-IDF tools to PATH using an export script
24
+
================================================
21
25
22
26
ESP-IDF tools installer creates a Start menu shortcut for "ESP-IDF Command Prompt". This shortcut opens a Command Prompt window where all the tools are already available.
23
27
@@ -28,4 +32,9 @@ In the command prompt where you need to use ESP-IDF, change to the directory whe
28
32
cd %userprofile%\esp\esp-idf
29
33
export.bat
30
34
35
+
Alternatively in the Powershell where you need to use ESP-IDF, change to the directory where ESP-IDF is installed, then execute ``export.ps1``::
36
+
37
+
cd ~/esp/esp-idf
38
+
export.ps1
39
+
31
40
When this is done, the tools will be available in this command prompt.
0 commit comments