Skip to content

Commit 0aeefeb

Browse files
authored
Fix CDC+JTAG is disabled when WiFi is used on ESP32-C3
Fixes: espressif#6264 Thanks @Spritetm
1 parent c4954dd commit 0aeefeb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

libraries/WiFi/src/WiFiGeneric.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,10 @@ void WiFiGenericClass::useStaticBuffers(bool bufferMode){
555555
_wifiUseStaticBuffers = bufferMode;
556556
}
557557

558+
// Temporary fix to ensure that CDC+JTAG stay on on ESP32-C3
559+
#if CONFIG_IDF_TARGET_ESP32C3
560+
extern "C" void phy_bbpll_en_usb(bool en);
561+
#endif
558562

559563
bool wifiLowLevelInit(bool persistent){
560564
if(!lowLevelInitDone){
@@ -587,6 +591,10 @@ bool wifiLowLevelInit(bool persistent){
587591
lowLevelInitDone = false;
588592
return lowLevelInitDone;
589593
}
594+
// Temporary fix to ensure that CDC+JTAG stay on on ESP32-C3
595+
#if CONFIG_IDF_TARGET_ESP32C3
596+
phy_bbpll_en_usb(true);
597+
#endif
590598
if(!persistent){
591599
lowLevelInitDone = esp_wifi_set_storage(WIFI_STORAGE_RAM) == ESP_OK;
592600
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy