Description
Describe the bug
When I connected a new board to my computer, I first tried to select the correct board and port in the dropdown in the toolbar at the top. I clicked on "Select Other Board & Port". There was a large list of boards. I found the "Arduino Nano" without problems. But on the right side, there's only a message "NO PORTS DISCOVERED". The "Show all ports" checkbox is checked.
Then I called sudo dmesg
to see on which port my Arduino Nano is. Relevant section:
[ 351.483143] usb 1-2.1.3.3: new full-speed USB device number 15 using xhci_hcd
[ 351.584491] usb 1-2.1.3.3: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 351.584508] usb 1-2.1.3.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 351.584517] usb 1-2.1.3.3: Product: USB Serial
[ 351.653752] usbcore: registered new interface driver usbserial_generic
[ 351.653776] usbserial: USB Serial support registered for generic
[ 351.655384] usbcore: registered new interface driver ch341
[ 351.655408] usbserial: USB Serial support registered for ch341-uart
[ 351.655437] ch341 1-2.1.3.3:1.0: ch341-uart converter detected
[ 351.656014] usb 1-2.1.3.3: ch341-uart converter now attached to ttyUSB0
So my Arduino is on /dev/ttyUSB0
. Then I discovered "Tools" > "Port" where /dev/ttyUSB0
is available.
After selecting this I was able to upload the blink sketch. (I had to select "Processor" > "Atmega328P (Old Bootloader)", but I dont't think that's part of this problem.)
When I disconnected my Arduino, "Tools" > "Port" > "/dev/ttyUSB0" disappeared so I think the available port detection works there.
To Reproduce
Steps to reproduce the behavior:
- Connect an Arduino
- Click on Select Other Board & Port
- The port isn't visible
- Close the popup
- Click on "Tools" > "Port"
- The port is available there
Expected behavior
The "Select Other Board & Port" should show the ports from "Tools" > "Port".
Desktop (please complete the following information):
- OS: Ubuntu 21.04
- Version:
2.0.0 beta7
Additional context
Maybe this is related to #132 but Master811129
is on Windows while I am on Linux.
I have a cheap Arduino Nano clone with a CH340G chip.
Activity
bugrasan commentedon Mar 18, 2022
#681 seems to be related.
ubidefeo commentedon Mar 24, 2022
@per1234
I cannot reproduce this one on Mac OS using RC5 or Nightly
per1234 commentedon Mar 31, 2022
Thanks for pointing that out @bugrasan!
@bb1950328 does the issue still occur even in the IDE windows that are opened on startup? You can check it by following these instructions:
@ubidefeo are you able to reproduce it by following the instructions at #681?
I can still reproduce #681 with the latest build (2.0.0-rc5-snapshot-c9b498f)
bb1950328 commentedon Apr 4, 2022
The
/dev/ttyUSB0
entry appears and disappears in the "PORTS" list when I connect and disconnect the arduino. It has less than one second of delay. The dropdown in the toolbar updates too.The "Tools" > "Port" menu did not have the
/dev/ttyUSB0
entry when the arduino was connected on application startup. It appeared when I disconnected it and connected it again.Tested with
arduino-ide_nightly-20220404_Linux_64bit.AppImage
on
Ubuntu 21.10
with
Linux bab21desktop 5.13.0-39-generic #44-Ubuntu SMP Thu Mar 24 15:35:05 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
stdout (doesn't look interesting to me, but maybe it contains useful information)
khershberger commentedon Jul 11, 2022
I'm having the same issue and discovered an interesting workaround. I am mystified as to why the workaround works, but I've confirmed that the symbolic link is indeed what makes it work for whatever reason.
If a board is already connected before starting the IDE it will not recognize the board or any serial ports until the board is first disconnected/reconnected.
Workaround is in
~/.arduino15/packages/builtin/tools/serial-discovery/1.3.2
to renameserial-discovery
to something else and then create a symbolic link calledserial-discovery
to the new name. After doing this the board auto-detection at IDE start correctly detects any boards connected before starting.Version Info:
arduino-ide_2.0.0-rc8_Linux_64bit.AppImage
NAME="Ubuntu"
VERSION="20.04.4 LTS (Focal Fossa)"
Behavior / Steps to Reproduce:
./arduino-ide_2.0.0-rc8_Linux_64bit.AppImage
Workaournd:
~/.arduino15/packages/builtin/tools/serial-discovery/1.3.2
directory:serial-discovery
toserial-discovery-bin
./arduino-ide_2.0.0-rc8_Linux_64bit.AppImage
per1234 commentedon Sep 2, 2022
OK, I will interpret this information as meaning that the bug is the same as #681, which has been resolved, so I'll close this as fixed.
It sounds like a different bug @khershberger. If it still occurs when using the latest nightly build, please submit a dedicated issue report so that we can effectively track the bug. The nightly build download links are listed here:
https://www.arduino.cc/en/software#nightly-builds