ESP32 reprogramming help - solved

I have a ESP32 board.

Previously the library i used was a DO IT ESP32DevkitV1. I have uploaded this in the new Arduino IDE I am now using.

I am connected to com 1.

It was a while ago but from memory the ESP needs the boot button held to start a sketch upload, so i did that.

The driver in the ESP is a CP2102 which I know is OK as it will interface to a Pi I am running to read data from the ESP.

I get the following error message.

Sketch uses 281704 bytes (21%) of program storage space. Maximum is 1310720 bytes.
Global variables use 22580 bytes (6%) of dynamic memory, leaving 305100 bytes for local variables. Maximum is 327680 bytes.
esptool v5.3.1
Serial port COM1:
Connecting......................................

A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: Troubleshooting - ESP32 - — esptool latest documentation
Failed uploading: uploading error: exit status 2

Any debug help would be greatly appreciated.

Are you sure esp is on com1?
Do you have CP2102 driver installed on your operating system?
Good data cable?
Selected correct board (Esp32 dev module)?

Kmin,

I just remembered I had a new PC install. The driver was wiped!!

For anyone else the driver is here. Pololu - CP2102 USB-to-Serial Bridge Driver Installation

All good now thanks.

You're welcome.