I've been using Arduino IDE and an ESP32 board this few last days and I just run into some trouble.
I was compiling and uploading sketches successfully and without any errors when suddenly an upload error appeared.
The error is the following:
"A fatal error occurred: Failed to connect to ESP32: Wrong boot mode detected (0xb)! The chip needs to be in download mode.
Or
the selected serial port does not exist or your board is not connected"
I didn't specify but I'm really new into this world.
If with some external device to the pins you mean something like another sensor which wasn't the one connected on the board before I got the error, Yes.
Sorry if my answer isn't appropiate to your question.
Some pins need to be in a particular state for boot. See for example
It shows which gpios need to be in a certain state at boot (check the yellow ones in the list). Depending on the board you have the gpio may or may not map to the numbers on the board (just to add further confusion).