I use ESP32-S3.
After compiling and uploading the code below, nothing will be printed on the IDE serial monitor.
The speed of the IDE serial monitor is also set to 9600bps.
Hi @greatcrown. If you don't have it already, try selecting Tools > USB CDC On Boot > Enabled from the Arduino IDE menus and then upload the sketch to your ESP32-S3 board again.
After doing that, does the serial communication work as expected?
Do you have 2 USB connectors on your board? The one I have has 2 connectors and the serial monitor only works with the one that is connected to the USB-serial converter chip.
When you have Tools > USB CDC On Boot > Disabled selected from the Arduino IDE menus, calling Serial.println etc. in your sketch will cause the serial communication to be done via that socket's serial port.
When you have Tools > USB CDC On Boot > Enabled selected from the Arduino IDE menus, serial communication will instead be done via the serial port of the USB socket labeled "USB":
that's it, using an ESP32-S3-MATRIX from WaveShare, was struggling to read serial output, reading kilometer long topics to finally get the right answer.
Perhaps a better naming would help instead of just "Disabled" and "Enabled". Something like "UART port (2 ports board)" and "USB port (1 or 2 ports board)".
After all Arduino is supposed to be accessible to the non tech savvy people, so make it understandable.
Also setting "Core debug level" to something else than "None" also helped, it seems.
Ok, it's just that the Arduino ecosystem is a "simplified" IDE using kinda skeuomorphism ("sketch", ...) so perhaps people should also follow the guideline and use "simplified" idioms instead to make things uselessly complicated.