From 12b0d3c2c54dda072141f195bb072870f8869aed Mon Sep 17 00:00:00 2001 From: Ashley Strahle Date: Tue, 23 Jun 2026 23:35:18 +0000 Subject: [PATCH] Restore Adafruit's DCD: ESP32 core's DCD too old, missing dcd_sof_enable etc --- extra_script.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/extra_script.py b/extra_script.py index 648dcc5..fda0754 100644 --- a/extra_script.py +++ b/extra_script.py @@ -1,21 +1,3 @@ Import("env") -import os, sys -# Keep allow-multiple-definition for core TinyUSB symbol overlaps env.Append(LINKFLAGS=["-Wl,--allow-multiple-definition"]) - -# Delete the Adafruit library's generic DCD so we use the ESP32-specific -# one from libarduino_tinyusb.a (which has correct hardware init patches) -lib_path = os.path.join( - env.subst("$PROJECT_DIR"), - ".pio", "libdeps", env.subst("$PIOENV"), - "Adafruit TinyUSB Library", "src" -) - -dcd_path = os.path.join(lib_path, "portable", "synopsys", "dwc2", "dcd_dwc2.c") - -if os.path.exists(dcd_path): - os.remove(dcd_path) - print("[extra_script] Removed generic dcd_dwc2.c (using ESP32 core's patched version)") -else: - print("[extra_script] dcd_dwc2.c not found at:", dcd_path)