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?

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

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.