Hi @ptillisch, I appear to have the same issue as droopyboy so I will tag along if that's OK. I have tried a number of things, including the solutions proposed in this and the parent thread, I made sure to install the drivers (CP210x Universal Windows Driver) and that I'm choosing the right COM port. I think I chose the right board in the IDE ("DOIT ESP32 DEVKIT V1"? I own a 38 pin ESP-WROOM-32).
Two other things to note:
None of the LEDs on the board light up no matter what I do, I couldn't find any confirmation online on whether that is supposed to be happening or not, I have made sure that the board is powered by hooking up an external diode directly to the board's power supply (it glew),
Serial monitor never shows anything at all no matter what I do, besides maybe a few replacement characters in a row (����� , or □ □ □ □). I have tried fiddling with baud rates to no avail, I think 115200 is the right one but I can't be sure,
I really hope we manage to resolve this issue, both for mine and Mr. droopy's sake. Thank you in advance.
Hi @mmuster. I'm going to ask you to provide the full verbose output from an upload attempt.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open.
Uncheck the box next to Show verbose output during: ☑ compile in the "Preferences" dialog.
Check the box next to Show verbose output during: ☐ upload.
Click the "OK" button.
The "Preferences" dialog will close.
Attempt an upload, as you did before.
Wait for the upload to fail.
You will see an "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
Open a forum reply here by clicking the "Reply" button.
Click the <CODE/> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the error output from the upload into the code block.
Move the cursor outside of the code block markup before you add any additional text to your reply.
Sketch uses 273653 bytes (20%) of program storage space. Maximum is 1310720 bytes.
Global variables use 20184 bytes (6%) of dynamic memory, leaving 307496 bytes for local variables. Maximum is 327680 bytes.
"C:\Users\Maciek\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.6/esptool.exe" --chip esp32 --port "COM3" --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode keep --flash_freq keep --flash_size keep 0x1000 "C:\Users\Maciek\AppData\Local\Temp\arduino\sketches\112A26B7374B6E2745E62FC903D919E5/alarm_clock.ino.bootloader.bin" 0x8000 "C:\Users\Maciek\AppData\Local\Temp\arduino\sketches\112A26B7374B6E2745E62FC903D919E5/alarm_clock.ino.partitions.bin" 0xe000 "C:\Users\Maciek\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.2/tools/partitions/boot_app0.bin" 0x10000 "C:\Users\Maciek\AppData\Local\Temp\arduino\sketches\112A26B7374B6E2745E62FC903D919E5/alarm_clock.ino.bin"
esptool.py v4.6
Serial port COM3
Connecting......................................
A fatal error occurred: Failed to connect to ESP32: No serial data received.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
Failed uploading: uploading error: exit status 2
Select Sketch > Upload from the Arduino IDE menus.
Watch the black output panel at the bottom of the Arduino IDE window until you see this text printed:
Connecting...
Press and hold the button on your ESP32 board. ⓘ if your board has multiple buttons, you might have to do some trial and error to determine which is the one you need to press.
As I said I tried the solutions proposed in this thread and its parent thread, I tried pressing the button while uploading again a few times just in case but unfortunately still got the same error every time.
Ok,
I've been having some fun and games with my ESP32.
Ultimately it took me several goes at this solution, to actually get it to work.
My solution - found on the internet !.
1 Press the Boot button just after you start to do the upload.
2 As the (white dots) .... start showing press and HOLD the Boot button.
Now this is the 'timing' part that took me some time to get right...
3 When the text changes to orange,
4 Press and release the EN button (whilst still holding the Boot button)
5 Release the Boot button
Like I said, it took me several tries to get it to work.