I'm experimenting with IDE 2.0 and I really like it so far because it brings the power of intellisense and other VSCode features into a UI that hides some of the extraneous aspects.
I'm currently using the Sparkfun Qwiic Micro SAMD21 board. I'm running just a basic program to turn on one pin.
The Arduino IDE 1.8 (the old one) and VSCode both are able to detect that the Qwiic Micro is on COM3 if it is running and COM4 if in bootloader state. I'm able to compile and upload without issues.
The Arduino IDE 2.0 is not able to detect any ports at all. How can I solve this?
I am able to compile in IDE 2.0 but I cannot upload.
I need to have this solved today or tomorrow because I'm going to be developing curriculum and training teachers and high schoolers next week.
Thanks for the clarification. I understand now. Unfortunately, I don't know what would cause this symptom and I can't reproduce it myself.
I will recommend you to update to the 2.0.0-beta.5 version. I don't have any specific reason to think this will solve your problem, but there have been some very significant improvements since 2.0.0-beta.4, so it's worth a try. You can download it here: https://www.arduino.cc/en/software#experimental-software
Same problem detected with an esp32-cam and the esp32-cam-mb (ch340 chip).
Works fine on the old Arduino (1.8.15 - COM4) but not in Version 2.0.0 beta12 (no ports found).
The stable version of arduino IDE sees the board fine. I just wanted autocomplete so I downloaded the beta version of Arduino IDE 2.0, no joy. Then I found the github issue which mentions it is resolved in latest nightly build (15 days ago).
Well, that's silly. It seems the IDE requires Internet access to detect the boards (possibly only on first startup? I have no idea.). However, after I tried while connected to the internet it worked.
It is likely that this is not the same issue as the Github one as there is non intermittence to it. It either works or it doesn't.
So, to anyone that can't get this IDE to work I hope this post will provide helpful. Try enabling network traffic for the IDE's exe on the firewall if you are on a secure system.
Edit. Not so fast. Then after the board is selected it asks for permission to download and install "platform". Upon clicking yes it fails with:
Downloading packages
Failed to install platform: arduino:avr.
Error: 13 INTERNAL: Error downloading tool arduino:avr-gcc@7.3.0-atmel3.6.1-arduino7: Get "http://downloads.arduino.cc/tools/avr-gcc-7.3.0-atmel3.6.1-arduino7-i686-w64-mingw32.zip": dial tcp 104.18.29.45:80: connectex: An attempt was made to access a socket in a way forbidden by its access permissions.
The exe is allowed through the firewall so I'm not sure what access permissions is wants. Perhaps someone who has it running on windows 10 could let me know, please?
Hi @randomuser3. Unlike the classic Arduino IDE, Arduino IDE 2.x does not come with any bundled boards packages. On the first startup, it uses the standard Boards Manager infrastructure to install the components that are normally assumed to be present with an IDE installation:
Arduino's standard serial-discovery tool (for detecting serial ports)
Arduino's standard mdns-discovery tool (for detecting network ports)
fundamental libraries (e.g., Keyboard, Mouse, Ethernet)
So it is true that the IDE must have Internet access to get started.
The error you had was from an attempt to install the avr-gcc compiler for the Arduino AVR Boards platform.
I use Windows 10 as my primary OS for beta testing the IDE. I just tried a fresh install and it was able to install all the components without any problem, so it definitely isn't a global issue.
I use the standard "Windows Defender Firewall" permissions for the IDE. It will present two dialogs on startup and I just click the Allow access button each time.
If you are using a proxy, you can configure it by opening File > Preferences in the IDE and then clicking the "Network" tab.
I have been able to solve the problem and now my com port shows now . First install the drivers located in your old arduino ide in program files and restart the ide and connect it to internet
Hi @jet_force. Thanks for taking the time to share your solution.
The classic Arduino IDE came with a collection of Windows drivers for the original Arduino boards, Over time, more and more boards were added and so Arduino developed the Boards Manager system that allowed boards platforms and toolchains to be distributed as separate packages, installed and updated as needed by the user. That meant that it made more sense to distribute the drivers along with the boards platform and install those drivers with the platform.
Arduino IDE 2.x uses that new Boards Manager system exclusively. Since the drivers were always distributed with the IDE, the maintainers of the "Arduino AVR Boards" platform never added them there. Now that situation has changed and the drivers have been added to the "Arduino AVR Boards" platform:
However, that advancement has not yet been released, so for now the Arduino IDE 2.x does not automatically install drivers and your solution will be an effective workaround. It will no longer be necessary once the next release of the "Arduino AVR Boards" platform comes out.