Failed to install platform: arduino:mbed_nano

Tool arduino:openocd@0.11.0-arduino2 already installed
Downloading packages
arduino:arm-none-eabi-gcc@7-2017q4
Installing arduino:arm-none-eabi-gcc@7-2017q4
Failed to install platform: arduino:mbed_nano.
Error: 13 INTERNAL: Cannot install tool arduino:arm-none-eabi-gcc@7-2017q4: testing local archive integrity: testing archive size: fetched archive size differs from size specified in index: 947 != 131761924

could someone help?

1 Like

Hi @naveenreddykarri16

Which version of the Arduino IDE are you using? It will be shown on the title bar of the window or on the Help > About dialog.

Please try installing it a few more times. It might be caused by a transient network outage, in which case it should work successfully after just waiting a while and trying again.


If that doesn't work, please provide some additional information:

What happens if you paste this URL into the address bar on your browser?

http://downloads.arduino.cc/tools/gcc-arm-none-eabi-7-2017-q4-major-win32-arduino1.zip

The expected result is that a 126 MB file should be downloaded. This same thing happens when you install the "Arduino Mbed OS Boards" platform via the Arduino IDE Boards Manager. The error shows that instead of a 126 MB file, the IDE is instead finding that only 947 bytes were downloaded.

So the question is: why is it only downloading 947 bytes? Is there interference from a firewall or antivirus software? Is there insufficient room on your hard drive? Etc...

The Arduino version that I am currently using is IDE2.0
The provided link downloaded the zip file of 126MB and it helped me solve my issue thanks a lot. The error is due to a network firewall

You are welcome. Excellent work finding the cause of the problem and solving it. Thanks for taking the time to post an update.

Regards,
Per

1 Like

Hi,

I am facing the same problem. I tired to install it multipe times with no luck.
How can I install the board package manually using the downloaded zip folder form the link you provide @ptillisch?

Hi @norahb. I'm sorry the installation is not working for you.

Please post the full and exact error message that is shown in Arduino IDE when you try to install it.

Thanks for the prompt response @ptillisch .
This is the error message:
Tool arduino:openocd@0.11.0-arduino2 already installed
Downloading packages
arduino:arm-none-eabi-gcc@7-2017q4
arduino:bossac@1.9.1-arduino2
arduino:dfu-util@0.10.0-arduino1
arduino:rp2040tools@1.0.6
arduino:mbed_nano@3.4.1
Installing arduino:arm-none-eabi-gcc@7-2017q4
Failed to install platform: arduino:mbed_nano.
Error: 13 INTERNAL: Cannot install tool arduino:arm-none-eabi-gcc@7-2017q4: testing local archive integrity: testing archive size: fetched archive size differs from size specified in index: 5532 != 131761924

I am using Arduino IDE 2.0.1
and Arudino nano BLE 33 Sense

It does indeed look like the same problem.

I can provide instructions, but they would be quite complex because there are also 5 tool dependencies used for compiling and uploading in addition to that file, and each one of those must be installed under a specific folder structure. You would need to repeat that manual installation process every time you wanted to update to a new version (new versions of the "Arduino Mbed OS Nano Boards" platform come out regularly).

I would recommend you to first investigate whether your firewall is interfering with this download as was the case for naveenreddykarri16, and if so whether you can configure your firewall to allow the download.

If that is not possible, let me know and I'll provide the instructions.

This issue appears to be related to the remote server closing the connection and subsequently not sending the entire file
See error ..
Error during install: read tcp 192.168.110.82:55141->104.18.12.241:80: wsarecv: An existing connection was forcibly closed by the remote host.
It is best to try to download the .bz2 files from alternate repositories and placing these within the staging hardware folder .. then during the installation these are not downloaded and hence are complete.
It has worked in my case.

I'm having a similar issue. I was able to get my Opta to connect using the 2.0 IDE by manually downloading the zip and copying it into my C:\Users\name\AppData\Local\Arduino15\staging\packages folder. However, I am still unable to get it to connect with the PLC IDE. I cannot figure out how to force the PLC IDE to recognize the opta package. I continue to get the following:

Sketch generated, is changed: true
Error initializing instance: Profile 'opta_1.0.4' not found
Error during build: Platform 'arduino:mbed_opta' not found: platform not installed

I believe that my problem may be with the company firewall. It seems that when I install the PLC IDE tools it is not downloading the gcc-arm-none-eabi-7-2017-q4-major-win32-arduino1.zip file correctly. when I go to C:\Users\name\AppData\Local\T\D\packages I see the zip file there, but it shows 1k file size. I've tried copying the full downloaded version into that location, but I have no idea how to trigger it to install from that location.

Any suggestions would be greatly appreciated.

Hi @spollard

I don't have any experience using Arduino PLC IDE, so I don't know what this C:\Users\name\AppData\Local\T\D\packages path is all about. However, you mentioned "2.0 IDE". I can give you some information about Arduino IDE 2.x, which I am quite experienced with.

When you install a boards platform via the Arduino IDE Boards Manager, it checks to see if the installation files are present in a local cache before downloading them from the Internet. If it finds a file in the cache, it uses that local file instead of downloading. So if you have the file, you can avoid the problematic download by the IDE by putting it in that cache. The location of the cache used by Arduino IDE is here:

C:\Users\<username>\AppData\Local\Arduino15\staging\packages

(where <username> is your Windows username)

You should note that gcc-arm-none-eabi-7-2017-q4-major-win32-arduino1.zip is only one of the files Arduino IDE needs to download to install the "Arduino Mbed OS Opta Boards" platform. If try installing the platform via the Arduino IDE Boards Manager and have problem with other files, I can provide you with the download URLs of those other files if needed.

ptillisch: Thank you for your interest in my post. I appreciate that you are trying to help me, but it seems that you did not read my post. I am aware of the mechanics of the board installer in the 2.x IDE and scited the same path you did in your own post when I said that I used it to get the 2.x IDE to install my OPTA board. I am only experiencing problems with the PLC IDE. After spending 5 hours trying various things I am no closer to getting it to work on my computer it seems. Again I appreciate that you took the time to try to help, but I am looking for expertise on the PLC IDE not the 2.x IDE.

I managed to solve my issue. I had to install on another computer, then I copied the folder structure from the successful install over to the computer that was having issues. Specifically I copied the files and folders from: C:\Users\name\AppData\Local\T
Note: you may want to exlude the arduino-cli.yaml file and keep the original as it has the working directory paths which may be different between the two computers.
But after some research it turns out that the thing that was causing all the trouble for me was the sketch.yaml file located in the Local\T directory. It was missing 2 sections that the successful install had.

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