Arduino web editor gives this error when upload code to ESP32(Original dev kit)

here is the logs...

Error: Exit status 2

/usr/local/bin/arduino-cli compile --fqbn esp32:esp32:esp32doit-devkit1:DebugLevel=none,FlashFreq=80,UploadSpeed=921600 --libraries /home/builder/opt/libraries/latest --build-cache-path /tmp --output-dir /tmp/621414458/build --build-path /tmp/arduino-build-B04EE2083656C0332FBA4519FD05D098 /tmp/621414458/Science_Fair_Project_feb20a

Sketch uses 1109361 bytes (84%) of program storage space. Maximum is 1310720 bytes.

Global variables use 51408 bytes (15%) of dynamic memory, leaving 276272 bytes for local variables. Maximum is 327680 bytes.

Upload started

Programming with: Serial

Flashing with command:C:/Users/admin/.arduino-create/esp32/esptool_py/4.2.1/esptool.exe --chip esp32 --port COM3 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 C:/Users/admin/AppData/Local/Temp/extrafiles416523612/Science_Fair_Project_feb20a.bootloader.bin 0x8000 C:/Users/admin/AppData/Local/Temp/extrafiles416523612/Science_Fair_Project_feb20a.partitions.bin 0xe000 C:/Users/admin/AppData/Local/Temp/extrafiles416523612/tools/partitions/boot_app0.bin 0x10000 C:/Users/admin/AppData/Local/Temp/arduino-create-agent703676337/Science_Fair_Project_feb20a.bin

esptool.py v4.2.1

Serial port COM3

Connecting......................................

A fatal error occurred: Failed to connect to ESP32: No serial data received.

For troubleshooting steps visit: Troubleshooting - ESP32 - — esptool.py latest documentation

Please help

Hi @vinh2205
did you try to load the sketch putting the board in bootmode?

  1. press boot button and keep it pressed
  2. plug usb
  3. start upload
  4. only when upload starts you can release the boot button

Is the board/USB in COM3? IDE >> TOOLS >> PORT >> (your port)

yes it is in com3

Not working...

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.