Board error on reset, no serial port showing

Hi,
I am using Arduino IDE 2.3.2 on Windows 11 with several [Adafruit ESP32-S3 Feather with 4MB Flash 2MB PSRAM [STEMMA QT / Qwiic] : ID 5477 : Adafruit Industries, Unique & fun DIY electronics and kits](Adafruit ESP32-S3) boards.

Once a sketch, any sketch is uploaded and I press the reset button the neopixel flashes purple briefly, then red and finally stays green. The built in LED pulses red. In the tools/port menu only COM1 shows.

The verbose output shows the following (with the command error line in red):
Compiling sketch...
"C:\Users\rob\AppData\Local\Arduino15\packages\esp32\tools\esp-xs3\2302/bin/xtensa-esp32s3-elf-g++" -MMD -c "@C:\Users\rob\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-bd2b9390ef\esp32s3/flags/cpp_flags" -Wall -Wextra -Og -g3 -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ADAFRUIT_FEATHER_ESP32S3 -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD="ADAFRUIT_FEATHER_ESP32S3"" "-DARDUINO_VARIANT="adafruit_feather_esp32s3"" -DARDUINO_PARTITION_tinyuf2-partitions-4MB "-DARDUINO_HOST_OS="windows"" "-DARDUINO_FQBN="esp32:esp32:adafruit_feather_esp32s3:UploadSpeed=921600,USBMode=default,CDCOnBoot=cdc,MSCOnBoot=default,DFUOnBoot=default,UploadMode=cdc,CPUFreq=240,FlashMode=qio,FlashSize=4M,PartitionScheme=tinyuf2,DebugLevel=none,PSRAM=enabled,LoopCore=1,EventsCore=1,EraseFlash=none"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_RUNNING_CORE=1 -DARDUINO_EVENT_RUNNING_CORE=1 -DBOARD_HAS_PSRAM -DARDUINO_USB_MODE=0 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=0 "@C:\Users\rob\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-bd2b9390ef\esp32s3/flags/defines" "-ID:\Data\Arduino\sketches\examples\esp32-blink" -iprefix "C:\Users\rob\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-bd2b9390ef\esp32s3/include/" "@C:\Users\rob\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-bd2b9390ef\esp32s3/flags/includes" "-IC:\Users\rob\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.1-bd2b9390ef\esp32s3/qio_qspi/include" "-IC:\Users\rob\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\cores\esp32" "-IC:\Users\rob\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2\variants\adafruit_feather_esp32s3" "@C:\Users\rob\AppData\Local\Temp\arduino\sketches\9C56B2FBF9C3DF4510352D2F649C9E98/build_opt.h" "@C:\Users\rob\AppData\Local\Temp\arduino\sketches\9C56B2FBF9C3DF4510352D2F649C9E98/file_opts" "C:\Users\rob\AppData\Local\Temp\arduino\sketches\9C56B2FBF9C3DF4510352D2F649C9E98\sketch\esp32-blink.ino.cpp" -o "C:\Users\rob\AppData\Local\Temp\arduino\sketches\9C56B2FBF9C3DF4510352D2F649C9E98\sketch\esp32-blink.ino.cpp.o"
: warning: ISO C++11 requires whitespace after the macro name
Compiling libraries...

The sketch used here was esp32-blink.ino

int led = LED_BUILTIN;

void setup() {
  // Some boards work best if we also make a serial connection
  Serial.begin(115200);

  // set LED to be an output pin
  pinMode(led, OUTPUT);
}

void loop() {
  // Say hi!
  Serial.println("Hello!");
  
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(500);                // wait for a half second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(500);                // wait for a half second
}

I suspect the error is related to the "esp32-blink.ino.cpp.o" at the end of the compiling sketch line, but why that is happening is beyond me.

Any wisdom in solving this would be great, as at the moment I can't compile and upload anything.

Thanks

Rob

are you sure the default LED_BUILTIN is correct?
check your board specification and define the GPIO explicitly
what Tools>Board are setting are you using?

EDIT: your code runs OK blinking the LED on my ESP32-S3-DevKitC-1 using Tools>Board ESP32S3 Dev Module

Hi horace,
the sketch is straight from the Adafruit learning system page. I changed that line to : int led = 13; and got exactly the same error.

The board selected is the Adafruit Feather ESP32-S3 2MB PSRAM - esp32.

there are a number of Adafruit Feather ESP32S3 boards - are you sure you have the correct board selected?
what happens if you select ESP32S3 Dev Module?

Using the ESP32S3 Dev Module works fine, so that is good.

Trying it with another sketch that has been running fine throws the following error even though I have selected the right serial port.
Failed uploading: uploading error: exit status 2

guess you were selecting the wrong Adafruit ESP32S3 board in Toools>Board

strange - in the past did this load ok with Adafruit Feather ESP32-S3 2MB PSRAM selected?
see if you can find which Adafruit board you purchased

have you goy any devices connected to the board, e.g. sensors, relays, etc?

The board is the Adafruit ESP32S3 with 2MB PSRAM, so right one selected.

It was running with a sensor until I tried to test if a more complex sketch would upload :frowning:
So now I can upload the blink sketch, but nothing else.

Seems like the board is fine, just something in the ESP32S3 configuration maybe?

perhaps try on the Adafruit forum?

The issue has been resolved. Posting in case others face similar problems.
It seems that v 3.02 of esp32 from Espressif Systems is problematic.

In the Boards Manager reverting to v 3.01 of esp32 by Espressif Systems solved the issues.