Cannot upload sketch on ESP32-S3-WROOM-1

Compiling the sketch works well. I tried 3 different cables and two computers that were working with other boards and sketches.


```cpp
#include <Arduino.h>
#include <WiFi.h>
#include <Audio.h>
#define I2S_DOUT     25
#define I2S_BCLK      27
#define I2S_LRC        26
Audio audio;
String ssid =    "PPPPPP";
String password = "SSSSSS";
void setup() {
  WiFi.disconnect();
  WiFi.mode(WIFI_STA);
  WiFi.begin(ssid.c_str(), password.c_str());
  while (WiFi.status() != WL_CONNECTED)
  delay(1500);
  audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT);
  audio.setVolume(100);
  audio.connecttohost("http://vis.media-ice.musicradio.com/CapitalMP3");
  Serial.begin(115200);
  Serial.println("Music now");
}
void loop()
{
  audio.loop();
}
```

A fatal error occurred: Failed to connect to ESP32-S3: Invalid head of packet (0x1B): Possible serial noise or corruption.
For troubleshooting steps visit: Troubleshooting - ESP32 - — esptool latest documentation

Failed uploading: uploading error: exit status 2

Except the USB cable nothing else is connected to the board.

You do not say where the Audio library came from or how you installed it but this one

seems to be for the Arduino Due only

Is that the Audio library that you are using ?

The problem I have is UPloading the sketch to the board.

I understand that but if the board does not identify itself as expected there could be a problem. So, please humor me and say which Audio library you are using

The sketch comes from internet:

I note that the page you linked to says

this project uses the ESP32-audioI2S library

Is that the one that you are using ?

Have you installed the board manager and then at upload time , pressed reset , then enable , then let go reset then enable - so you see waiting for download on the serial monitor .

Then close serial monitor before upload .

Do this with simple sketch to verify where your problem exists ( hardware or software )

@hammy

Thank you, the board manager was there, doing it twice it helped.