Skip to content

Commit 36b7a18

Browse files
committed
Add a warning about the latest GDB package integration
1 parent ceafaa7 commit 36b7a18

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

builder/frameworks/espidf.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
DefaultEnvironment,
3939
)
4040

41-
from platformio import fs
41+
from platformio import fs, __version__
4242
from platformio.compat import IS_WINDOWS
4343
from platformio.proc import exec_command
4444
from platformio.builder.tools.piolib import ProjectAsLibBuilder
@@ -70,6 +70,15 @@
7070
assert os.path.isdir(FRAMEWORK_DIR)
7171
assert os.path.isdir(TOOLCHAIN_DIR)
7272

73+
# The latest IDF uses a standalone GDB package which requires at least PlatformIO 6.1.11
74+
if (
75+
["espidf"] == env.get("PIOFRAMEWORK")
76+
and semantic_version.Version.coerce(__version__)
77+
<= semantic_version.Version("6.1.10")
78+
and "__debug" in COMMAND_LINE_TARGETS
79+
):
80+
print("Warning! Debugging an IDF project requires PlatformIO Core >= 6.1.11!")
81+
7382
# Arduino framework as a component is not compatible with ESP-IDF >=4.1
7483
if "arduino" in env.subst("$PIOFRAMEWORK"):
7584
ARDUINO_FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoespressif32")

0 commit comments

Comments
 (0)