Skip to content

Install esptool via tl-install routine #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions platform.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,10 @@
},
"tool-esptoolpy": {
"type": "uploader",
"optional": false,
"optional": true,
"owner": "pioarduino",
"version": "https://github.com/pioarduino/esptool/releases/download/v5.0.0/esptool.zip"
"package-version": "5.0.0",
"version": "https://github.com/pioarduino/registry/releases/download/0.0.1/esptoolpy-v5.0.0.zip"
},
"tl-install": {
"type": "tool",
Expand Down
5 changes: 5 additions & 0 deletions platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,10 @@ def _configure_installer(self) -> None:
if os.path.exists(installer_path):
self.packages["tl-install"]["optional"] = True

def _install_esptool_package(self) -> None:
"""Install esptool package required for all builds."""
self.install_tool("tool-esptoolpy")

def _install_common_idf_packages(self) -> None:
"""Install common ESP-IDF packages required for all builds."""
for package in COMMON_IDF_PACKAGES:
Expand Down Expand Up @@ -534,6 +538,7 @@ def configure_default_packages(self, variables: Dict, targets: List[str]) -> Any
try:
# Configuration steps
self._configure_installer()
self._install_esptool_package()
self._configure_arduino_framework(frameworks)
self._configure_espidf_framework(frameworks, variables, board_config, mcu)
self._configure_mcu_toolchains(mcu, variables, targets)
Expand Down