Trouble with Arduino - "Please select a port before upload"

@Chris_Woods, @jrcwest, @jbobrow

Evening guys.

I’ve come up with a workaround that will work on a machine with no COM ports:

  1. On the Arduino IDE menu, navigate to File -> Preferences (or hit [Ctrl] Comma)
  2. The Preferences dialog will appear and, near the bottom of that dialog, it will show you the full path to the preferences.txt file itself.


  1. Click on the full path to the preferences.txt file and the Arduino IDE will open a file browser window showing you preferences.txt
  2. IMPORTANT: Shut down the Arduino IDE app now.
  3. Open the preferences.txt file in your favourite text editor, and edit it as follows:
    — Set the value of the serial.port setting to COM1

image

  1. Save the changes and exit from your text editor.
  2. Restart the Arduino IDE and try an upload to your Blink tile. It should work with no errors.

Let us know how you get on!

2 Likes