Programming ESP32 without pressing the boot button

Hey @GolamMostafa, I am facing the same problem I have used the same thing holding the boot button while the code is being uploaded and it's working.

As I am enclosing my board with a 3D printed box, I can't press the boot button again and again since my code needs to be uploaded 2 times (once for calibration and then for the main code) therefore it will be an issue for me to press the boot. Is there any other way so that the code can be uploaded normall without putting the board in boot mode?

Ok but neither you nor the OP have specified the exact board module used, anyway check THIS out. HTH.

It's ESP 32 Dev Module (ESP-WROOM-32). I have seen this post before too and last time I remember I was able to upload it (I forgot how I did) without adding the capacitor.

IDK but I read someone solved directly connecting GPIO0 to 3.3V without any capacitor.

BTW you don't even need to solder the capacitor directly over the board, why is it so hard for you adding it to GPIO0?

Then I have to change the design for my 3d Parts that are alread printed.

You mean the 3D printed parts are so tight you can't even fit a relatively small capacitor somewhere (over the board like the picture from the above link, or at the side of the ESP pins, or under a PCB if present, or anywhere you can put it and connected with a pair of small wires to GND and GPIO0)?

I will try that and I tried to connect GIO0 to 3.3V directly but it's not working.

@crabnebula
Don't hijack someone else's topic.
Please start a new topic for your questions in future.

Thank you.

It's still open so no reason to not to ask.

Read this and you will see why not.

Espressif Systems has wired the BOOT-button as per Fig-1 in its ESP-WROOM-32 Module.


Figure-1:

ChatGPT says -- The purpose of the external pull-up resistor is to ensure that the GPIO0 pin remains in a high (logical '1') state when the BOOT button is not pressed. This is important because when the GPIO0 pin is pulled low (logical '0') during boot-up or reset, it activates the bootloader mode, allowing the ESP32 to enter programming or firmware update mode.

Comment:
The MCU-side of the BOOT-button can not be directly connected with 3.3V rail.

@crabnebula,

As others have pointed out, do not add your questions to the end of other people's topics. I have split this for you. Please read the forum guide.

Thank you.

if you have wifi available you could use OTA to program the esp.

Which ESP32 board are you using precisely? On some boards a small capacitor between (100µF) between flash pin and GND helps to let the "auto upload" work. Follow the modification in the provided link.

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