Skip to content

Upload fails after native USB board is disconnected w/ Serial Monitor open #8851

Closed
@per1234

Description

@per1234

Arduino IDE Hourly Build 2019/04/18 12:33 / Arduino IDE 1.9.0-beta build 105, Windows 10 64 bit

  1. Plug the USB cable of a native USB (Leonardo, MKR, Due (Native USB Port)) into your computer.
  2. Tools > Serial Monitor
  3. Unplug the USB cable.
  4. Close Serial Monitor (to avoid v1.9b upload fails, must close serial monitor first #8518 when using Arduino IDE 1.9.0-beta).
  5. Plug the USB cable of the board into your computer. It doesn't matter whether this is done before or after closing Serial Monitor.
  6. Sketch > Upload

The upload process completes successfully, but the Arduino IDE doesn't recognize this and after a delay the upload is shown to have failed with the error:

Couldn't find a Board on the selected port. Check that you have the correct port selected.  If it is correct, try pressing the board's reset button after initiating the upload.

You must now exit the Arduino IDE and start it again before you can upload without the spurious failure.

When using Arduino IDE 1.8.9 or the Hourly Build, disconnecting the board while Serial Monitor is open and then reconnecting causes multiple duplicate ports to be shown in the Tools > Port menu. This does not occur with Arduino IDE 1.9.0-beta, but the spurious upload failure still does occur.

Clipboard02

The duplicate ports and spurious upload failure issue does not occur with Arduino IDE 1.8.8.

Originally reported at:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions