I have a couple of ESP32 Thing microcontrollers, and both have a problem with the serial output. Specifically, I get garbled text in the serial monitor despite the correct baud rate being set in the code and the serial monitor.
void setup(){
Serial.begin(115200);
while (!Serial);
Serial.println("Test");
}
void loop(){}
I found some posts that stated the ESP32 Thing has a 26 MHz crystal, and a fix is to use the IDF tools to set it to that frequency or set it to auto. I performed those steps and tested with the “hello_world” example from the IDF tools, and the output worked. However, if I use the above example, I get garbled text.
I am using the Arduino IDE 2.3.0.
I appreciate any support provided.