This is the compilation that shows up when uploading
Device is ESP32
Compililation:
/usr/local/bin/arduino-cli compile --fqbn esp32:esp32:esp32doit-devkit1:DebugLevel=none,EraseFlash=none,FlashFreq=80,UploadSpeed=921600 --libraries /home/builder/opt/libraries/latest --build-cache-path /tmp --output-dir /tmp/590748714/build --build-path /tmp/arduino-build-B04EE2083656C0332FBA4519FD05D098 /tmp/590748714/Science_Fair_Project_feb20a
Sketch uses 1109389 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/pc/.arduino-create/esp32/esptool_py/4.2.1/esptool.exe --chip esp32 --port COM5 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x1000 C:/Users/pc/AppData/Local/Temp/extrafiles635412812/Science_Fair_Project_feb20a.bootloader.bin 0x8000 C:/Users/pc/AppData/Local/Temp/extrafiles635412812/Science_Fair_Project_feb20a.partitions.bin 0xe000 C:/Users/pc/AppData/Local/Temp/extrafiles635412812/tools/partitions/boot_app0.bin 0x10000 C:/Users/pc/AppData/Local/Temp/arduino-create-agent543123809/Science_Fair_Project_feb20a.bin
esptool.py v4.2.1
Serial port COM5
Connecting......................................
A fatal error occurred: Failed to connect to ESP32: Wrong boot mode detected (0x1b)! The chip needs to be in download mode.
For troubleshooting steps visit: Troubleshooting - ESP32 - — esptool.py latest documentation
It shows wrong boot mode detected but i dont know how to put chip in download mode.