Go Down

Topic: Port in IDE keep adding up when reset (Read 353 times) previous topic - next topic

DasSudent

Hi,

The port list in Tools>Port keeps expanding every time I reset my Leonardo (by using the button), or when I unplug from the USB port and plug it back again.

The port list ends up looking like this:

COM3
COM3
COM5 (Arduino Leonardo)
COM5 (Arduino Leonardo)
COM5 (Arduino Leonardo)
COM8

This in turn prevents me from uploading my sketch (since there are multiple ports present for the same port).

In order to clear the list I have to restart the IDE, which is very annoying.

Is there a way of clearing the list without restarting the IDE?
Or, preventing it to happen in the first place?


-Student

pert

This is a known bug with Arduino IDE 1.8.9 and newer:
https://github.com/arduino/Arduino/issues/8851

It only occurs when you have Serial Monitor open so you could avoid it by closing Serial Monitor before you reset or unplug your board.

The other workaround is to use Arduino IDE 1.8.8 until a new release of the Arduino IDE comes out with the bug fixed. You can download Arduino IDE 1.8.8 here:
https://www.arduino.cc/en/Main/OldSoftwareReleases

ballscrewbob

#2
Jun 07, 2019, 05:36 am Last Edit: Jun 07, 2019, 05:37 am by ballscrewbob
It is also a known issue with other versions of the IDE too.

More often it has to do with Windows 7-10 inc Vista.
Not heard of it on Linux or Macs.

Most often it tends to eventually settle unless you have a lot of differing Arduinos at which point it can become an occasional pain requiring a COM stack reset (which is quite simple luckily).

COM numbers over 30 can cause additional issues within windows again needing the COM stack to be reset.

WARNING do not try to lock the COM port as that too can lead to other issues when trying to use Arduino's

Bob.
It may not be the answer you were looking for but its the one I am giving based on either experience, educated guess, google or the fact that you gave nothing to go with in the first place so I used my wonky crystal ball.

DasSudent


Go Up