In this tutorial, I'll show you how to upload the firmware to the esp32 board.
Before we get started, the most important thing you'll need is a USB-C data cable. Make sure it's a data cable, not just a charging cable. Some USB-C cables only provide power and don't support data transfer, so they won't work for this.

Plug the ESP32 into your computer using the USB-C cable. If everything is working properly, you should hear the system's device connection sound, which means your computer has detected the ESP32.
You may need to install the driver for ESP32.
The driver can be downloaded from this link. Choose your driver accordingly. https://ftdichip.com/drivers/d2xx-drivers/

Open the firmware upload webpage using Google Chrome.
https://espressif.github.io/esptool-js/
click 'connect'. Click the Connect button. A pop-up window will appear where you can select the COM port for your ESP32. On my computer, it's COM3, but on yours it could be COM2 or another COM port number.







Once you see this, the firmware has been successfully uploaded to the ESP32. Unplug it from your computer, then install it back onto the PCB. When plugging it back in, make absolutely sure it's oriented correctly. Installing it backwards can permanently damage the ESP32.
On my PCB, the USB connector on the ESP32 should face toward the wire harnesses (the side with the ribbon cables).
