ESP32 Not working... Exit status 2

The ESP32 Is not taking in any code... and this comes up in the logs...

/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/272263075/build --build-path /tmp/arduino-build-B04EE2083656C0332FBA4519FD05D098 /tmp/272263075/Science_Fair_Project_feb20a

Sketch uses 1115281 bytes (85%) of program storage space. Maximum is 1310720 bytes.

Global variables use 51544 bytes (15%) of dynamic memory, leaving 276136 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 COM7 --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/extrafiles626355886/Science_Fair_Project_feb20a.bootloader.bin 0x8000 C:/Users/admin/AppData/Local/Temp/extrafiles626355886/Science_Fair_Project_feb20a.partitions.bin 0xe000 C:/Users/admin/AppData/Local/Temp/extrafiles626355886/tools/partitions/boot_app0.bin 0x10000 C:/Users/admin/AppData/Local/Temp/arduino-create-agent389540299/Science_Fair_Project_feb20a.bin

esptool.py v4.2.1

Serial port COM7

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

A fatal error occurred: Failed to connect to ESP32: Wrong boot mode detected (0xb)! The chip needs to be in download mode.

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

I use the Online Web Editor for IOT cloud.

I tried the Boot+En Button method, Didnt work.

I switched through Many Esp32

With the IDE Serial monitor screen showing;

Hold down the Boot switch.
Presss and release the EN\Reset switch.

What text appears in the IDE Serial monitor ?

Some dev-board based on ESP32 are not able to entering in download mode automatically.

You can fix quickly this issue with a small capacitor between GND and EN pins.
In this tutorial is used a electrolytic 10uF, but can be also smaller (with mine I've used a 100nF polypropylene capacitor)

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