File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -155,10 +155,14 @@ def _get_installed_standard_pip_packages():
155
155
):
156
156
print ("Warning! Debugging an IDF project requires PlatformIO Core >= 6.1.11!" )
157
157
158
- # Arduino framework as a component is not compatible with ESP-IDF >5.3
159
158
if "arduino" in env .subst ("$PIOFRAMEWORK" ):
160
159
ARDUINO_FRAMEWORK_DIR = platform .get_package_dir ("framework-arduinoespressif32" )
161
160
ARDUINO_FRMWRK_LIB_DIR = platform .get_package_dir ("framework-arduinoespressif32-libs" )
161
+ if mcu == "esp32c2" :
162
+ ARDUINO_FRMWRK_C2_LIB_DIR = join (platform .get_package_dir ("framework-arduinoespressif32-libs" ),mcu )
163
+ if not os .path .exists (ARDUINO_FRMWRK_C2_LIB_DIR ):
164
+ ARDUINO_C2_DIR = join (platform .get_package_dir ("framework-arduino-c2-skeleton-lib" ),mcu )
165
+ shutil .copytree (ARDUINO_C2_DIR , ARDUINO_FRMWRK_C2_LIB_DIR , dirs_exist_ok = True )
162
166
# Possible package names in 'package@version' format is not compatible with CMake
163
167
if "@" in os .path .basename (ARDUINO_FRAMEWORK_DIR ):
164
168
new_path = os .path .join (
You can’t perform that action at this time.
0 commit comments