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
Copy file name to clipboardExpand all lines: docs/en/esptool/advanced-options.rst
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,3 +117,21 @@ An example of this is available in the :ref:`merge_bin <merge-bin>` command desc
117
117
.. note:: PowerShell users
118
118
119
119
Because of `splatting <https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_splatting?view=powershell-7.3>`__ in PowerShell (method of passing a collection of parameter values to a command as a unit) there is a need to add quotes around @filename.txt ("@filename.txt") to be correctly resolved.
120
+
121
+
Filtering serial ports
122
+
----------------------
123
+
.. _filtering_serial_ports:
124
+
125
+
``--port-filter <FilterType>=<FilterValue>`` allows limiting ports that will be tried. This can be useful when esptool is run on a system
126
+
with many serial ports. There are a few different types that can be combined. A port must match all specified FilterTypes, and must match
127
+
at least one FilterValue for each specified FilterType to be considered. Example filter configurations:
128
+
129
+
.. list::
130
+
131
+
* ``--port-filter vid=0x303A`` matches ports with the Espressif USB VID.
132
+
* ``--port-filter vid=0x303A --port-filter vid=0x0403`` matches Espressif and FTDI ports by VID.
133
+
* ``--port-filter vid=0x303A --port-filter pid=0x0002`` matches Espressif ESP32-S2 in USB-OTG mode by VID and PID.
134
+
* ``--port-filter vid=0x303A --port-filter pid=0x1001`` matches Espressif USB-Serial/JTAG unit used by multiple chips by VID and PID.
135
+
* ``--port-filter name=ttyUSB`` matches ports where the port name contains the specified text.
136
+
137
+
See also the `Espressif USB customer-allocated PID repository <https://github.com/espressif/usb-pids>`_
0 commit comments