Installing Arduino SAM boards on Arduino IDE for Arm64

Hi all, I have been trying to work with an arduino due on a NVIDIA Drive PX2. I have installed arduino IDE Beta version for arm64 boards. I tried connecting an uno and burnt a simple code and it works fine. I tried installing " Arduino SAM Boards (32-bits ARM Cortex-M3) by Arduino" to use my arduino due by going to Tools>Board>Boards Manager.

When I click on install, an error pops up saying

" Tool arm-none-eabi-gcc is not available for your operating system."

Can you help me out to resolve this issue?

Arduino does not provide builds of the specific versions of the arm-none-eabi-gcc and bossac tools that are specified as dependencies of the "Arduino SAM Boards (32-bits ARM Cortex-M3)" platform for the ARM Linux 64 bit host. This is the cause of the error when attempting to install the platform on an ARM Linux 64 bit machine

The "Arduino SAMD Boards (32-bits ARM Cortex-M0+)" platform has dependencies on those same tools, except using newer versions of them. Arduino does provide builds of those versions of the tools for the ARM Linux 64 bit host.

I created my own version of the Boards Manager package index for the "Arduino SAM Boards (32-bits ARM Cortex-M3)" platform, which specifies a dependency on the newer versions of the tools that are available for ARM Linux 64 bit hosts.

The only other modification I made when compared to the official "Arduino SAM Boards (32-bits ARM Cortex-M3)" platform version 1.6.11 is that I had to remove the -gcc flag from recipe.c.combine.pattern because that flag causes compilation to fail when used with the newer arm-none-eabi-gcc version:

arm-none-eabi-gcc: error: unrecognized debug output level 'cc'

Here's how to install it


:warning: I don't own the Due board or an ARM 64-bit computer so this is hardly tested at all.


  1. Select File > Preferences... (or Arduino > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Enter the following URL into the "Additional Boards Manager URLs" field of the "Preferences" dialog:
    https://per1234.github.io/ArduinoCore-sam/package_per1234_samarm64_index.json
    
    :exclamation: If there are already Boards Manager URLs in the field, separate them with commas.
  3. Click the "OK" button in the "Preferences" dialog.
    The "Preferences" dialog will close.
  4. Select Tools > Board > Boards Manager... from the Arduino IDE menus.
    The "Boards Manager" dialog will open.
  5. Wait for the updates to finish, as shown by the messages printed at the bottom of the "Boards Manager" dialog.
  6. Scroll down through the list of boards platforms until you find the "Arduino SAM Boards (Arduino SAM Boards (32-bits ARM Cortex-M3) with ARM64 support by per1234" entry. Click on it.
    Some buttons will appear on the entry.
  7. Click the "Install" button on the "Arduino SAM Boards (Arduino SAM Boards (32-bits ARM Cortex-M3) with ARM64 support by per1234" entry.
  8. Wait for the installation to finish.
  9. Click the "Close" button on the "Boards Manager" dialog.
    The "Boards Manager" dialog will close.

You will now find entries for the Due boards under Arduino IDE's Tools > Board menu. Let me know how it works for you.

Hey pert,
I followed your instructions and it works fine. Thanks a lot for getting back on this.

I'm very glad to hear it worked. Enjoy!
Per