default serial/USB speed
Posted: Sun Sep 07, 2025 4:14 pm
I'm using an ESP32 WROOM32 board with Arduino IDE 2.3.6
Board package is 3.3.0 esp32 by espressif systems
On my first sketch, the first line in setup() i wrote is Serial.begin(115200);
The serial monitor of the ide is also set to 115200 baud, and communication between the two worked.
However, when i tried to extend my sketch (adding an SD card reader, and other peripherals), i occasionally got garbage before the first output of my first Serial.print() statement.
I wonder what that might have been - a kernel error message? and at what baud rate?
Should't the default speed for the kernel also be 115200 baud?
In <user>\AppData\Local\arduino\sketches\XXXXXXXXXXXX i found the file "sdkconfig" with an entry
CONFIG_ESP_CONSOLE_UART_BAUDRATE=115200
but also an entry of
"-DARDUINO_FQBN=\"esp32:esp32:esp32:UploadSpeed=921600,CPUFreq=240,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=none,PSRAM=disabled,LoopCore=1,EventsCore=1,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default\"",
in a file called "compile_commands.json"
Board package is 3.3.0 esp32 by espressif systems
On my first sketch, the first line in setup() i wrote is Serial.begin(115200);
The serial monitor of the ide is also set to 115200 baud, and communication between the two worked.
However, when i tried to extend my sketch (adding an SD card reader, and other peripherals), i occasionally got garbage before the first output of my first Serial.print() statement.
I wonder what that might have been - a kernel error message? and at what baud rate?
Should't the default speed for the kernel also be 115200 baud?
In <user>\AppData\Local\arduino\sketches\XXXXXXXXXXXX i found the file "sdkconfig" with an entry
CONFIG_ESP_CONSOLE_UART_BAUDRATE=115200
but also an entry of
"-DARDUINO_FQBN=\"esp32:esp32:esp32:UploadSpeed=921600,CPUFreq=240,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=none,PSRAM=disabled,LoopCore=1,EventsCore=1,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default\"",
in a file called "compile_commands.json"