Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0aeefeb

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

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed

‎libraries/WiFi/src/WiFiGeneric.cpp

Copy file name to clipboardExpand all lines: libraries/WiFi/src/WiFiGeneric.cpp
+8Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.