Skip to content

Commit 89e0bde

Browse files
authored
[flashing scripts] [ESP32] Fix running esptool.py (#30627)
In Espressif IDF 5.x, esptool.py changed from a script under $IDF_PATH to an installable Python package (#27060). This change udpates the flashing script accordingly.
1 parent 3eb9c02 commit 89e0bde

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scripts/flashing/esp32_firmware_utils.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
# Tool configuration options.
8787
'esptool': {
8888
'help': 'File name of the esptool executable',
89-
'default': None,
89+
'default': 'esptool.py',
9090
'argparse': {
9191
'metavar': 'FILE',
9292
},
@@ -103,9 +103,8 @@
103103
"""\
104104
Unable to execute {esptool}.
105105
106-
Please ensure that this tool is installed and
107-
that $IDF_PATH is set. See the ESP32 example
108-
README for installation instructions.
106+
Please ensure that the esptool Python package is available.
107+
See the ESP32 setup guide for instructions.
109108
""",
110109
},
111110
'parttool': {
@@ -308,7 +307,6 @@ def read_sdkconfig(self, filename):
308307
return result
309308

310309
IDF_PATH_TOOLS = {
311-
'esptool': 'components/esptool_py/esptool/esptool.py',
312310
'parttool': 'components/partition_table/parttool.py',
313311
}
314312

0 commit comments

Comments
 (0)