What could be causing the constant restarts when using the Arduino IDE?

I have a SparkFun Thing Plus - ESP32-S3 board.

A simple application like this:

void setup() {
Serial.begin(9600);
while (!Serial);
Serial.print(“Setup”);
}

void loop() {
Serial.print(“Loop”);
}

When compiled with Arduino IDE 2.3.4 and esp32 v3.2.0-RC2 board support by Espressif, the board keeps restarting after uploading the application.

I can observe these restarts through the constant connect/disconnect behavior in the Arduino IDE serial monitor and continuous refreshing in Windows Device Manager.

However, when I program the same board with a simple application in the ESP-IDF v5.4 environment, it runs normally without restarts and functions as expected (e.g., blinking an LED).

Compilation and upload log file is attached.
Arduino IDE esp32_log.txt (17.8 KB)

Did you select the right board in the ARduino IDE?


I use ESP32S3 Dev Module Octal (WROOM2)

Bad board?
Is USB CDC on Boot enabeled in the IDE?

The board do not make restarts and run simple examples unde ESP-IDF environment.

From four requirements:

  • USB Mode: Hardware CDC and JTAG
  • USB CDC on Boot: Enabled
  • Upload Mode: UART0 / Hardware CDC
  • PSRAM: QSPI PSRAM

Only the last one is not fulfilled. In my environment PSRAM is set to OPI PSRAM, otherwise I have compilation error. See dedicated discussion

The issue has been solved by choosing correct board type (SparkFun ESP32-S3 Thing Plus)

Sparkfun support, would help tremendously if you will update your documentation

FixSparkFunManual