Error by installing Arduino SAMD Boards on windows

Hey,
I've been trying to install the Arduino SAMD Boards on windows for a week now, I tried it on 3 different devices and I get the same error. I also tried to uninstall and reinstall Arduino a couple of times but it didn't help.
I would appreciate any help! It's very important to me to fix this as soon as possible.

This is what I get in the console:

Error downloading http://downloads.arduino.cc/tools/openocd-0.10.0-arduino7-static-i686-w64-mingw32.zip
java.lang.RuntimeException: java.lang.Exception: Error downloading http://downloads.arduino.cc/tools/openocd-0.10.0-arduino7-static-i686-w64-mingw32.zip
	at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:179)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.Exception: Error downloading http://downloads.arduino.cc/tools/openocd-0.10.0-arduino7-static-i686-w64-mingw32.zip
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:145)
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:79)
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:56)
	at cc.arduino.contributions.packages.ContributionInstaller.install(ContributionInstaller.java:108)
	at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onInstallPressed$2(ContributionManagerUI.java:172)
	... 1 more
Caused by: java.net.SocketTimeoutException: Read timed out
	at java.net.SocketInputStream.socketRead0(Native Method)
	at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
	at java.net.SocketInputStream.read(SocketInputStream.java:171)
	at java.net.SocketInputStream.read(SocketInputStream.java:141)
	at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
	at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
	at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
	at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:735)
	at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:678)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1587)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
	at cc.arduino.utils.network.HttpConnectionManager.makeConnection(HttpConnectionManager.java:139)
	at cc.arduino.utils.network.HttpConnectionManager.makeConnection(HttpConnectionManager.java:96)
	at cc.arduino.utils.network.FileDownloader.openConnectionAndFillTheFile(FileDownloader.java:217)
	at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:176)
	at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:125)
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:143)
	... 5 more
1 Like

Haha, I have the exact same problem, look here: My Post

When I tried to enter the url given by the error message myself in my browser the search timed out as well, so it seems that openocd is at fault here.

Does somebody here know any alternative to get openocd for the board manager to help us both out? This seems to be a widespread problem.

Try out these basic steps:

Do complete uninstall of the IDE (https://support.arduino.cc/hc/en-us/articles/360021325733-Uninstall-Arduino-IDE ) and then install the latest version ( try both Arduino IDE 1.8.19 & Arduino IDE 2.0 RC).

Dear dozie,

thank you for your reply, although I think it doesn't help here. As I said and as you can see for yourself if you'd click on the link provided in the error message, the problem has nothing to do with either 1. the Arduino IDE or 2. an Arduino board connected to the computer.

The problem rests with the openocd library and our question is if anybody can provide an alternative link for downloading it. Please see my question for further detail: My Post

Try Arduino IDE 2.0 RC to see if the library issue will occur. Both IDEs can run the same time in your machine.

Hi dozie,

So I tried the Arduino IDE 2.0 RC and it still doesn't work, but I get this error there:

Downloading packages
Failed to install platform: arduino:samd.
Error: 13 INTERNAL: Error downloading tool arduino:openocd@0.10.0-arduino7: Get "http://downloads.arduino.cc/tools/openocd-0.10.0-arduino7-static-i686-w64-mingw32.zip": read tcp 10.132.39.86:64055->172.64.154.188:80: wsarecv: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

What happens if you try opening that URL in your web browser @queuetsi?

http://downloads.arduino.cc/tools/openocd-0.10.0-arduino7-static-i686-w64-mingw32.zip

Nothing. The page just keeps loading..

Hi queuetsi, here's the guy with the same problem.

I solved it: go to this link - https://downloads.arduino.cc/tools/openocd-0.10.0-arduino7-static-i686-w64-mingw32.zip

You will download a file. Then go to the folder:
C:\Users\[user]\AppData\Local\Arduino15\staging\packages and insert the zip file there (there should be other zip files already). When you go to the board manager again, it should work.

@in0 your link seems to be somehow corrupted.

Btw, dear Arduino staff, especially @Dozie, if you are not willing to read the question, please don't answer and suggest run-of-the-mill solutions that have nothing to do with the problem.

2 Likes

The difference between the two is the use of http vs https URL schemes. Other than that, they are identical.

Thank you @mariusoldy! This has finally worked!

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.