From 5e6f2bf70bb36872e96bed9e876cb4b78ddf746a Mon Sep 17 00:00:00 2001 From: valeros Date: Tue, 9 Nov 2021 14:16:39 +0200 Subject: [PATCH] Use legacy toolchain for mixed IDF/Arduino projects --- builder/frameworks/espidf.py | 1 + 1 file changed, 1 insertion(+) diff --git a/builder/frameworks/espidf.py b/builder/frameworks/espidf.py index 81f5838..107f2ef 100644 --- a/builder/frameworks/espidf.py +++ b/builder/frameworks/espidf.py @@ -64,6 +64,7 @@ assert os.path.isdir(TOOLCHAIN_DIR) # Arduino framework as a component is not compatible with ESP-IDF >=4.1 if "arduino" in env.subst("$PIOFRAMEWORK"): + TOOLCHAIN_DIR = platform.get_package_dir("toolchain-xtensa32") ARDUINO_FRAMEWORK_DIR = platform.get_package_dir("framework-arduinoespressif32") # Possible package names in 'package@version' format is not compatible with CMake if "@" in os.path.basename(ARDUINO_FRAMEWORK_DIR):