ESP32 Devkit V1 exit status 2

Hi, i recently bought a ESP devkit V1 and when i try to connect it to my pc i get the error: exit status 2, i looked at a bunch of solutions but none of them worked, does anyone know how to fix it?

First of all Exit status 2 is no help, you need to post the actual verbose error log.
Start by reading the pinned post re 'How to get the most from the forum'

This is what i got: Sketch uses 281259 bytes (21%) of program storage space. Maximum is 1310720 bytes.
Global variables use 20680 bytes (6%) of dynamic memory, leaving 307000 bytes for local variables. Maximum is 327680 bytes.
esptool v5.0.0
Serial port COM3:
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

Try to:

  1. Connect your board with a cable.
  2. Press BOOT and RST buttons on your board, press them TOGETHER
  3. Release RST button
  4. After couple of seconds release BOOT button
  5. Your board now is in firmware upload mode. Try to press “Compile and Upload“ in the Arduino IDE

It also can be caused by some other software (e.g. a terminal program) which are use COM3 not allowing Arduino IDE to upload your new code.

Do you have TeraTerm? Try to connect TeraTerm to your board

and see if it connects or not. and if it does, press RST once again, to see the boot messages:

I connected it and pressed all posible combinations with buttons, it still did not output anything...

What is the exact board you have ? In case it is a 38-pin devboard with yellow header pins. try :
Holding the 'boot' button down during the connecting process.

Hi, i have a 30 pin version: ESP32 DEVKIT V1, i already tried holding down buttons and it did not solve the issue...

All if the ones i know about do not have the reset issue, so that means there must be a different cause.

Possible causes that remain.

  • Bad USB cable
  • broken board / USB to TTL converter

Please connect your ESP32 to the computer.

  • Select the proper com port (it should show up under Tools->Port after you have connected it)
  • Open the Serial monitor and select 115200 as the baud-rate
  • press reset

The boot message should be printed to the Serial monitor and should look something like this.

ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0