Installing arduino:sam core for arduino-cli: no versions available

I'm trying to use an Arduino Due with a Raspberry Pi 4. I've installed arduino-cli, and I can use this to see that the board is connected and needs the arduino:sam core to work.

$ arduino-cli board list
Port         Protocol Type              Board Name                     FQBN                          Core
/dev/ttyACM0 serial   Serial Port (USB) Arduino Due (Programming Port) arduino:sam:arduino_due_x_dbg arduino:sam

However, when I try to install the core, I get the following message:

$ arduino-cli core install arduino:sam
Downloading packages...
Error during install: Error downloading tool arduino:arm-none-eabi-gcc@4.8.3-2014q1: no versions available for the current OS, try contacting packages@arduino.cc

I've tried the same process with 3 different OSes:

  • The default Raspberry Pi OS (32-bit), a port of Debian Bullseye;
  • The legacy Raspberry Pi OS, a port of Debian Buster;
  • Ubuntu Server 22.04.2 LTS (64-bit)

All three give me the same error.

The problem seems to be specific to the arduino:sam core. I tested running $ arduino-cli core install arduino:samd, and that installed without any issue.

I did also take the error message advice try contacting packages@arduino.cc literally, but with that address being undeliverable I've ended up here.

Is there a workaround I could use to program the Due from the Pi command line? Is there another operating system I should use which would work?

Workaround: the core can be installed from the Pi desktop using the Arduino IDE. Once this is done, I can also see that it has been installed in the cli:

$ arduino-cli core list
ID           Installed Latest Name                                        
arduino:sam  1.6.12    1.6.12 Arduino SAM Boards (32-bits ARM Cortex-M3)  
arduino:samd 1.8.13    1.8.13 Arduino SAMD Boards (32-bits ARM Cortex-M0+)

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