Failed uploading: no upload port provided

Arduino Microcontroller Board

Severity: Minor

What it means

Arduino IDE 2: Failed uploading: no upload port provided.
Arduino: the error occurs if no port has been selected.

Affected Models

  • Arduino IDE 2

How to Fix It

  1. In Arduino IDE 2, click the board selector at the top and choose your board and port. Or use Tools > Port.

    IDE 2 only shows the Tools > Port menu when it detects at least one port.

  2. No port to pick? Unplug and replug the board. Allow any USB permission prompt the computer shows, then close and reopen the Port menu.

  3. Use a data USB cable, not a charge-only one, straight into the computer rather than a hub. Try another USB port, and check that an LED on the board lights up.

    Arduino: remove jumper wires on the board's pins too, as they can get in the way of detection.

  4. MKR boards and newer Nanos: press RESET twice quickly. An LED fades in and out in bootloader mode. Check the port list again.

  5. Still nothing? Look in Windows Device Manager (Other Devices), the Mac's System Information (Hardware > USB) or a Linux USB viewer.

    A classic Nano shown as USB Serial Port may need the FTDI drivers. An UNO or Mega shown as Unknown Device or ATmega16u2 DFU needs its USB-to-serial firmware flashed again.