Arduino IDE for ESP32

Hi,
I am not an expert on writing codes for on ESP32, I am just a hobbyist, so please excuse me for any unusual demand.
This is just a suggestion for "IDE developers"...
It really takes quite a long time for compilation of my ESP32 code. ( I am using Windows 11 Home 23H2).
At times I just want to compile the code, but by mistake, click on "upload" button, when the board is physically NOT connected yet.
The compilation starts and it takes whole lot of time then reports the board is not connected to COM port.
During such time I can not stop, or cancel the process, but just wait for the error to appear.
Can we not disable the"upload" button, if COM port does not have the board connected ?
Thank you.
-Arun

IDE 2.3.4 has a cancel button that enables you to cancel the compilation if you need to

Which version of the IDE are you using ?

1 Like

Hi @ark1944.

The reason we can't do that is because not all boards use a port to upload. Another reason is that some of the boards (e.g., Leonardo) that do use a port to upload may be placed into a state where they only temporarily produce a port after a manual operation. When a board is in that state, the user uploads by triggering the "boot" state just as the upload process is starting. Since Arduino IDE compiles the sketch before starting the upload process, if the user triggered the "boot" state before clicking the "upload" button, the board would have already exited from that state before the upload process began.

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