Skip to content

Commit

Permalink
[flashing scripts] [ESP32] Fix running esptool.py (#30627)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kpschoedel authored and pull[bot] committed May 23, 2024
1 parent bbd7ef2 commit 1060160
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/flashing/esp32_firmware_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
# Tool configuration options.
'esptool': {
'help': 'File name of the esptool executable',
'default': None,
'default': 'esptool.py',
'argparse': {
'metavar': 'FILE',
},
Expand All @@ -103,9 +103,8 @@
"""\
Unable to execute {esptool}.
Please ensure that this tool is installed and
that $IDF_PATH is set. See the ESP32 example
README for installation instructions.
Please ensure that the esptool Python package is available.
See the ESP32 setup guide for instructions.
""",
},
'parttool': {
Expand Down Expand Up @@ -308,7 +307,6 @@ def read_sdkconfig(self, filename):
return result

IDF_PATH_TOOLS = {
'esptool': 'components/esptool_py/esptool/esptool.py',
'parttool': 'components/partition_table/parttool.py',
}

Expand Down

0 comments on commit 1060160

Please sign in to comment.