Closed N0ury closed 1 year ago
@SuGlider @igrr can you help?
I can investigate it.
@N0ury - I got it to work:
void setup() {
// Serial is the TinyUSB interface | USBCDC class | -DARDUINO_USB_CDC_ON_BOOT=1
Serial.begin(115200);
Serial.setDebugOutput(true);
delay(500);
Serial.println("\n=========\nTesting...\n=========\n");
log_e("TESTING...");
}
void loop() {
log_e("TESTING LOOP...");
Serial.println("Loop...");
delay(1000);
}
Serial.setDebugOutput(true);
activates the LOG output to the Serial
object, which in this case is attached to the USB CDC port.
@N0ury - Let me know if this works for you.
@SuGlider I've tried it and it works fine now. The issue can be closed. Perhaps this point should be highlighted in the documentation
Board
ESP32-S2-SOLO module (not kit)
Device Description
I'm doing tests on a breadboard
Hardware Configuration
USB cable is connected to D+ and D- (and GND) The module is powered externally
Version
latest master (checkout manually)
IDE Name
PlatformIO
Operating System
macOS v11.7.5 Big Sur
Flash frequency
80MHz
PSRAM enabled
yes
Upload speed
921600
Description
I work in CLI mode under platformio. I have opened an issue at https://community.platformio.org/ and someone pointed me to
I have tried under Arduino IDE and it's the same. That's why I open this issue here.
With a S2-SOLO (chip ESP32-S2R2) I can flash an app using native USB. I can also print with Serial.print via native USB.
My problem is that when I use log_x (same as esp-idf ESP_LOGx), the output goes to the UART not USB. ``
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide