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?
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.
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)?
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.
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.