Closed
Description
Board
ESP32 S3
Device Description
S3 mini devkit
Hardware Configuration
Nothing special S3 mini
build_flags = -DDEBUG_ESP_WIFI -DESP32 -DCORE_DEBUG_LEVEL=5 -DWM_DEBUG_LEVEL=3 -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_DFU_ON_BOOT=1
Version
v2.0.5
IDE Name
pio
Operating System
osx:latest
Flash frequency
40
PSRAM enabled
no
Upload speed
921600
Description
USBCDC flush() will block until you connect to it and it can flush.. seems odd,
!tud_cdc_n_connected
is reporting wrong?
void USBCDC::flush(void)
{
if(itf >= MAX_USB_CDC_DEVICES || tx_lock == NULL || !tud_cdc_n_connected(itf)){
return;
}
if(xSemaphoreTake(tx_lock, tx_timeout_ms / portTICK_PERIOD_MS) != pdPASS){
return;
}
tud_cdc_n_write_flush(itf);
xSemaphoreGive(tx_lock);
}
Sketch
void setup(){
Serial.begin(115200);
Serial.println("Booting....");
delay(200);
Serial.flush();
// we never get here
}
Debug Message
I will have to attach a physical uart and check if there is any notice
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.