I have the Arduino IDE installed on the laptop which is not connected to the internet and therefore could not use board mananger to download Arduino SAM boards for arduino DUE. There is no other online laptops where I can download the Arduino SAM boards and move the data onto the offline laptop. I do not even know what files to download and where to download. So could anybody help me in this regard, how can I install the SAM Core offline ?
Hi @mussawarahmed.
Please add a forum reply here to tell us which operating system you are using (e.g., "Windows")?
I ask because I would like to give you the appropriate instructions for your operating system.
We can tell you which files to download and where, but it seems pointless since if you don't have any computers that are connected to the Internet then you can't download anything.
The Operating System is Windows. I have another Laptop which is connected to the internet but does not have IDE installed (cannot install it because I do not have the permission from the IT department of the company). So what I meant to say that I could not download the SAM core in the other laptop using IDE. So what could be the alternative?
OK, here is the list of download URLs and where you need to extract each of them:
https://downloads.arduino.cc/libraries/library_index.json
Download to this folder:
C:\Users\<username>\AppData\Local\Arduino15
(where <username>
is your Windows username)
https://downloads.arduino.cc/libraries/library_index.json.sig
Download to this folder:
C:\Users\<username>\AppData\Local\Arduino15
https://downloads.arduino.cc/packages/package_index.json
Download to this folder:
C:\Users\<username>\AppData\Local\Arduino15
https://downloads.arduino.cc/packages/package_index.json.sig
Download to this folder:
C:\Users\<username>\AppData\Local\Arduino15
https://downloads.arduino.cc/cores/sam-1.6.12.tar.bz2
Extract to this folder:
C:\Users\<username>\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12
https://downloads.arduino.cc/gcc-arm-none-eabi-4.8.3-2014q1-windows.tar.gz
Extract to this folder:
C:\Users\<username>\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1
https://downloads.arduino.cc/bossac-1.6.1-arduino-mingw32.tar.gz
Extract to this folder:
C:\Users\<username>\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.6.1
https://downloads.arduino.cc/tools/ctags-5.8-arduino11-pm-i686-mingw32.zip
Extract to this folder:
C:\Users\<username>\AppData\Local\Arduino15\packages\builtin\tools\ctags\5.8-arduino11
https://downloads.arduino.cc/discovery/mdns-discovery/mdns-discovery_v1.0.9_Windows_64bit.zip
Extract to this folder:
C:\Users\<username>\AppData\Local\Arduino15\packages\builtin\tools\mdns-discovery\1.0.9
https://downloads.arduino.cc/discovery/serial-discovery/serial-discovery_v1.4.1_Windows_64bit.zip
Extract to this folder:
C:\Users\<username>\AppData\Local\Arduino15\packages\builtin\tools\serial-discovery\1.4.1
https://downloads.arduino.cc/monitor/serial-monitor/serial-monitor_v0.14.1_Windows_64bit.zip
Extract to this folder:
C:\Users\<username>\AppData\Local\Arduino15\packages\builtin\tools\serial-monitor\0.14.1
Installation structure
The folder structure MUST have this exact form (note the full subdirectory structure is omitted from this diagram for the sake of brevity) once you are finished:
C:\Users\<username>\AppData\Local\Arduino15/
├── library_index.json
├── library_index.json.sig
├── package_index.json
├── package_index.json.sig
└── packages/
├── arduino/
│ ├── hardware/
│ │ └── sam/
│ │ └── 1.6.12/
│ │ ├── README.md
│ │ ├── boards.txt
│ │ ├── cores/
│ │ ├── firmwares/
│ │ ├── installed.json
│ │ ├── libraries/
│ │ ├── platform.txt
│ │ ├── programmers.txt
│ │ ├── system/
│ │ └── variants/
│ └── tools/
│ ├── arm-none-eabi-gcc/
│ │ └── 4.8.3-2014q1/
│ │ ├── arm-none-eabi/
│ │ ├── bin/
│ │ ├── lib/
│ │ └── share/
│ └── bossac/
│ └── 1.6.1-arduino/
│ └── bossac.exe
└── builtin/
└── tools/
├── ctags/
│ └── 5.8-arduino11/
│ └── ctags.exe
├── mdns-discovery/
│ └── 1.0.9/
│ ├── LICENSE.txt
│ └── mdns-discovery.exe
├── serial-discovery/
│ └── 1.4.1/
│ ├── LICENSE.txt
│ └── serial-discovery.exe
└── serial-monitor/
├── 0.13.0/
│ ├── LICENSE.txt
│ └── serial-monitor.exe
└── 0.14.1/
├── LICENSE.txt
└── serial-monitor.exe
There are two problems:
- The first link keep on loading and file will not be downloaded
- The third link does not download anything but opens a text file. How can I download that or should I need to include the URL of Arduino DUE into the additional broad manager URL ?
Two separate questions:
3)Does this work for every version of IDE? I have the version 1.8.19 installed.
4) Do I have to just refresh the IDE after extracting the files in the respective directories and the will SAM core be installed?
Use this URL instead:
https://downloads.arduino.cc/libraries/library_index.tar.bz2
This replacement URL provides an archive instead of the raw file so you will need to extract it.
Press the Ctrl+S keyboard shortcut to download the file from your browser.
It will work for 1.8.19
Yes. You must select File > Quit from the Arduino IDE menus and then start it again. It will only recognize the manually installed platform after you do that.
I have followed all the steps listed above and now in the board manager, I have the list of all different board softwares. If I search for Arduino SAM Boards in the search bar, Arduino SAM Boards (32-Bits ARM Cortex-M3) pops up but if I press the install button placed right bottom along with version number, it shows the me the error: "Error while downloading from http://downloads.arduino.cc/cores/sam-1.6.12.tar.bz2 "
Update:
Arduino SAM Boards (32 -Bits ARM Cortex-M3) is shown installed (Version 1.6.12) but I could not find Arduino DUE in the last of the boards. It is showing "Arduino Uno on COM 5". What could be the possible reason? Should I install the old version of IDE (1.6.12)?
You are looking in the wrong place!
You must look in the Tools > Board menu.
Can you select Tools > Board > Arduino ARM (32-bits) > Arduino Due (Programming Port) from the Arduino IDE menus?
I think I got it, the problem lies with the sam-1.6.12 file itself since I extracted it into C:\Users<username>\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12 but instead of having a bunch of files I have a single file named sam-1.6.12 with a 12-file format. Do not know why.
It is because it is a .tar.bz
file.
The .bz
is a compressed archive.
Inside that compressed archive is a .tar
file, which is a non-compressed archive that contains the actual platform files.
So you must perform two extraction operations on this file.
Although in the Windows world we normally work with the more simple ZIP archive format, this type of multilevel archive format is extremely common. Just do some Google searching and you'll find plenty of tutorials about how to do this.
Look, you have somehow put yourself into a situation where the simple method of installing the platform provided by Arduino is not available to you. So now you must accept that it is going to take a very advanced operation to get this thing installed. You need to take charge of this instead of being a passive consumer of free assistance. I'm here to provide the Arduino-specific instructions, but I'm not going to hold your hand through the standard stuff, and if you take advantage of my assistance I'm going to burn out and abandon this effort.
So start putting in the work on your own initiative. If you have enough persistence, you will achieve success.
Thanks a lot!! Finally able to upload the code. So the problem was indeed that although I have made the directories but the files were in .tar.bz format and therefore the IDE could not ,first of all, show the Arduino Due in the list of boards.
You are welcome. I'm glad it is working now. Great job of persisting through this very challenging procedure to achieve success!
Regards,
Per