-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Bug: Arduino IDE 1.8.5 Linux is not working with the Arduino Micro #7690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Please do this:
|
Here is the error message:
|
@jtdaling I've never seen something like this; I'm on Arch so the distro is 99% the same. Is there a chance that your bootloader is not the default one? If so, you could try a couple of things:
Let me know if any of those strategies work! |
This may or may not be related but in the last ~20 hours we've seen micro support break in Windows and Mac (reported but not confirmed). We can't tell if it's a windows update (not likely since Linux and Mac are reporting similar issue), Java update (we've reverted all the way back to 7 without fix), or something with Arduino (we've tried back to v1.6.x). We are currently dumbfounded, but are starting to hear from customers. Turning on verbose, the port is correctly found, but Arduino just hangs at the port. Programming freezes at this point for ~30 seconds. After 8 seconds the Pro Micro exits the bootloader and starts running code. The bootloader COM port (7 in this example) is closed. After 30 seconds avrdude then tries to run and since COM 7 no longer exists, it fails. If I replicate the avrdude command at CLI it works flawlessly (once I force the Pro Micro into bootloader mode by double-tapping the reset). May be related: I am seeing the Tools->Ports menu lag behind Windows Device Manager by 20 to 30 seconds. It seems the Arduino IDE can't see the port but avrdude and Windows can. |
Is this Linux? I see lots of talk of COM ports... |
Sorry if I'm conflating issues but it seems related: My screenshot is from my Windows box. We have multiple windows users and a Mac user reporting the same behavior (failed/timeout at point of avrdude call) as jtdaling (serial port does not exist). |
I noticed the IDE accesses api-builder.arduino.cc on startup (thank you wireshark) so I blocked access to this host. I added an entry to /etc/hosts like this to blacklist the host.
Now the IDE starts up with the serial ports listed immediately without having to disconnect the network cable. Perhaps something has changed on api-builder.arduino.cc. Lots of discussion at forum.arduino.cc. JP2222 at the forum discovered disconnecting the network cable makes the serial problem go away. |
After considerable time spent trying to figure out the problem which showed up late yesterday, I too have found that switching off the wireless adapter in my Windows 7 laptop eliminates the serial problem. I encountered the problem with Arduino 1.8.5 and 1.8.2, using two different computers, seven different USB ports between the two, and 8 ProMicro boards. None of the permutations previously evaluated worked. On advice from SparkFun tech support, I tried Arduino 1.6.3, which worked correctly even with wireless network access available. With wireless network access switched off, I am able to use Arduino 1.8.5 without any serial problems. Anyone know how to tell 1.8.5 to quit talking on the internet without permission? |
As suggested by gdsports above, adding "127.0.0.1 api-builder.arduino.cc" to your Windows\System32\drivers\etc\hosts file will prevent anything on your machine from talking to that particular domain and it's a good fix for now. (I'm running 1.8.5 on Win10) An "Application Rule" for Windows Defender Firewall may also work to block the IDE from calling the web. I haven't tested though. |
Hi everyone, let's stop the confusion a bit:
Now the third problem, that ABSOLUTELY needs a discussion on its own: interrogating our cloud backend to get the board name based on VID/PID. That API endpoint suffered recently from a lot of problems that made it respond REALLY slowly and (my fault) we don't implement any timeout when calling Arduino/arduino-core/src/cc/arduino/packages/discoverers/serial/SerialBoardsLister.java Line 163 in 2bfe164
Also, there is not a real opt-out procedure, leaving the blacklist using etc/hosts the only feasible way to get rid of it. #7575 might be related as well so maybe we could use that issue to follow. |
I can confirm that the solution that rmadsen61 suggested, also works for Linux (Arch). |
I have this problem with IDE 1.8.5 on Arch too |
I know the issue is pretty old, but it still happens on Arch and possibly other linux distros. |
10ud .... you just brought 2 days of frustration to an end ! |
Note that some issues with modemmanager might have recently (in the last two years) surfaced or resurfaced by changes in modemmanager's probe policy. For a fix in the Arduino side for this, see arduino/ArduinoCore-avr#92. |
Thank you. This solved it for me as well running Manjaro. I imagine disabling the modemmanager service would resolve things as well: |
THANKS! That solved the same problem with Arduino IDE 1.8.9 on Ubuntu 18.04.2 (with Arduino Leonardo R3). |
Should be fixed now, please reopen if needed |
Same issue with actual version of Arduino Web Editor. Removing modemmanager resolved the problem.
|
@l0ud Thanks for suggesting this method !! i am using debian10 and had the same problem of uploading the sketch to Pro-micro. Try not to remove the package. you can disable it. |
Holy ******! This saved me a lot of frustration. After removing modemmanager, all works fine like before :) |
Awesome! Uninstalling modemmanager from Xubuntu 19.10 solved the issue for me as well. Thank you. |
I was struggling with getting it all to work on Linux (PopOS) but I found that In the latest version of the Linux download package (1.8.12), there's a script called arduino-linux-setup.sh . I ran that and it automatically set up the system and the IDE then just worked! |
|
Hello, I would like to report a bug.
I installed Arduino IDE (version 1.8.5) on a Manjaro Linux distro.
When I tried to upload a sketch I received the warning:
avrdude: Expected signature for ATmega32U4 is 1E 95 87
I was sure to have selected the right arduino board, port and I had sufficient rights to use the port.
I installed the same version (1.8.5) on a windows computer and uploaded the same script with the same settings and on Windows it worked.
I tried out some different versions of Arduino IDE and discovered that version 1.6.2 was the latest version that was able to upload sketches under Linux
The text was updated successfully, but these errors were encountered: