Tried with both the button pressed and upload the same error
the error message is
FQBN: esp32:esp32:esp32wrover
Using board 'esp32wrover' from platform in folder: /home/amma/.arduino15/packages/esp32/hardware/esp32/3.0.3
Using core 'esp32' from platform in folder: /home/amma/.arduino15/packages/esp32/hardware/esp32/3.0.3
/usr/bin/env bash -c "[ ! -f "/tmp/.arduinoIDE-unsaved2024631-8558-e14wiq.ym3b/sketch_jul31c"/partitions.csv ] || cp -f "/tmp/.arduinoIDE-unsaved2024631-8558-e14wiq.ym3b/sketch_jul31c"/partitions.csv "/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972"/partitions.csv"
/usr/bin/env bash -c "[ -f "/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972"/partitions.csv ] || [ ! -f "/home/amma/.arduino15/packages/esp32/hardware/esp32/3.0.3/variants/esp32"/partitions.csv ] || cp "/home/amma/.arduino15/packages/esp32/hardware/esp32/3.0.3/variants/esp32"/partitions.csv "/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972"/partitions.csv"
/usr/bin/env bash -c "[ -f "/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972"/partitions.csv ] || cp "/home/amma/.arduino15/packages/esp32/hardware/esp32/3.0.3"/tools/partitions/default.csv "/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972"/partitions.csv"
/usr/bin/env bash -c "[ -f "/tmp/.arduinoIDE-unsaved2024631-8558-e14wiq.ym3b/sketch_jul31c"/bootloader.bin ] && cp -f "/tmp/.arduinoIDE-unsaved2024631-8558-e14wiq.ym3b/sketch_jul31c"/bootloader.bin "/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972"/sketch_jul31c.ino.bootloader.bin || ( [ -f "/home/amma/.arduino15/packages/esp32/hardware/esp32/3.0.3/variants/esp32"/bootloader.bin ] && cp "/home/amma/.arduino15/packages/esp32/hardware/esp32/3.0.3/variants/esp32"/bootloader.bin "/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972"/sketch_jul31c.ino.bootloader.bin || python3 "/home/amma/.arduino15/packages/esp32/tools/esptool_py/4.6"/esptool.py --chip esp32 elf2image --flash_mode dio --flash_freq 80m --flash_size 4MB -o "/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972"/sketch_jul31c.ino.bootloader.bin "/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32"/bin/bootloader_qio_80m.elf )"
esptool.py v4.6
Creating esp32 image...
Merged 1 ELF section
Successfully created esp32 image.
/usr/bin/env bash -c "[ ! -f "/tmp/.arduinoIDE-unsaved2024631-8558-e14wiq.ym3b/sketch_jul31c"/build_opt.h ] || cp -f "/tmp/.arduinoIDE-unsaved2024631-8558-e14wiq.ym3b/sketch_jul31c"/build_opt.h "/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972"/build_opt.h"
/usr/bin/env bash -c "[ -f "/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972"/build_opt.h ] || : > "/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972"/build_opt.h"
/usr/bin/env bash -c ": > '/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/file_opts'"
Detecting libraries used...
/home/amma/.arduino15/packages/esp32/tools/esp-x32/2302/bin/xtensa-esp32-elf-g++ -c @/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/flags/cpp_flags -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32_DEV" -DARDUINO_VARIANT="esp32" -DARDUINO_PARTITION_default -DARDUINO_HOST_OS="linux" -DARDUINO_FQBN="esp32:esp32:esp32wrover:UploadSpeed=921600,FlashFreq=80,FlashMode=qio,PartitionScheme=default,DebugLevel=none,EraseFlash=none" -DESP32 -DCORE_DEBUG_LEVEL=0 -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw -DARDUINO_USB_CDC_ON_BOOT=0 @/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/flags/defines -I/tmp/.arduinoIDE-unsaved2024631-8558-e14wiq.ym3b/sketch_jul31c -iprefix /home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/include/ @/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/flags/includes -I/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/qio_qspi/include -I/home/amma/.arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32 -I/home/amma/.arduino15/packages/esp32/hardware/esp32/3.0.3/variants/esp32 @/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/build_opt.h @/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/file_opts /tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/sketch/sketch_jul31c.ino.cpp -o /dev/null
Generating function prototypes...
/home/amma/.arduino15/packages/esp32/tools/esp-x32/2302/bin/xtensa-esp32-elf-g++ -c @/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/flags/cpp_flags -w -Os -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 -DARDUINO_BOARD="ESP32_DEV" -DARDUINO_VARIANT="esp32" -DARDUINO_PARTITION_default -DARDUINO_HOST_OS="linux" -DARDUINO_FQBN="esp32:esp32:esp32wrover:UploadSpeed=921600,FlashFreq=80,FlashMode=qio,PartitionScheme=default,DebugLevel=none,EraseFlash=none" -DESP32 -DCORE_DEBUG_LEVEL=0 -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw -DARDUINO_USB_CDC_ON_BOOT=0 @/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/flags/defines -I/tmp/.arduinoIDE-unsaved2024631-8558-e14wiq.ym3b/sketch_jul31c -iprefix /home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/include/ @/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/flags/includes -I/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/qio_qspi/include -I/home/amma/.arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32 -I/home/amma/.arduino15/packages/esp32/hardware/esp32/3.0.3/variants/esp32 @/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/build_opt.h @/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/file_opts /tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/sketch/sketch_jul31c.ino.cpp -o /tmp/1393269462/sketch_merged.cpp
/home/amma/.arduino15/packages/builtin/tools/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /tmp/1393269462/sketch_merged.cpp
Compiling sketch...
/home/amma/.arduino15/packages/esp32/tools/esp-x32/2302/bin/xtensa-esp32-elf-g++ -MMD -c @/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/flags/cpp_flags -w -Os -DF_CPU=240000000L -DARDUINO=10607 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD="ESP32_DEV"" "-DARDUINO_VARIANT="esp32"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS="linux"" "-DARDUINO_FQBN="esp32:esp32:esp32wrover:UploadSpeed=921600,FlashFreq=80,FlashMode=qio,PartitionScheme=default,DebugLevel=none,EraseFlash=none"" -DESP32 -DCORE_DEBUG_LEVEL=0 -DBOARD_HAS_PSRAM -mfix-esp32-psram-cache-issue -mfix-esp32-psram-cache-strategy=memw -DARDUINO_USB_CDC_ON_BOOT=0 @/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/flags/defines -I/tmp/.arduinoIDE-unsaved2024631-8558-e14wiq.ym3b/sketch_jul31c -iprefix /home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/include/ @/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/flags/includes -I/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/qio_qspi/include -I/home/amma/.arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32 -I/home/amma/.arduino15/packages/esp32/hardware/esp32/3.0.3/variants/esp32 @/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/build_opt.h @/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/file_opts /tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/sketch/sketch_jul31c.ino.cpp -o /tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/sketch/sketch_jul31c.ino.cpp.o
Compiling libraries...
Compiling core...
/usr/bin/env bash -c "echo -DARDUINO_CORE_BUILD > '/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/file_opts'"
Using precompiled core: /tmp/arduino/cores/c307e8d561208d55230ab42383820771/core.a
/usr/bin/env bash -c ": > '/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/file_opts'"
Linking everything together...
/home/amma/.arduino15/packages/esp32/tools/esp-x32/2302/bin/xtensa-esp32-elf-g++ @/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/flags/ld_flags @/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/flags/ld_scripts -Wl,--Map=/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/sketch_jul31c.ino.map -L/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/lib -L/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/ld -L/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/qio_qspi -Wl,--wrap=esp_panic_handler -Wl,--start-group /tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/sketch/sketch_jul31c.ino.cpp.o /tmp/arduino/cores/c307e8d561208d55230ab42383820771/core.a @/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32/flags/ld_libs -Wl,--end-group -Wl,-EL -o /tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/sketch_jul31c.ino.elf
python3 /home/amma/.arduino15/packages/esp32/tools/esptool_py/4.6/esptool.py --chip esp32 elf2image --flash_mode dio --flash_freq 80m --flash_size 4MB --elf-sha256-offset 0xb0 -o /tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/sketch_jul31c.ino.bin /tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/sketch_jul31c.ino.elf
esptool.py v4.6
Creating esp32 image...
Merged 2 ELF sections
Successfully created esp32 image.
python3 /home/amma/.arduino15/packages/esp32/hardware/esp32/3.0.3/tools/gen_esp32part.py -q /tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/partitions.csv /tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/sketch_jul31c.ino.partitions.bin
/usr/bin/env bash -c "[ ! -d "/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972"/libraries/Insights ] || python3 "/home/amma/.arduino15/packages/esp32/hardware/esp32/3.0.3"/tools/gen_insights_package.py /tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972 sketch_jul31c.ino "/tmp/.arduinoIDE-unsaved2024631-8558-e14wiq.ym3b/sketch_jul31c""
/usr/bin/env bash -c "[ ! -d "/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972"/libraries/ESP_SR ] || [ ! -f "/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32"/esp_sr/srmodels.bin ] || cp -f "/home/amma/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32"/esp_sr/srmodels.bin "/tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972"/srmodels.bin"
python3 /home/amma/.arduino15/packages/esp32/tools/esptool_py/4.6/esptool.py --chip esp32 merge_bin -o /tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/sketch_jul31c.ino.merged.bin --fill-flash-size 4MB --flash_mode keep --flash_freq keep --flash_size keep 0x1000 /tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/sketch_jul31c.ino.bootloader.bin 0x8000 /tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/sketch_jul31c.ino.partitions.bin 0xe000 /home/amma/.arduino15/packages/esp32/hardware/esp32/3.0.3/tools/partitions/boot_app0.bin 0x10000 /tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/sketch_jul31c.ino.bin
esptool.py v4.6
Wrote 0x400000 bytes to file /tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/sketch_jul31c.ino.merged.bin, ready to flash to offset 0x0
/home/amma/.arduino15/packages/esp32/tools/esp-x32/2302/bin/xtensa-esp32-elf-size -A /tmp/arduino/sketches/7DBB62AFA9E8EA2A74E03F074BF8B972/sketch_jul31c.ino.elf
Sketch uses 290577 bytes (22%) of program storage space. Maximum is 1310720 bytes.
Global variables use 20264 bytes (6%) of dynamic memory, leaving 307416 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.6
Serial port /dev/ttyUSB0
Connecting......................................
A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: Troubleshooting - ESP32 - — esptool.py latest documentation
Failed uploading: uploading error: exit status 2
code tried to upload
void setup() {
Serial.begin(115200); // Initialize serial communication at 115200 baud
Serial.println("Hello, Arduino!"); // Print message to the Arduino
}
void loop() {
// Check if data is available to read from the Arduino
if (Serial.available()) {
String received = Serial.readStringUntil('\n'); // Read incoming data
Serial.print("Received from Arduino: ");
Serial.println(received); // Print received data to the serial monitor
}
}