Unselect uploading port on Arduino IDE

Hi,

I ran into a small inconvenience the other day while trying to burn a bootloader using a USBTinyISP.

Initially, I couldn't figure out why the IDE wasn't establishing a connection with the programmer, even though it was correctly set in the Tool menu under Programmer.

The problem turned out to be the upload port, which was still set.

It appears that, at least on macOS, the only way to unselect the uploading port is to restart the IDE. Is there a workaround or a trick to avoid this last step? It seems a bit cumbersome.

Arduino IDE: 2.2.1
macOS: 12.6.7

I moved your post to a better category (please read About the Uncategorized category)

Hi @SebDominguez. This sounds very strange. Since the Arduino boards platform framework allows platform developers a lot of freedom in what actions the IDE will perform when the user does a "Burn Bootloader" operation while a board of that platform is selected, anything is possible. However, I still can't imagine why the port selection would affect this operation since the USBTinyISP doesn't use serial ports.

But anyway, I'll answer the question you asked. Starting from Arduino IDE 2.2.0, there is a special command that can be used to unselect the port:

  1. Press the Command+Shift+P keyboard shortcut to open the "Command Palette".
    A menu will appear on the editor toolbar:
    image
  2. Select the "Developer (Arduino): Clear the Board and Port Selection" command from the menu.
    You can scroll down through the list of commands to find it or type the name in the field.
    The IDE will now be in the state where no board or port is selected.
  3. Select the appropriate board from the Tools > Board menu in Arduino IDE.

The IDE will now be in the state where no port is selected.

3 Likes

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